.. | ||
img | ||
src | ||
tests | ||
.babelrc | ||
.editorconfig | ||
.gitignore | ||
.npmignore | ||
LICENSE | ||
package.json | ||
README.md | ||
rollup.config.js |
freesewing
a library for made-to-measure sewing patterns
plugin-flip
A freesewing plugin to flip a part around the Y-axis (mirror it horizontally).
Install
Install this plugin from NPM:
npm install --save @freesewing/plugin-flip
Usage
To load this plugin, add it to your instantiated pattern:
import pattern from '@freesewing/pattern-brian'
import theme from '@freesewing/plugin-theme'
import flip from '@freesewing/plugin-flip'
pattern.with(theme).with(flip);
You now have the flip
macro available:
macro("flip");
This macro will:
- For all the points in your part, it will multiply their X-value by -1
- For all the snippets in your part, it will multiply the X-value of their anchor point by -1
- For all the paths in your part, and for each point the path uses, it will multiply its X-value by -1
Where to get help
Questions? Stuck? The freesewing chat room on Gitter is the best place to ask for help.