Plugins
FreeSewing uses a modular approach where functionality can be extended with plugins. Plugins can provide snippets, macros, store methods, or use any of the lifecycle hooks.
Using plugins
Plugins can be either added to part configurations in designs or added to a pattern instance with Pattern.use().
To import a plugin for use:
import { plugin } from { @freesewing/plugin-gore }
tip
For convenience, each plugin is exported as several names exports:
plugin
pluginName
namePlugin
For example, @freesewing/plugin-gore
has named exports plugin
, pluginGore
, and gorePlugin
that all are the same thing.
Plugins we maintain
- plugin-annotations
- plugin-bin-pack
- plugin-bust
- core-plugins
- plugin-flip
- plugin-gore
- plugin-i18n
- plugin-measurements
- plugin-mirror
- plugin-ringsector
- plugin-round
- plugin-sprinkle
- plugin-svgattr
- plugin-theme
- plugin-timing
- plugin-versionfree-svg
Notes
Refer to the plugin guide for an in-depth look into plugins.