2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-flip
|
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-flip][1], this plugin provides [the flip
|
2022-10-12 19:09:04 +02:00
|
|
|
macro](/reference/macros/flip) which flips (mirrors) an entire part
|
2022-10-02 00:27:09 +02:00
|
|
|
vertically around the Y-axis. It's typically used to create a right and left
|
|
|
|
pattern part from the same basis.
|
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-flip
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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 { flipPlugin } from '@freesewing/plugin-flip'
|
|
|
|
// or
|
|
|
|
import { pluginFlip } from '@freesewing/plugin-flip'
|
|
|
|
```
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-flip
|