853 B
853 B
title |
---|
Plugins |
FreeSewing uses a modular approach where functionality can be extended with plugins. Plugins can provide 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 { namePlugin } from { @freesewing/plugin-name }
// or
import { pluginName } from { @freesewing/plugin-name }
For convenience, each plugin is exported in two name formats:
"plugin<Name>" and "<name>Plugin".
For example, either pluginBanner
or bannerPlugin
can be used.
Plugins we maintain
Notes
Refer to the plugin guide for an in-depth look into plugins.