From 081f7e63015362fa1000403ccdc20ce28b4359be Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 18 Apr 2021 12:18:12 +0200 Subject: [PATCH] chore(paco): Switched to waistbandWidth option --- packages/paco/config/index.js | 4 ++-- packages/paco/src/back.js | 4 ++-- packages/paco/src/front.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/paco/config/index.js b/packages/paco/config/index.js index 39eab992d1f..c8f437673fe 100644 --- a/packages/paco/config/index.js +++ b/packages/paco/config/index.js @@ -12,7 +12,7 @@ export default { optionGroups: { fit: ['seatEase', 'waistEase', 'heelEase'], style: ['waistHeight', 'lengthBonus', 'crotchDrop', 'elasticatedHem'], - elastic: ['waistElastic', 'ankleElastic'], + elastic: ['waistbandWidth', 'ankleElastic'], pockets: ['frontPockets', 'backPockets'], advanced: [ 'crossSeamCurveStart', @@ -96,7 +96,7 @@ export default { elasticatedHem: { bool: true }, // Elastic - waistElastic: { mm: 35, min: 10, max: 60 }, + waistbandWidth: { mm: 35, min: 10, max: 60 }, ankleElastic: { mm: 70, min: 10, max: 130 }, heelEase: { pct: 5, min: 0, max: 50 }, diff --git a/packages/paco/src/back.js b/packages/paco/src/back.js index 6718f98640b..b2ec1ac841c 100644 --- a/packages/paco/src/back.js +++ b/packages/paco/src/back.js @@ -78,10 +78,10 @@ export default function (part) { points.seatOut = points.seatOut.shift(angle, delta) // Cut the top of our pants short to make room for the waistband/elastic - points.styleWaistOut = drawOutseam(true).reverse().shiftAlong(options.waistElastic) + points.styleWaistOut = drawOutseam(true).reverse().shiftAlong(options.waistbandWidth) points.styleWaistIn = points.styleWaistIn.shiftTowards( points.crossSeamCurveStart, - options.waistElastic + options.waistbandWidth ) // Add the (optional) front pocket extention diff --git a/packages/paco/src/front.js b/packages/paco/src/front.js index 561645a0ee0..fbe2cb32760 100644 --- a/packages/paco/src/front.js +++ b/packages/paco/src/front.js @@ -90,10 +90,10 @@ export default function (part) { points.seatOut = points.seatOut.shift(angle, delta) // Cut the top of our pants short to make room for the waistband/elastic - points.styleWaistOut = drawOutseam(true).shiftAlong(options.waistElastic) + points.styleWaistOut = drawOutseam(true).shiftAlong(options.waistbandWidth) points.styleWaistIn = points.styleWaistIn.shiftTowards( points.crotchSeamCurveStart, - options.waistElastic + options.waistbandWidth ) // Our style changes will have influenced the inseam & outseam a bit