1.4 KiB
1.4 KiB
title |
---|
scalebox |
The scalebox
macro adds a scale box to your pattern. This box allows users
to verify their pattern is printed to scale.
The scalebox
macro is provided by the scalebox
plugin.
Signature
macro('scalebox', {
Point at,
String lead,
Number rotate,
String text,
String title,
})
Example
```js ({ Point, macro, part }) => {macro('scalebox', { at: new Point(0,0), title: 'This is the title', number: 666, })
return part }
</Example>
## Configuration
| Property | Default | Type | Description |
|-------------|---------|---------------------|-------------|
| `at` | | [Point](/reference/api/point) | The point to anchor the _scale box_ on |
| `lead` | FreeSewing | String | The lead text above the title |
| `title` | _pattern name + version_ | String | The title text |
| `text` | (\*) | String | The text below the title |
| `rotate` | 0 | Number | Rotation in degrees |
(\*) `freesewingIsMadeByJoostDeCockAndContributors \n withTheFinancialSupportOfOurPatrons`
## Notes
### Removing the scalebox
If you inherit a part with a scalebox on it and you'd like to remove all points and paths
generated by the scalebox macro, you can do so by passing `false` to the macro:
```js
macro('scalebox', false)