2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-12-27 17:33:49 +01:00
|
|
|
title: "@freesewing/plugin-bartack"
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
The **@freesewing/plugin-bartack** plugin provides
|
2021-12-27 17:33:49 +01:00
|
|
|
[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
|
2021-12-27 17:33:49 +01:00
|
|
|
tight zig-zag stitches used to enforce a seam — to your design.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
## Example
|
|
|
|
|
|
|
|
<Example part="plugin_bartack">Example of the bartack macro provided by this plugin</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
```sh
|
2021-08-25 16:09:31 +02:00
|
|
|
npm install @freesewing/plugin-bartack
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
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:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```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.
|