2021-12-28 09:09:27 +01:00
|
|
|
---
|
|
|
|
title: "@freesewing/plugin-notches"
|
|
|
|
---
|
|
|
|
|
2022-05-05 08:49:38 +02:00
|
|
|
The **@freesewing/plugin-notches** plugin provides the following [snippets](/reference/api/snippets):
|
2021-12-28 09:09:27 +01:00
|
|
|
|
2022-02-20 14:44:38 +01:00
|
|
|
- [notch](/reference/api/snippets/notch)
|
|
|
|
- [bnotch](/reference/api/snippets/bnotch)
|
2021-12-28 09:09:27 +01:00
|
|
|
|
|
|
|
<Example part="plugin_notches">
|
2022-05-05 08:49:38 +02:00
|
|
|
An example of the notch and bnotch snippets
|
2021-12-28 09:09:27 +01:00
|
|
|
</Example>
|
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
The notches plugin is part of our [plugin-bundle](/reference/plugins/bundle)
|
|
|
|
|
|
|
|
</Tip>
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm install @freesewing/plugin-notches
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Like all [build-time plugins](/guides/plugins/types-of-plugins#build-time-plugins), you
|
|
|
|
load them by passing them to the [freesewing.Design](/reference/api/design) super-constructor:
|
|
|
|
|
|
|
|
```js
|
|
|
|
import freesewing from "@freesewing/core";
|
|
|
|
import notches from "@freesewing/plugin-notches";
|
|
|
|
import config from "../config";
|
|
|
|
|
|
|
|
const Pattern = new freesewing.Design(config, notches);
|
|
|
|
```
|
|
|
|
|
|
|
|
Now you can use the
|
2022-08-27 21:49:14 +02:00
|
|
|
[notch](/reference/api/snippets/notch) and
|
2021-12-28 09:09:27 +01:00
|
|
|
[bnotch](/reference/api/snippets/buttonhole)
|
|
|
|
snippets in your designs.
|