1
0
Fork 0
freesewing/markdown/dev/reference/api/macros/grainline/en.md

24 lines
840 B
Markdown
Raw Normal View History

---
title: grainline
---
The `grainline` macro adds a *grainline* indicator to your pattern.
It is provided by the [grainline plugin](/reference/plugins/grainline/).
<Example part="plugin_grainline" caption="Example of the grainline indicator added by this macro" />
```js
macro("grainline", {
from: points.grainlineFrom,
to: points.grainlineTo,
}
```
| Property | Default | Type | Description |
|------------:|-------------|------------|----------------------------------------------|
| `from` | | [Point][1] | The startpoint of the *grainline* indicator |
| `to` | | [Point][1] | The endpoint of the *grainline* indicator |
| `text` | 'grainline' | string | The text to put on the *grainline* indicator |
[1]: /reference/api/point