837 B
837 B
title |
---|
@freesewing/plugin-mirror |
The @freesewing/plugin-mirror plugin provides the mirror macro which facilitates mirroring a number of points and/or paths around a given mirror line.
Example of the mirror plugin
Installation
npm install @freesewing/plugin-mirror
Usage
Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:
import freesewing from "@freesewing/core";
import mirror from "@freesewing/plugin-mirror";
import config from "../config";
const Pattern = new freesewing.Design(config, mirror);
You can now use the mirror macro in your parts.