跳到主要内容

plugin-measurements

Published as @openclothes/plugin-measurements, this plugin will provide a number of extra measurements to your design 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 provided)
RELATED

For more information about these extra measurements, please see 量体参数 from plugin-measurements

Installation

npm install @openclothes/plugin-measurements

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 { measurementsPlugin } from '@openclothes/plugin-measurements'
// or
import { plugin量体参数 } from '@openclothes/plugin-measurements'

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.