chore(markdown): Restructuring dev docs
This commit is contained in:
parent
9ef46c502a
commit
d42d9a9377
114 changed files with 246 additions and 1462 deletions
24
markdown/dev/reference/api/macros/miniscale/en.md
Normal file
24
markdown/dev/reference/api/macros/miniscale/en.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: miniscale
|
||||
---
|
||||
|
||||
The `miniscale` macro adds a mini *scale box* to your pattern. This box allows
|
||||
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/).
|
||||
|
||||
<Example part="plugin_scalebox" caption="Example of a scalebox (left) and miniscale (right)" />
|
||||
|
||||
```js
|
||||
macro('miniscale', {
|
||||
at: points.anchor
|
||||
})
|
||||
```
|
||||
|
||||
| Property | Default | Type | Description |
|
||||
|-------------|---------|---------------------|-------------|
|
||||
| `at` | | [Point](/reference/api/point) | The point to anchor the *scale box* on |
|
||||
| `rotate` | 0 | Number | Rotation in degrees |
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue