1
0
Fork 0

chore(penelope) Removed circumference suffix from measurements

This commit is contained in:
Joost De Cock 2020-06-28 13:07:33 +02:00
parent 233b1646e2
commit 257bbfeaae
3 changed files with 5 additions and 11 deletions

View file

@ -32,13 +32,7 @@ export default {
'dartToSideSeamFactor' 'dartToSideSeamFactor'
] ]
}, },
measurements: [ measurements: ['waist', 'seat', 'waistToHips', 'waistToSeat', 'waistToKnee'],
'waistCircumference',
'seatCircumference',
'waistToHips',
'waistToSeat',
'waistToKnee'
],
dependencies: {}, dependencies: {},
inject: {}, inject: {},
hide: [], hide: [],

View file

@ -23,8 +23,8 @@ function BuildMainShape(part, frontPart) {
let dartDepthFactor = frontPart ? options.frontDartDepthFactor : options.backDartDepthFactor let dartDepthFactor = frontPart ? options.frontDartDepthFactor : options.backDartDepthFactor
let waist = measurements.waistCircumference let waist = measurements.waist
let seat = measurements.seatCircumference > waist ? measurements.seatCircumference : waist let seat = measurements.seat > waist ? measurements.seat : waist
dartCalc(options, seat, seatEase, waist, waistEase) dartCalc(options, seat, seatEase, waist, waistEase)
@ -203,7 +203,7 @@ function BuildMainShape(part, frontPart) {
paths.waist = waistPath.reverse().setRender(false) paths.waist = waistPath.reverse().setRender(false)
paths.waistSA = waistPathSA.reverse().setRender(false) paths.waistSA = waistPathSA.reverse().setRender(false)
points.titleAnchor = new Point(measurements.waistCircumference / 6, measurements.waistToSeat) points.titleAnchor = new Point(measurements.waist / 6, measurements.waistToSeat)
points.logoAnchor = points.titleAnchor.shift(270, 75) points.logoAnchor = points.titleAnchor.shift(270, 75)
points.grainlineTop = points.lWaist.shift(0, 50).shift(270, 50) points.grainlineTop = points.lWaist.shift(0, 50).shift(270, 50)

View file

@ -20,7 +20,7 @@ export default function (part) {
} }
let waistEase = options.waistEase let waistEase = options.waistEase
let waist = measurements.waistCircumference let waist = measurements.waist
waist += waistEase waist += waistEase
points.TL = new Point(0, 0) points.TL = new Point(0, 0)