2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-sprinkle
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Published as [@freesewing/plugin-sprinkle][1], this plugin provides [the
|
2022-10-12 19:09:04 +02:00
|
|
|
sprinkle macro](/reference/macros/sprinkle) which is a faster way to add
|
2022-10-02 00:27:09 +02:00
|
|
|
several of the same snippets to your designs (think of it as _sprinkling_ them
|
|
|
|
onto your design).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
```sh
|
2021-08-25 16:09:31 +02:00
|
|
|
npm install @freesewing/plugin-sprinkle
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Either [add it as a part plugins](/reference/api/part/config/plugins) in your
|
|
|
|
design, or [add it to a pattern instance with
|
|
|
|
Pattern.use()](/reference/api/pattern/use).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
|
|
|
import { sprinklePlugin } from '@freesewing/plugin-sprinkle'
|
|
|
|
// or
|
|
|
|
import { pluginSprinkle } from '@freesewing/plugin-sprinkle'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2024-08-29 12:35:18 -07:00
|
|
|
This plugin is part of [core-plugins](/reference/plugins/core),
|
|
|
|
so there is no need to load it manually unless you wish to forego
|
|
|
|
loading of core plugins yet still want to load this plugin.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-sprinkle
|