2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: miniscale
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-20 14:35:50 +01:00
|
|
|
The `miniscale` macro adds a mini _scale box_ to your pattern. This box allows
|
2021-08-25 16:09:31 +02:00
|
|
|
users to verify their pattern is printed to scale.
|
|
|
|
|
|
|
|
The `miniscale` macro is provided by the [scalebox plugin](/reference/plugins/scalebox).
|
|
|
|
It is the mini version of [the scalebox macro](/reference/macros/scalebox/).
|
|
|
|
|
2022-01-19 11:31:39 +01:00
|
|
|
<Example part="plugin_scalebox">
|
|
|
|
Example of a scalebox (left) and miniscale (right)
|
|
|
|
</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
macro('miniscale', {
|
|
|
|
at: points.anchor
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
| Property | Default | Type | Description |
|
2021-08-25 16:09:31 +02:00
|
|
|
|-------------|---------|---------------------|-------------|
|
2022-02-20 14:35:50 +01:00
|
|
|
| `at` | | [Point](/reference/api/point) | The point to anchor the _scale box_ on |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `rotate` | 0 | Number | Rotation in degrees |
|
2022-07-10 16:09:12 +02:00
|
|
|
|
|
|
|
## Removing the miniscal
|
|
|
|
|
2022-07-31 16:11:50 +02:00
|
|
|
If you inherit a part with a miniscale on it and you'd like to remove all points and paths
|
2022-07-10 16:09:12 +02:00
|
|
|
generated by the miniscale macro, you can do so by passing `false` to the macro:
|
|
|
|
|
|
|
|
```js
|
|
|
|
macro('miniscale', false)
|
|
|
|
```
|