1
0
Fork 0
freesewing/packages/plugin-flip
2019-04-19 17:31:44 +02:00
..
img tada: Initial commit 2019-04-19 08:22:11 +02:00
src fire: Removed lingering console.log 2019-04-19 08:22:11 +02:00
tests tada: Initial commit 2019-04-19 08:22:11 +02:00
.babelrc tada: Initial commit 2019-04-19 08:22:11 +02:00
.editorconfig tada: Initial commit 2019-04-19 08:22:11 +02:00
.gitignore tada: Initial commit 2019-04-19 08:22:11 +02:00
.npmignore tada: Initial commit 2019-04-19 08:22:11 +02:00
LICENSE tada: Initial commit 2019-04-19 08:22:11 +02:00
package.json 🔧 Centrally confifured package and rollup files 2019-04-19 17:31:44 +02:00
README.md tada: Initial commit 2019-04-19 08:22:11 +02:00
rollup.config.js 🔧 Centrally confifured package and rollup files 2019-04-19 17:31:44 +02:00

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

Travis build Version License Code coverage DeepScan grade Chat on Gitter Become a Patron

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.