1
0
Fork 0
freesewing/packages/plugin-cutonfold
2019-04-19 08:20:59 +02:00
..
src wrench: Compiling as ES module because sanity 2019-04-19 08:20:59 +02:00
.editorconfig tada: First commit 2019-04-19 08:20:59 +02:00
.gitignore tada: First commit 2019-04-19 08:20:59 +02:00
.npmignore construction: Changing the way we load version info 2019-04-19 08:20:59 +02:00
LICENSE tada: First commit 2019-04-19 08:20:59 +02:00
package-lock.json bookmark: v0.5.0 2019-04-19 08:20:59 +02:00
package.json bookmark: v0.5.0 2019-04-19 08:20:59 +02:00
README.md pencil2: Fixed a type and added plugin namespace attribute 2019-04-19 08:20:59 +02:00
rollup.browser.js wrench: Compiling as ES module because sanity 2019-04-19 08:20:59 +02:00
rollup.node.js wrench: Compiling as ES module because sanity 2019-04-19 08:20:59 +02:00

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

freesewing / plugins / macro-cutonfold

This is a macro for freesewing to add cut-on-fold indicators on your patterns.

Install

npm install @freesewing-plugins/macro-cutonfold --save

Loading the plugin

Plugins are loaded by the withPlugin method of an instantiated freesewing pattern:

import F from 'freesewing';
import cutonfold from '@freesewing-plugins/macro-cutonfold';

var pattern = new F.pattern()
  .withPlugin(cutonfold);

Using the plugin

This plugin provides the cutonfold macro which you can call with the macro method on an instantiated pattern part:

part.macro('cutonfold', {
  from: points.cbNeck
, to: points.cbHips
});

Parameters

  • to: A point object at the start of the cut-on-fold indicator
  • from: A point object at the end of the cut-on-fold indicator

As all freesewing macros, bundle these parameters into a single object.

Example

FIXME: include example