2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: bartack
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-09-30 01:45:37 +02:00
|
|
|
The `bartack` macro allows you to add a _bartack_ marker to your sewing
|
2023-04-15 16:31:45 +02:00
|
|
|
pattern.
|
2023-10-29 17:20:35 +01:00
|
|
|
|
|
|
|
It is provided by [plugin-annotations](/reference/plugins/annotations), which is
|
|
|
|
part of [core-plugins](/reference/plugins/core) (so it is available by default).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-09-30 01:45:37 +02:00
|
|
|
## Signature
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
2022-09-30 01:45:37 +02:00
|
|
|
macro('banner', {
|
2023-10-29 17:20:35 +01:00
|
|
|
String id='bartack',
|
2022-09-30 01:45:37 +02:00
|
|
|
Point anchor,
|
|
|
|
Number angle=0,
|
|
|
|
Number density=3,
|
|
|
|
Number length=15,
|
|
|
|
String prefix='',
|
|
|
|
String suffix='',
|
|
|
|
Number width=3,
|
2023-10-29 17:20:35 +01:00
|
|
|
Boolean force = false,
|
2021-08-25 16:09:31 +02:00
|
|
|
})
|
|
|
|
```
|
|
|
|
|
2022-09-30 01:45:37 +02:00
|
|
|
## Example
|
|
|
|
|
|
|
|
<Example caption="Example of the bartack macro">
|
|
|
|
```js
|
|
|
|
({ macro, Point, part }) => {
|
|
|
|
|
|
|
|
macro('bartack', {
|
|
|
|
anchor: new Point(0,0),
|
|
|
|
length: 25
|
|
|
|
})
|
|
|
|
|
|
|
|
return part
|
|
|
|
}
|
|
|
|
```
|
|
|
|
</Example>
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
| Property | Default | Type | Description |
|
2021-08-25 16:09:31 +02:00
|
|
|
|-------------:|------------|------------|-------------|
|
2022-01-16 17:27:58 +01:00
|
|
|
| `anchor` | | `Point` | The point to start the bartack from |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `angle` | `0` | `number` | The angle under which to draw the bartack |
|
2022-12-14 12:52:37 -08:00
|
|
|
| `density` | `3` | `number` | Controls how close the stitches are together |
|
2023-10-29 17:20:35 +01:00
|
|
|
| `id` | `bartack` | `string` | The ID of this macro instance |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `length` | `15` | `number` | Length of the bartack |
|
2022-12-09 20:59:53 -08:00
|
|
|
| `prefix` | | `string` | A prefix to apply to the name of the generated path |
|
|
|
|
| `suffix` | | `string` | A suffix to apply to the name of the generated path |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `width` | `3` | `number` | Width of the bartack |
|
2023-10-29 17:20:35 +01:00
|
|
|
| `force` | `false` | `boolean` | Set this to `true` to display the macro output even when `complete` is `false` |
|
|
|
|
|
|
|
|
## Notes
|
2022-12-09 20:59:53 -08:00
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
This macro takes the `complete` setting into account and won't output anything when both complete and `force` are `false`.
|
2022-12-09 20:59:53 -08:00
|
|
|
|