1
0
Fork 0
freesewing/markdown/dev/reference/plugins/measurements/en.md
Joost De Cock 249f2600e5 chore: More linting
@nicholasdower is smarter than me. What's missing was the
`listItemIndent` setting
2022-02-20 14:44:38 +01:00

1.2 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 both seat and seatBack are provided)
  • seatBackArc (if both seat and seatBack are provided)
  • seatFrontArc (if both seat and seatBack are provided)
  • waistFront (if both waist and waistBack are provided)
  • waistBackArc (if both waist and waistBack are provided)
  • waistFrontArc (if both waist and waistBack are provided)
  • crossSeamBack (if both crossSeam and crossSeamFront are available)

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);