2.3 KiB
2.3 KiB
freesewing
a library for made-to-measure sewing patterns
plugin-logo
A freesewing plugin to add our logo to your pattern.
Install
Install this plugin from NPM:
npm install --save @freesewing/plugin-logo
Usage
To load this plugin, add it to your instantiated pattern:
import pattern from '@freesewing/pattern-brian'
import theme from '@freesewing/plugin-theme'
import logo from '@freesewing/plugin-logo'
pattern.with(theme).with(logo);
You now have the logo
snippet available:
snippets.logo = new Snippet('logo', points.logo);
Good to know:
- The logo's anchor point is it's chin
- Like any snippet, you can scale the logo by setting the
data-scale
attribbute on the snippet:
snippets.logo = new Snippet('logo', points.logo)
.attr('data-scale', 2); // Make it twice as big
Where to get help
Questions? Stuck? The freesewing chat room on Gitter is the best place to ask for help.