994 B
994 B
title |
---|
@freesewing/plugin-sprinkle |
The @freesewing/plugin-sprinkle plugin provides the sprinkle macro which is a faster way to add several of the same snippets to your designs (think of it as sprinkling them onto your parts).
An example of the sprinkle macro
The sprinkle plugin is part of our plugin-bundle
Installation
npm install @freesewing/plugin-sprinkle
Usage
Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:
import freesewing from "@freesewing/core";
import sprinkle from "@freesewing/plugin-sprinkle";
import config from "../config";
const Pattern = new freesewing.Design(config, sprinkle);
Now you can use the sprinkle macro in your parts.