2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-round
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Published as [@freesewing/plugin-round][1], this plugin provides [the round
|
2022-12-13 04:39:07 -08:00
|
|
|
macro](/reference/macros/round) which helps you create rounded corners on your
|
2022-10-02 00:27:09 +02:00
|
|
|
designs.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
```sh
|
2021-08-25 16:09:31 +02:00
|
|
|
npm install @freesewing/plugin-round
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Either [add it as a part plugins](/reference/api/part/config/plugins) in your
|
|
|
|
design, or [add it to a pattern instance with
|
|
|
|
Pattern.use()](/reference/api/pattern/use).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
```js
|
|
|
|
import { roundPlugin } from '@freesewing/plugin-round'
|
|
|
|
// or
|
|
|
|
import { pluginRound } from '@freesewing/plugin-round'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
The `round` macro is intended for rounding 90° angles.
|
2022-10-02 00:27:09 +02:00
|
|
|
It does not support rounding other angles/corners.
|
|
|
|
|
2024-08-29 17:52:54 -07:00
|
|
|
This plugin is part of the [core-plugins bundle](/reference/plugins/core),
|
|
|
|
so there is no need to install or import it manually unless you wish to forego
|
2024-08-29 12:35:18 -07:00
|
|
|
loading of core plugins yet still want to load this plugin.
|
2022-10-02 00:27:09 +02:00
|
|
|
|
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-round
|