1
0
Fork 0
freesewing/packages/plugin-logo/README.md

2.3 KiB

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.