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

A freesewing plugin that provides button and buttonhole snippets.

Install

Install this plugin from NPM:

npm install --save @freesewing/plugin-buttons

Usage

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

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

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

  return this;
}

You now have the button and buttonhole snippets available:

snippets.btn = new Snippet("button", points.buttonAnchor);
snippets.btnhole = new Snippet("buttonhole", points.buttonholeAnchor);

FIXME: Link to documentation

Where to get help

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