1
0
Fork 0
freesewing/markdown/dev/reference/plugins/bartack/en.md

43 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: "@freesewing/plugin-bartack"
---
2022-02-19 08:04:25 +01:00
The **@freesewing/plugin-bartack** plugin provides
[the bartack macro](/reference/api/macros/bartack).
2022-02-19 08:04:25 +01:00
This macro allows you to add bartacks — a set of
tight zig-zag stitches used to enforce a seam — to your design.
## Example
<Example part="plugin_bartack">Example of the bartack macro provided by this plugin</Example>
2022-07-27 14:38:18 -07:00
<Tip>
The bartack plugin is part of our [plugin-bundle](/reference/plugins/bundle)
</Tip>
## Installation
```sh
npm install @freesewing/plugin-bartack
```
## 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 bartack from "@freesewing/plugin-bartack";
import config from "../config";
const Pattern = new freesewing.Design(config, bartack);
```
2022-02-19 08:04:25 +01:00
Now you can use the
[bartack](/reference/api/macros/bartack/),
[bartackAlong](/reference/api/macros/bartackalong/), and
2022-01-16 17:30:51 +01:00
[bartackFractionAlong](/reference/api/macros/bartackfractionalong/) macros in your parts.