2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-mirror
|
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-mirror][1], this plugin provides [the mirror
|
2022-10-12 19:09:04 +02:00
|
|
|
macro](/reference/macros/mirror) which facilitates mirroring a number of
|
2022-10-02 00:27:09 +02:00
|
|
|
points and/or paths around a given mirror line.
|
2022-07-27 14:38:18 -07:00
|
|
|
|
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-mirror
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
|
|
|
import { mirrorPlugin } from '@freesewing/plugin-mirror'
|
|
|
|
// or
|
|
|
|
import { pluginMirror } from '@freesewing/plugin-mirror'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-08-25 16:09:31 +02:00
|
|
|
|
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.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-mirror
|