2022-05-21 12:40:11 +02:00
|
|
|
/* A list of all measurements used by FreeSewing */
|
|
|
|
export const measurements = [
|
|
|
|
'ankle',
|
|
|
|
'biceps',
|
|
|
|
'bustFront',
|
|
|
|
'bustPointToUnderbust',
|
|
|
|
'bustSpan',
|
|
|
|
'chest',
|
|
|
|
'crossSeam',
|
|
|
|
'crossSeamFront',
|
|
|
|
'crotchDepth',
|
|
|
|
'heel',
|
|
|
|
'head',
|
|
|
|
'highBust',
|
|
|
|
'highBustFront',
|
|
|
|
'hips',
|
|
|
|
'hpsToBust',
|
|
|
|
'hpsToWaistBack',
|
|
|
|
'hpsToWaistFront',
|
|
|
|
'inseam',
|
|
|
|
'knee',
|
|
|
|
'neck',
|
|
|
|
'seat',
|
|
|
|
'seatBack',
|
|
|
|
'shoulderSlope',
|
|
|
|
'shoulderToElbow',
|
|
|
|
'shoulderToShoulder',
|
|
|
|
'shoulderToWrist',
|
|
|
|
'underbust',
|
|
|
|
'upperLeg',
|
|
|
|
'waist',
|
|
|
|
'waistBack',
|
|
|
|
'waistToArmhole',
|
|
|
|
'waistToFloor',
|
|
|
|
'waistToHips',
|
|
|
|
'waistToKnee',
|
|
|
|
'waistToSeat',
|
|
|
|
'waistToUnderbust',
|
|
|
|
'waistToUpperLeg',
|
|
|
|
'wrist',
|
|
|
|
]
|
|
|
|
|
|
|
|
/* A list of measurments that are degrees (rather than mm) */
|
2022-05-31 15:58:13 +02:00
|
|
|
export const degreeMeasurements = ['shoulderSlope']
|
2022-05-21 12:40:11 +02:00
|
|
|
|
|
|
|
/* Helper method to determine whether a measurement uses degrees */
|
2022-05-31 15:58:13 +02:00
|
|
|
export const isDegreeMeasurement = (measie) => degreeMeasurements.indexOf(measie) !== -1
|