2023-03-09 15:14:58 -06:00
|
|
|
---
|
2023-04-15 15:14:56 +02:00
|
|
|
title: plugin-annotations
|
2023-03-09 15:14:58 -06:00
|
|
|
---
|
|
|
|
|
2023-04-15 15:14:56 +02:00
|
|
|
Published as [@freesewing/plugin-annotations][1], this plugin provides a
|
2023-10-29 17:20:35 +01:00
|
|
|
variety of snippets, macros, and store methods to annotate designs.
|
2023-04-15 15:14:56 +02:00
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
It is part of [core-plugins](/reference/plugins/core) (so it is available by default).
|
|
|
|
|
|
|
|
## Snippets
|
2023-04-15 15:14:56 +02:00
|
|
|
The annotations plugin provides the following snippets:
|
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
- [bnotch](/reference/snippets/button)
|
2023-04-15 15:14:56 +02:00
|
|
|
- [button](/reference/snippets/button)
|
|
|
|
- [buttonhole](/reference/snippets/button)
|
|
|
|
- [buttonhole-end](/reference/snippets/button)
|
2023-10-29 17:20:35 +01:00
|
|
|
- [buttonhole-start](/reference/snippets/button)
|
|
|
|
- [eyelet](/reference/snippets/eyelet)
|
2023-04-15 15:14:56 +02:00
|
|
|
- [logo](/reference/snippets/logo)
|
|
|
|
- [notch](/reference/snippets/button)
|
2023-10-29 17:20:35 +01:00
|
|
|
- [snap-stud](/reference/snippets/snap-stud)
|
|
|
|
- [snap-socket](/reference/snippets/snap-socket)
|
2023-04-15 15:14:56 +02:00
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
## Macros
|
2023-04-15 15:14:56 +02:00
|
|
|
The annotations plugin provides the following macros:
|
|
|
|
|
|
|
|
- [banner](/reference/macros/banner)
|
|
|
|
- [bannerbox](/reference/macros/bannerbox)
|
|
|
|
- [bartack](/reference/macros/bartack)
|
|
|
|
- [bartackAlong](/reference/macros/bartackalong)
|
|
|
|
- [bartackFractionAlong](/reference/macros/bartackfractionalong)
|
|
|
|
- [crossbox](/reference/macros/crossbox)
|
|
|
|
- [cutonfold](/reference/macros/cutonfold)
|
2023-04-15 17:09:29 -04:00
|
|
|
- [grainline](/reference/macros/grainline)
|
2023-04-15 15:14:56 +02:00
|
|
|
- [hd](/reference/macros/hd)
|
|
|
|
- [ld](/reference/macros/ld)
|
|
|
|
- [rmad](/reference/macros/rmad)
|
2023-10-29 17:20:35 +01:00
|
|
|
- [rmahd](/reference/macros/rmahd)
|
|
|
|
- [rmald](/reference/macros/rmald)
|
|
|
|
- [rmapd](/reference/macros/rmapd)
|
|
|
|
- [rmavd](/reference/macros/rmavd)
|
|
|
|
- [rmbanner](/reference/macros/rmbanner)
|
|
|
|
- [rmbannerbox](/reference/macros/rmbannerbox)
|
|
|
|
- [rmbartack](/reference/macros/rmbartack)
|
|
|
|
- [rmbartackAlong](/reference/macros/rmbartackalong)
|
|
|
|
- [rmbartackFractionAlong](/reference/macros/rmbartackfractionalong)
|
|
|
|
- [rmcrossbox](/reference/macros/rmcrossbox)
|
|
|
|
- [rmcutonfold](/reference/macros/rmcutonfold)
|
|
|
|
- [rmgrainline](/reference/macros/rmgrainline)
|
|
|
|
- [rmahd](/reference/macros/rmahd)
|
|
|
|
- [rmald](/reference/macros/rmald)
|
|
|
|
- [rmapd](/reference/macros/rmapd)
|
|
|
|
- [rmavd](/reference/macros/rmavd)
|
|
|
|
- [rmhd](/reference/macros/rmhd)
|
|
|
|
- [rmld](/reference/macros/rmld)
|
|
|
|
- [rmpd](/reference/macros/rmpd)
|
|
|
|
- [rmvd](/reference/macros/rmvd)
|
|
|
|
- [rmpleat](/reference/macros/rmpleat)
|
|
|
|
- [rmscalebox](/reference/macros/rmscalebox)
|
2024-07-08 18:17:10 +03:00
|
|
|
- [rmsewTogether](/reference/macros/rmsewtogether)
|
2023-10-29 17:20:35 +01:00
|
|
|
- [rmtitle](/reference/macros/rmtitle)
|
2023-04-15 15:14:56 +02:00
|
|
|
- [pd](/reference/macros/pd)
|
|
|
|
- [pleat](/reference/macros/pleat)
|
|
|
|
- [scalebox](/reference/macros/scalebox)
|
2024-07-08 18:17:10 +03:00
|
|
|
- [sewTogether](/reference/macros/sewtogether)
|
2023-04-15 15:14:56 +02:00
|
|
|
- [title](/reference/macros/title)
|
|
|
|
- [vd](/reference/macros/vd)
|
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
## Store methods
|
|
|
|
The annotations plugin also provides store methods:
|
|
|
|
|
|
|
|
- [flag.error()](/reference/store-methods/flag.error)
|
|
|
|
- [flag.fixme()](/reference/store-methods/flag.fixme)
|
|
|
|
- [flag.info()](/reference/store-methods/flag.info)
|
|
|
|
- [flag.note()](/reference/store-methods/flag.note)
|
|
|
|
- [flag.preset()](/reference/store-methods/flag.preset)
|
|
|
|
- [flag.tip()](/reference/store-methods/flag.tip)
|
|
|
|
- [flag.warn()](/reference/store-methods/flag.warn)
|
|
|
|
- [unflag.error()](/reference/store-methods/unflag.error)
|
|
|
|
- [unflag.fixme()](/reference/store-methods/unflag.fixme)
|
|
|
|
- [unflag.info()](/reference/store-methods/unflag.info)
|
|
|
|
- [unflag.note()](/reference/store-methods/unflag.note)
|
|
|
|
- [unflag.preset()](/reference/store-methods/unflag.preset)
|
|
|
|
- [unflag.tip()](/reference/store-methods/unflag.tip)
|
|
|
|
- [unflag.warn()](/reference/store-methods/unflag.warn)
|
2023-03-09 15:14:58 -06:00
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
## Installation
|
2023-03-09 15:14:58 -06:00
|
|
|
|
|
|
|
```sh
|
2023-04-15 15:14:56 +02:00
|
|
|
npm install @freesewing/plugin-annotations
|
2023-03-09 15:14:58 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Either [add it as a part plugin](/reference/api/part/config/plugins) in your
|
|
|
|
design, or [add it to a pattern instance with
|
|
|
|
Pattern.use()](/reference/api/pattern/use).
|
|
|
|
|
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
2023-10-29 17:20:35 +01:00
|
|
|
import { plugin } from '@freesewing/plugin-annotations'
|
2023-03-09 15:14:58 -06:00
|
|
|
```
|
|
|
|
|
2024-08-29 12:35:18 -07:00
|
|
|
## Notes
|
|
|
|
|
2024-08-29 17:52:54 -07:00
|
|
|
This plugin is part of the [core-plugins bundle](/reference/plugins/core),
|
|
|
|
so there is no need to install or import it manually unless you wish to forego
|
2024-08-29 12:35:18 -07:00
|
|
|
loading of core plugins yet still want to load this plugin.
|