2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-12-27 17:33:49 +01:00
|
|
|
title: "@freesewing/plugin-round"
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
The **@freesewing/plugin-round** plugin provides [the
|
|
|
|
round macro](/reference/api/macros/round) which helps you round
|
|
|
|
corners on your designs.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
<Warning>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
##### Straight corners only
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
The round macro is intended for rounding 90° angles.
|
|
|
|
It does not support rounding other angles/corners.
|
|
|
|
|
|
|
|
</Warning>
|
|
|
|
|
|
|
|
<Example part="plugin_round">An example of the round macro</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
The round plugin is part of our [plugin-bundle](/reference/plugins/bundle)
|
|
|
|
|
|
|
|
</Tip>
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm install @freesewing/plugin-round
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
Like all [build-time plugins](/guides/plugins/types-of-plugins#build-time-plugins), you
|
|
|
|
load them by passing them to the [freesewing.Design](/reference/api/design) super-constructor:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
import freesewing from "@freesewing/core";
|
|
|
|
import round from "@freesewing/plugin-round";
|
|
|
|
import config from "../config";
|
|
|
|
|
|
|
|
const Pattern = new freesewing.Design(config, round);
|
|
|
|
```
|
|
|
|
|
|
|
|
Now you can use [the round macro](/reference/macros/round/): in your parts.
|
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
|