1
0
Fork 0
freesewing/markdown/dev/reference/macros/rmringsector/en.md
Joost De Cock 075cb34184 feat(plugin-ringsector): New plugin to draft a ring sector
This plugin provides the `ringsector` and `rmringsector` plugins.

The Sandy design was adapted to use the `ringsector` plugin instead of
its own method for doing this (that method was the base for this
plugin).

The plugin is also added to the tabbed-example component.

This closes #3865
2023-10-16 16:19:27 +02:00

56 lines
1.3 KiB
Markdown

---
title: rmringsector
---
The `rmringsector` macro removes the nodes added by [the ringsector macro](/reference/macros/ringsector).
It is the recommended way to remove (the effects of) a `ringsector` macro.
It is provided by the [ringsector plugin](/reference/plugins/ringsector).
<Note>
##### Not a core-plugins macro
The `rmringsector` macro is not provided by the [core-plugins](/reference/plugins/core),
so you need to load the [ringsector plugin](/reference/plugins/ringsector) explicitly
if you want to use it.
</Note>
## Signature
```js
macro('rmringsector', String id = 'ringsector')
```
## Example
<Example caption="Example of a ring sector removed by this macro">
```js
({ Point, macro, Path, paths, part }) => {
macro('ringsector', {
angle: 60,
insideRadius: 30,
outsideRadius: 45,
})
macro('rmringsector')
return part
}
```
</Example>
## Configuration
| Property | Default | Type | Description |
|---------:|--------------|--------|-------------|
| `id` | `ringsector` | String | The id of the ringsector macro to remove |
## Notes
### Nodes removed by this macro
This macro will remove points and a single path from your part.
Their IDs have been saved in store under:
`parts.{part.name}.macros.@freesewing/plugin-ringsector.ids.{id}`
by the [the ringsector macro](/reference/macros/ringsector).