1.3 KiB
1.3 KiB
title |
---|
@freesewing/plugin-measurements |
The @freesewing/plugin-measurements plugin attaches to the preDraft lifecycle hook to provide a number of extra measurements to your pattern insofar as they can be deduced from the measurements that are provided.
It will add the following measurements:
seatFront
(if bothseat
andseatBack
are provided)seatBackArc
(if bothseat
andseatBack
are provided)seatFrontArc
(if bothseat
andseatBack
are provided)waistFront
(if bothwaist
andwaistBack
are provided)waistBackArc
(if bothwaist
andwaistBack
are provided)waistFrontArc
(if bothwaist
andwaistBack
are provided)crossSeamBack
(if bothcrossSeam
andcrossSeamFront
are available)
The measurements plugin is part of our plugin-bundle
Installation
npm install @freesewing/plugin-measurements
Usage
Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:
import freesewing from "@freesewing/core";
import measurements from "@freesewing/plugin-measurements";
import config from "../config";
const Pattern = new freesewing.Design(config, measurements);