1
0
Fork 0

chore(hugo) Removed circumference suffix from measurements

This commit is contained in:
Joost De Cock 2020-06-28 13:09:22 +02:00
parent b3483b30b2
commit 639f92ba78
6 changed files with 14 additions and 17 deletions

View file

@ -15,17 +15,17 @@ export default {
advanced: ['acrossBackFactor', 'backNeckCutout'] advanced: ['acrossBackFactor', 'backNeckCutout']
}, },
measurements: [ measurements: [
'bicepsCircumference', 'biceps',
'chestCircumference', 'chest',
'headCircumference', 'head',
'hipsCircumference', 'hips',
'hpsToWaistBack', 'hpsToWaistBack',
'waistToHips', 'waistToHips',
'neckCircumference', 'neck',
'shoulderSlope', 'shoulderSlope',
'shoulderToShoulder', 'shoulderToShoulder',
'shoulderToWrist', 'shoulderToWrist',
'wristCircumference' 'wrist'
], ],
parts: ['waistband', 'cuff'], parts: ['waistband', 'cuff'],
dependencies: { dependencies: {

View file

@ -22,7 +22,7 @@ export default function (part) {
} = part.shorthand() } = part.shorthand()
// Fit the hips // Fit the hips
points.hem.x = (measurements.hipsCircumference * (1 + options.hipsEase)) / 4 points.hem.x = (measurements.hips * (1 + options.hipsEase)) / 4
points.hemCp2 = new Point(points.hem.x, points.cbWaist.y) points.hemCp2 = new Point(points.hem.x, points.cbWaist.y)
// Ribbing // Ribbing

View file

@ -13,8 +13,7 @@ export default function (part) {
} = part.shorthand() } = part.shorthand()
let width = (measurements.hpsToWaistBack + measurements.waistToHips) * options.ribbingHeight * 2 let width = (measurements.hpsToWaistBack + measurements.waistToHips) * options.ribbingHeight * 2
let length = let length = measurements.wrist * (1 + options.cuffEase) * (1 - options.ribbingStretch)
measurements.wristCircumference * (1 + options.cuffEase) * (1 - options.ribbingStretch)
points.topLeft = new Point(0, 0) points.topLeft = new Point(0, 0)
points.bottomLeft = new Point(0, width) points.bottomLeft = new Point(0, width)

View file

@ -23,7 +23,7 @@ export default function (part) {
} = part.shorthand() } = part.shorthand()
// Fit the hips // Fit the hips
points.hem.x = (measurements.hipsCircumference * (1 + options.hipsEase)) / 4 points.hem.x = (measurements.hips * (1 + options.hipsEase)) / 4
points.hemCp2 = new Point(points.hem.x, points.cfWaist.y) points.hemCp2 = new Point(points.hem.x, points.cfWaist.y)
// Absolute values for percentages // Absolute values for percentages

View file

@ -1,4 +1,4 @@
export default function(part) { export default function (part) {
let { let {
store, store,
sa, sa,
@ -16,9 +16,9 @@ export default function(part) {
} = part.shorthand() } = part.shorthand()
let neckOpening = store.get('neckOpeningLenFront') + store.get('neckOpeningLenBack') let neckOpening = store.get('neckOpeningLenFront') + store.get('neckOpeningLenBack')
let hoodOpening = measurements.headCircumference let hoodOpening = measurements.head
let neckCutoutDelta = store.get('neckCutoutFront') - store.get('neckCutoutBack') let neckCutoutDelta = store.get('neckCutoutFront') - store.get('neckCutoutBack')
store.set('hoodCenterWidth', measurements.headCircumference / 10) store.set('hoodCenterWidth', measurements.head / 10)
let halfCenterPanel = store.get('hoodCenterWidth') / 2 let halfCenterPanel = store.get('hoodCenterWidth') / 2
points.topLeft = new Point(0, 0) points.topLeft = new Point(0, 0)
points.topRight = new Point(neckOpening, 0) points.topRight = new Point(neckOpening, 0)

View file

@ -16,7 +16,7 @@ export default function (part) {
let width = (measurements.hpsToWaistBack + measurements.waistToHips) * options.ribbingHeight * 2 let width = (measurements.hpsToWaistBack + measurements.waistToHips) * options.ribbingHeight * 2
let length = complete let length = complete
? width * 2.5 ? width * 2.5
: measurements.chestCircumference * (1 + options.chestEase) * (1 - options.ribbingStretch) : measurements.chest * (1 + options.chestEase) * (1 - options.ribbingStretch)
// We only print a part, unless complete is false in which case // We only print a part, unless complete is false in which case
// we print the entire thing (because laser cutters and so on) // we print the entire thing (because laser cutters and so on)
@ -73,9 +73,7 @@ export default function (part) {
from: points.bottomLeft, from: points.bottomLeft,
to: points.bottomRight, to: points.bottomRight,
y: points.bottomRight.y + sa + 15, y: points.bottomRight.y + sa + 15,
text: units( text: units(measurements.chest * (1 + options.chestEase) * (1 - options.ribbingStretch))
measurements.chestCircumference * (1 + options.chestEase) * (1 - options.ribbingStretch)
)
}) })
} }