.. | ||
src | ||
.editorconfig | ||
.gitignore | ||
.npmignore | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
rollup.browser.js | ||
rollup.node.js |
freesewing
a library for made-to-measure sewing patterns
freesewing / plugins / macro-title
This is a macro for freesewing to add a title to your pattern part.
Install
npm install @freesewing-plugins/macro-title --save
Loading the plugin
Plugins are loaded by the withPlugin
method of an instantiated freesewing pattern:
import F from 'freesewing';
import partTitle from '@freesewing-plugins/macro-title';
var pattern = new F.pattern()
.withPlugin(partTitle);
Using the plugin
This plugin provides the title
macro which you can call with the macro
method on an instantiated pattern part:
part.macro('title', {
at: points.titleAnchor
, nr: 2
, name: 'backBlock'
, pattern: 'brian'
});
Parameters
at
: A point object to anchor the title onnr
: The part numbername
: The part namepattern
: The name of the pattern
As all freesewing macros, bundle these parameters into a single object.
Example
FIXME: include example