1
0
Fork 0
freesewing/packages/plugin-logo
2019-04-19 08:22:34 +02:00
..
img lipstick: Added an example to the README 2019-04-19 08:22:33 +02:00
src sparkles: Added check to avoid double-loading plugin 2019-04-19 08:22:34 +02:00
tests Merge branch 'master' of github.com:freesewing/plugin-logo 2019-04-19 08:22:34 +02:00
.babelrc Merge branch 'master' of github.com:freesewing/plugin-logo 2019-04-19 08:22:34 +02:00
.editorconfig tada: Initial commit 2019-04-19 08:22:33 +02:00
.gitignore tada: Initial commit 2019-04-19 08:22:33 +02:00
.npmignore tada: Initial commit 2019-04-19 08:22:33 +02:00
.travis.yml Merge branch 'master' of github.com:freesewing/plugin-logo 2019-04-19 08:22:34 +02:00
LICENSE tada: Initial commit 2019-04-19 08:22:33 +02:00
package-lock.json bookmark: v0.6.0 2019-04-19 08:22:34 +02:00
package.json bookmark: v0.6.0 2019-04-19 08:22:34 +02:00
README.md Merge branch 'master' of github.com:freesewing/plugin-logo 2019-04-19 08:22:34 +02:00
rollup.config.js wrench: Updated rollup config 2019-04-19 08:22:34 +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-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.