Part measurements
The measurements and optional量体参数 properties on the
part configuration object list the part's required and optional
measurements respectively.
提示
You should only include what's required by the part itself, not its dependencies
measurements
The measurements property should hold the names of the measurements
that are required to draft the current part.
const part = {
name: 'example.front',
measurements: ['head', 'chest'],
draft: ({ part }) => part,
}
optional量体参数
The optional量体参数 property should hold the names of the measurements
that are optional to draft the current part.
import { pluginBust } from '@openclothes/plugin-bust'
const part = {
name: 'example.front',
plugins: [pluginBust],
measurements: ['head', 'chest'],
optional量体参数: ['highBust'],
draft: ({ part }) => part,
}