[plugin-path-utils] feat: Add path-utils plug-in (#236)
This plug-in helps with creating seam allowance and hem paths. Rebased v4 version for #99, see the linked issue for screenshots/details. Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/236 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
36da79afb6
commit
04a0b4b099
14 changed files with 1971 additions and 436 deletions
34
sites/dev/docs/reference/plugins/path-utils/readme.mdx
Normal file
34
sites/dev/docs/reference/plugins/path-utils/readme.mdx
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
title: plugin-path-utils
|
||||
---
|
||||
|
||||
Published as [@freesewing/plugin-path-utils][1], this plugin provides the [hem](/reference/macros/hem), [sa](/reference/macros/sa), [offset](/reference/macros/offset) and [sa](/reference/macros/join) macros,
|
||||
whose main purpose is to make it easier to construct seam allowance paths.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @freesewing/plugin-path-utils
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Either [add it as a part plugins](/reference/api/part/config/plugins) in your
|
||||
design, or [add it to a pattern instance with
|
||||
Pattern.use()](/reference/api/pattern/use).
|
||||
|
||||
To import the plugin for use:
|
||||
|
||||
```js
|
||||
import { pathUtilsPlugin } from '@freesewing/plugin-path-utils'
|
||||
// or
|
||||
import { pluginPathUtils } from '@freesewing/plugin-path-utils'
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
This plugin is part of the [core-plugins bundle](/reference/plugins/core),
|
||||
so there is no need to install or import it manually unless you wish to forego
|
||||
loading of core plugins yet still want to load this plugin.
|
||||
|
||||
[1]: https://www.npmjs.com/package/@freesewing/plugin-path-utils
|
Loading…
Add table
Add a link
Reference in a new issue