1
0
Fork 0
freesewing/markdown/dev/reference/plugins/en.md
2022-12-13 04:39:07 -08:00

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.