2.3 KiB
2.3 KiB
freesewing
a library for made-to-measure sewing patterns
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.