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

1.3 KiB

title
rmringsector

The rmringsector macro removes the nodes added by the ringsector macro. It is the recommended way to remove (the effects of) a ringsector macro.

It is provided by the ringsector plugin.

##### Not a core-plugins macro

The rmringsector macro is not provided by the core-plugins, so you need to load the ringsector plugin explicitly if you want to use it.

Signature

macro('rmringsector', String id = 'ringsector')

Example

```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).