diff --git a/packages/aaron/config/index.js b/packages/aaron/config/index.js index a6eb55e461b..9f56a436bb6 100644 --- a/packages/aaron/config/index.js +++ b/packages/aaron/config/index.js @@ -24,8 +24,8 @@ export default { measurements: [ 'bicepsCircumference', 'chestCircumference', - 'hpsToHipsBack', - 'naturalWaistToHip', + 'hpsToWaistBack', + 'waistToHips', 'neckCircumference', 'shoulderSlope', 'shoulderToShoulder', diff --git a/packages/aaron/src/back.js b/packages/aaron/src/back.js index 222187e4657..1f5181b68fd 100644 --- a/packages/aaron/src/back.js +++ b/packages/aaron/src/back.js @@ -36,6 +36,8 @@ export default function (part) { options.backlineBend ) + points.anchor = points.cbNeck.clone() + // Seamline paths.seam = new Path() .move(points.cbNeck) diff --git a/packages/aaron/src/front.js b/packages/aaron/src/front.js index e07b105d693..b526ac133d1 100644 --- a/packages/aaron/src/front.js +++ b/packages/aaron/src/front.js @@ -24,14 +24,13 @@ export default function (part) { // Handle stretch for (let i in points) points[i].x = points[i].x * (1 - options.stretchFactor) - // Rename cb (center back) to cf (center front) - for (let key of ['Neck', 'Shoulder', 'Armhole', 'Waist', 'Hips', 'Hem']) { - points[`cf${key}`] = new Point(points[`cb${key}`].x, points[`cb${key}`].y) - //delete points[`cb${key}`]; + // Clone cb (center back) into cf (center front) + for (let key of ['Neck', 'Shoulder', 'Armhole', 'Hips', 'Hem']) { + points[`cf${key}`] = points[`cb${key}`].clone() } // Neckline - points.cfNeck = points.cfNeck.shift(-90, options.necklineDrop * measurements.hpsToHipsBack) + points.cfNeck = points.cfNeck.shift(-90, options.necklineDrop * measurements.hpsToWaistBack) // Strap points.strapCenter = points.neck.shiftFractionTowards( @@ -87,6 +86,8 @@ export default function (part) { points.armholeCp2 = points.armhole.shiftFractionTowards(points.armholeCorner, 0.5) points.strapRightCp1 = points.strapRight.shiftFractionTowards(points.armholeCorner, 0.5) + points.anchor = points.cfNeck.clone() + // Seamline paths.seam = new Path() .move(points.cfNeck)