1
0
Fork 0
freesewing/packages/plugin-flip/README.md
2019-04-19 08:22:11 +02:00

2.4 KiB

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.