1
0
Fork 0
freesewing/packages/plugin-sprinkle
2019-04-19 08:22:46 +02:00
..
img tada: Initial commit 2019-04-19 08:22:46 +02:00
src tada: Initial commit 2019-04-19 08:22:46 +02:00
tests tada: Initial commit 2019-04-19 08:22:46 +02:00
.babelrc tada: Initial commit 2019-04-19 08:22:46 +02:00
.editorconfig tada: Initial commit 2019-04-19 08:22:46 +02:00
.gitignore tada: Initial commit 2019-04-19 08:22:46 +02:00
.npmignore tada: Initial commit 2019-04-19 08:22:46 +02:00
LICENSE tada: Initial commit 2019-04-19 08:22:46 +02:00
package-lock.json bookmark: v0.2.0 2019-04-19 08:22:46 +02:00
package.json bookmark: v0.2.0 2019-04-19 08:22:46 +02:00
README.md tada: Initial commit 2019-04-19 08:22:46 +02:00
rollup.config.js wrench: Updated rollup config 2019-04-19 08:22:46 +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-sprinkle

A freesewing plugin to bulk-add multiple snippets to your pattern.

Typically used to add a bunch of notches, buttons, and so on.

Install

Install this plugin from NPM:

npm install --save @freesewing/plugin-sprinkle

Usage

To load this plugin, add it to your instantiated pattern:

import freesewing from 'freesewing'
import sprinkle from '@freesewing/plugin-sprinkle'

const Simon = function(settings) {
  freesewing.Pattern.call(this, config);
  this
    .use(sprinkle)
    .apply(settings);

  return this;
}

You now have the sprinkle macro available:

macro("sprinkle", {
  snippet: "notch",
  on: ["pointA", "pointB", "pointC"]
});

FIXME: Link to documentation

Where to get help

Questions? Stuck? The freesewing chat room on Gitter is the best place to ask for help.