2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: scalebox
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
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](/reference/plugins/scalebox).
|
|
|
|
|
2022-01-19 11:31:39 +01:00
|
|
|
<Example part="plugin_scalebox">
|
|
|
|
Example of the scalebox added by this macro
|
|
|
|
</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
macro('scalebox', {
|
|
|
|
at: points.anchor
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
| Property | Default | Type | Description |
|
2021-08-25 16:09:31 +02:00
|
|
|
|-------------|---------|---------------------|-------------|
|
|
|
|
| `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`
|