2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: grainline
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-20 14:35:50 +01:00
|
|
|
The `grainline` macro adds a _grainline_ indicator to your pattern.\
|
2021-08-25 16:09:31 +02:00
|
|
|
It is provided by the [grainline plugin](/reference/plugins/grainline/).
|
|
|
|
|
2022-01-19 11:31:39 +01:00
|
|
|
<Example part="plugin_grainline">
|
|
|
|
Example of the grainline indicator added by this macro
|
|
|
|
</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
macro("grainline", {
|
|
|
|
from: points.grainlineFrom,
|
|
|
|
to: points.grainlineTo,
|
2022-01-18 10:13:16 +01:00
|
|
|
})
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
| Property | Default | Type | Description |
|
2022-01-18 09:20:28 +01:00
|
|
|
|------------:|-------------|------------|----------------------------------------------|
|
2022-02-20 14:35:50 +01:00
|
|
|
| `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 |
|
2021-10-17 18:26:00 +02:00
|
|
|
|
2022-01-18 09:20:28 +01:00
|
|
|
[1]: /reference/api/point
|
2022-07-10 16:09:12 +02:00
|
|
|
|
|
|
|
## Removing the grainline indicator
|
|
|
|
|
|
|
|
If you inherit a part with a grainline indicator and you'd like to remove it,
|
|
|
|
you can do so by passing `false` to the macro:
|
|
|
|
|
|
|
|
```js
|
|
|
|
macro('grainline', false)
|
|
|
|
```
|