1
0
Fork 0

chore(huey) Removed circumference suffix from measurements

This commit is contained in:
Joost De Cock 2020-06-28 13:10:06 +02:00
parent 639f92ba78
commit 7ebd2aa8e9
6 changed files with 18 additions and 30 deletions

View file

@ -65,17 +65,17 @@ export default {
]
},
measurements: [
'bicepsCircumference',
'chestCircumference',
'headCircumference',
'hipsCircumference',
'biceps',
'chest',
'head',
'hips',
'hpsToWaistBack',
'waistToHips',
'neckCircumference',
'neck',
'shoulderSlope',
'shoulderToShoulder',
'shoulderToWrist',
'wristCircumference'
'wrist'
],
dependencies: {
backBase: 'base',

View file

@ -26,7 +26,7 @@ export default function (part) {
}
// Shape side seam
points.hips.x = (measurements.hipsCircumference * (1 + options.hipsEase)) / 4
points.hips.x = (measurements.hips * (1 + options.hipsEase)) / 4
points.hem.x = points.hips.x
points.hemCp2 = new Point(points.hips.x, points.cbWaist.y)

View file

@ -1,13 +1,10 @@
import { draftRibbing } from './shared'
export default part => {
export default (part) => {
let { complete, points, measurements, options, macro } = part.shorthand()
if (!options.ribbing) return part
draftRibbing(
part,
measurements.wristCircumference * (1 + options.cuffEase) * (1 - options.ribbingStretch)
)
draftRibbing(part, measurements.wrist * (1 + options.cuffEase) * (1 - options.ribbingStretch))
// Complete pattern?
if (complete) {

View file

@ -24,7 +24,7 @@ export default function (part) {
}
// Shape side seam
points.hips.x = (measurements.hipsCircumference * (1 + options.hipsEase)) / 4
points.hips.x = (measurements.hips * (1 + options.hipsEase)) / 4
points.hem.x = points.hips.x
points.hemCp2 = new Point(points.hips.x, points.cfWaist.y)

View file

@ -1,4 +1,4 @@
export default function(part) {
export default function (part) {
let {
store,
macro,
@ -18,24 +18,18 @@ export default function(part) {
let base = store.get('frontNeckSeamLength') + store.get('backNeckSeamLength')
points.cfBottom = new Point(0, 0)
points.cbBottom = points.cfBottom.shift(0, base).rotate(options.hoodAngle, points.cfBottom)
points.cfHeightLeft = points.cfBottom.shift(
90,
measurements.headCircumference * options.hoodHeight
)
points.cfHeightLeft = points.cfBottom.shift(90, measurements.head * options.hoodHeight)
points.cfHeightRight = points.cfHeightLeft.shift(0, base)
points.cfTop = points.cfBottom
.shift(90, measurements.headCircumference * options.hoodClosure)
.shift(90, measurements.head * options.hoodClosure)
.rotate(options.hoodAngle, points.cfBottom)
points.frontTop = points.cfHeightLeft.shift(
0,
measurements.headCircumference * options.hoodCutback
)
points.frontTop = points.cfHeightLeft.shift(0, measurements.head * options.hoodCutback)
points.frontTopCp2 = new Point(points.frontTop.x, points.cfTop.y)
points.backPitch = new Point(
points.cbBottom.x + measurements.headCircumference * options.hoodDepth,
points.cbBottom.x + measurements.head * options.hoodDepth,
points.cfHeightRight.y * 0.6
)
points.backPitchCp1 = points.backPitch.shift(-90, measurements.headCircumference * 0.1)
points.backPitchCp1 = points.backPitch.shift(-90, measurements.head * 0.1)
points.backPitchCp2 = points.backPitchCp1.flipY(points.backPitch)
// Paths

View file

@ -1,13 +1,10 @@
import { draftRibbing } from './shared'
export default function(part) {
export default function (part) {
let { complete, points, measurements, options, macro } = part.shorthand()
if (!options.ribbing) return part
draftRibbing(
part,
measurements.hipsCircumference * (1 + options.hipsEase) * (1 - options.ribbingStretch)
)
draftRibbing(part, measurements.hips * (1 + options.hipsEase) * (1 - options.ribbingStretch))
// Complete pattern?
if (complete) {