chore(markdown): Restructuring dev docs
This commit is contained in:
parent
9ef46c502a
commit
d42d9a9377
114 changed files with 246 additions and 1462 deletions
26
markdown/dev/reference/api/macros/rmad/en.md
Normal file
26
markdown/dev/reference/api/macros/rmad/en.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: rmad
|
||||
---
|
||||
|
||||
The `rmad` macro removes all dimensions with the exception of those that were created with a custom ID.
|
||||
It is provided by the [dimension plugin](/reference/plugins/dimension/).
|
||||
|
||||
To be able to use this plugin, you need to give your dimension an id:
|
||||
|
||||
```js
|
||||
// This will be removed
|
||||
macro('ld', {
|
||||
from: points.from,
|
||||
to: points.to,
|
||||
d: 0,
|
||||
})
|
||||
// This will not removed
|
||||
macro('ld', {
|
||||
from: points.from,
|
||||
to: points.to,
|
||||
d: 0,
|
||||
id: 'example' // custom ID
|
||||
})
|
||||
|
||||
macro('rmad')
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue