Skip to main content

plugin-bin-pack

Published as @freesewing/plugin-bin-pack, this plugin provides an optimized pack() store method which automatically lays out pattern parts.

Installation

npm install @freesewing/plugin-bin-pack

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 { packPlugin } from '@freesewing/plugin-bin-pack'
// or
import { binPackPlugin } from '@freesewing/plugin-bin-pack'
// or
import { binpackPlugin } from '@freesewing/plugin-bin-pack'

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.