2021-10-17 17:34:55 +02:00
|
|
|
***
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-10-17 17:34:55 +02:00
|
|
|
## title: cutonfold
|
|
|
|
|
|
|
|
The `cutonfold` macro adds a *cut on fold* indicator to your pattern.\
|
2021-08-25 16:09:31 +02:00
|
|
|
It is provided by the [cutonfold plugin](/reference/plugins/cutonfold).
|
|
|
|
|
|
|
|
<Example part="plugin_cutonfold" caption="Example of the cut on fold indicator added by this macro" />
|
|
|
|
|
|
|
|
```js
|
|
|
|
macro('cutonfold', {
|
|
|
|
from: points.cofLeft,
|
|
|
|
to: points.cofRight,
|
|
|
|
grainline: true
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-10-17 17:34:55 +02:00
|
|
|
| Property | Default | Type | Description |
|
2021-08-25 16:09:31 +02:00
|
|
|
|------------:|---------|---------------------|-------------|
|
|
|
|
| `from` | | [Point](/reference/api/point) | The startpoint of the *cut on fold* indicator |
|
|
|
|
| `to` | | [Point](/reference/api/point) | The endpoint of the *cut on fold* indicator |
|
|
|
|
| `margin` | 5 | [Point](/reference/api/point) | The distance in % to keep from the start/end edge |
|
|
|
|
| `offset` | 50 | Number | The distance in mm to offset from the line from start to end |
|
|
|
|
| `grainline` | `false` | Boolean | Whether this cutonfold indicator is also the grainline |
|