Skip to main content

plugin-transform

Published as @freesewing/plugin-transform, this plugin provides the transform macro which facilitates rotating/translating/scaling a number of points and/or paths.

Installation

npm install @freesewing/plugin-transform

Usage

Either add it as a part plugins in your design, or add it to a pattern instance with Pattern.use().

To import the plugin for use:

import { transformPlugin } from '@freesewing/plugin-transform'
// or
import { pluginTransform } from '@freesewing/plugin-transform'

Notes

This plugin is part of the core-plugins bundle, so there is no need to install or import it manually unless you wish to forego loading of core plugins yet still want to load this plugin.