1.9 KiB
1.9 KiB
title |
---|
bundle |
The bundle plugin bundles the most common FreeSewing build-time plugins:
- plugin-cutonfold : Add cut-on-fold indicators to your patterns
- plugin-dimension : Add dimensions to your (paperless) patterns
- plugin-grainline : Add grainline indicators to your patterns
- plugin-logo : Add a scalebox to your patterns
- plugin-scalebox : Add pretty titles to your pattern parts
- plugin-title : Add pretty titles to your pattern parts
- plugin-round : Rounds corners
- plugin-sprinkle : Add multiple snippets to your pattern
Almost all patterns use these plugins, so it made sense to bundle them.
Installation
npm install @freesewing/plugin-bundle
Usage
Like all build-time plugins, you load them
by passing them to the freesewing.Design
constructor:
import freesewing from "@freesewing/core";
import plugins from "@freesewing/plugin-bundle";
import config from "../config";
const Pattern = new freesewing.Design(config, plugins);