chore(simon) Removed circumference suffix from measurements
This commit is contained in:
parent
901811dc54
commit
a1ed717f5f
5 changed files with 26 additions and 31 deletions
|
@ -102,17 +102,17 @@ export default {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
measurements: [
|
measurements: [
|
||||||
'bicepsCircumference',
|
'biceps',
|
||||||
'chestCircumference',
|
'chest',
|
||||||
'hpsToWaistBack',
|
'hpsToWaistBack',
|
||||||
'waistCircumference',
|
'waist',
|
||||||
'waistToHips',
|
'waistToHips',
|
||||||
'neckCircumference',
|
'neck',
|
||||||
'shoulderSlope',
|
'shoulderSlope',
|
||||||
'shoulderToShoulder',
|
'shoulderToShoulder',
|
||||||
'hipsCircumference',
|
'hips',
|
||||||
'shoulderToWrist',
|
'shoulderToWrist',
|
||||||
'wristCircumference'
|
'wrist'
|
||||||
],
|
],
|
||||||
dependencies: {
|
dependencies: {
|
||||||
sleeveBase: ['frontBase', 'backBase'],
|
sleeveBase: ['frontBase', 'backBase'],
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default part => {
|
export default (part) => {
|
||||||
let {
|
let {
|
||||||
measurements,
|
measurements,
|
||||||
utils,
|
utils,
|
||||||
|
@ -14,8 +14,7 @@ export default part => {
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
const draft = function (tweak = 1) {
|
const draft = function (tweak = 1) {
|
||||||
let length =
|
let length = measurements.neck * (1 + options.collarEase - options.collarGap) * tweak
|
||||||
measurements.neckCircumference * (1 + options.collarEase - options.collarGap) * tweak
|
|
||||||
let width = options.collarStandWidth * (1 + options.collarRoll)
|
let width = options.collarStandWidth * (1 + options.collarRoll)
|
||||||
|
|
||||||
// Draft right side
|
// Draft right side
|
||||||
|
@ -46,7 +45,7 @@ export default part => {
|
||||||
._curve(points.bottomMidCp2, points.bottomMid)
|
._curve(points.bottomMidCp2, points.bottomMid)
|
||||||
.length()
|
.length()
|
||||||
|
|
||||||
return len * 2 - measurements.neckCircumference * (1 + options.collarEase - options.collarGap)
|
return len * 2 - measurements.neck * (1 + options.collarEase - options.collarGap)
|
||||||
}
|
}
|
||||||
|
|
||||||
let delta, tweak, run
|
let delta, tweak, run
|
||||||
|
@ -90,10 +89,7 @@ export default part => {
|
||||||
.attr('data-text-class', 'center')
|
.attr('data-text-class', 'center')
|
||||||
|
|
||||||
// Helplines
|
// Helplines
|
||||||
paths.help = new Path()
|
paths.help = new Path().move(points.topMid).line(points.bottomMid).attr('class', 'dotted')
|
||||||
.move(points.topMid)
|
|
||||||
.line(points.bottomMid)
|
|
||||||
.attr('class', 'dotted')
|
|
||||||
|
|
||||||
// Grainline
|
// Grainline
|
||||||
macro('grainline', {
|
macro('grainline', {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default part => {
|
export default (part) => {
|
||||||
let {
|
let {
|
||||||
measurements,
|
measurements,
|
||||||
sa,
|
sa,
|
||||||
|
@ -15,7 +15,7 @@ export default part => {
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
const draft = function (tweak = 1) {
|
const draft = function (tweak = 1) {
|
||||||
let length = measurements.neckCircumference * (1 + options.collarEase) * tweak
|
let length = measurements.neck * (1 + options.collarEase) * tweak
|
||||||
let width = options.collarStandWidth
|
let width = options.collarStandWidth
|
||||||
let half = length / 2
|
let half = length / 2
|
||||||
let bend = options.collarStandBend * -1
|
let bend = options.collarStandBend * -1
|
||||||
|
@ -73,7 +73,7 @@ export default part => {
|
||||||
.curve(points.leftBottomHingeCp2, points.bottomMidCp1, points.bottomMid)
|
.curve(points.leftBottomHingeCp2, points.bottomMidCp1, points.bottomMid)
|
||||||
.length()
|
.length()
|
||||||
|
|
||||||
return len * 2 - measurements.neckCircumference * (1 + options.collarEase)
|
return len * 2 - measurements.neck * (1 + options.collarEase)
|
||||||
}
|
}
|
||||||
|
|
||||||
let delta, tweak, run
|
let delta, tweak, run
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
export const calculateReduction = function (part) {
|
export const calculateReduction = function (part) {
|
||||||
let { store, measurements, options } = part.shorthand()
|
let { store, measurements, options } = part.shorthand()
|
||||||
let chest = measurements.chestCircumference * (1 + options.chestEase)
|
let chest = measurements.chest * (1 + options.chestEase)
|
||||||
let waist = measurements.waistCircumference * (1 + options.waistEase)
|
let waist = measurements.waist * (1 + options.waistEase)
|
||||||
let hips = measurements.hipsCircumference * (1 + options.hipsEase)
|
let hips = measurements.hips * (1 + options.hipsEase)
|
||||||
let waistReduction = chest - waist
|
let waistReduction = chest - waist
|
||||||
let hipsReduction = chest - hips
|
let hipsReduction = chest - hips
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ export const addButtonHoles = (part, origin) => addButtons(part, origin, 'button
|
||||||
export const draftBarrelCuff = (part) => {
|
export const draftBarrelCuff = (part) => {
|
||||||
let { store, points, measurements, options, Point } = part.shorthand()
|
let { store, points, measurements, options, Point } = part.shorthand()
|
||||||
let height = measurements.shoulderToWrist * options.cuffLength
|
let height = measurements.shoulderToWrist * options.cuffLength
|
||||||
let width = measurements.wristCircumference * (1 + options.cuffEase + options.cuffOverlap)
|
let width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap)
|
||||||
store.set('cuffHeight', height)
|
store.set('cuffHeight', height)
|
||||||
points.topLeft = new Point(0, 0)
|
points.topLeft = new Point(0, 0)
|
||||||
points.topRight = new Point(width, 0)
|
points.topRight = new Point(width, 0)
|
||||||
|
@ -66,7 +66,7 @@ export const decorateBarrelCuff = (part) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Button and buttonhole
|
// Button and buttonhole
|
||||||
let margin = measurements.wristCircumference * options.cuffOverlap
|
let margin = measurements.wrist * options.cuffOverlap
|
||||||
points.buttonLineTop = points.topRight.shift(180, margin / 2)
|
points.buttonLineTop = points.topRight.shift(180, margin / 2)
|
||||||
points.buttonLineBottom = points.bottomRight.shift(180, margin / 2)
|
points.buttonLineBottom = points.bottomRight.shift(180, margin / 2)
|
||||||
points.buttonholeLineTop = points.topLeft.shift(0, margin / 2)
|
points.buttonholeLineTop = points.topLeft.shift(0, margin / 2)
|
||||||
|
@ -94,11 +94,10 @@ export const decorateBarrelCuff = (part) => {
|
||||||
|
|
||||||
export const draftFrenchCuff = (part) => {
|
export const draftFrenchCuff = (part) => {
|
||||||
let { store, points, measurements, options, Point } = part.shorthand()
|
let { store, points, measurements, options, Point } = part.shorthand()
|
||||||
let margin = measurements.wristCircumference * options.cuffOverlap
|
let margin = measurements.wrist * options.cuffOverlap
|
||||||
let height = measurements.shoulderToWrist * options.cuffLength
|
let height = measurements.shoulderToWrist * options.cuffLength
|
||||||
let width =
|
let width =
|
||||||
measurements.wristCircumference *
|
measurements.wrist * (1 + options.cuffEase + options.cuffOverlap + options.cuffDrape) +
|
||||||
(1 + options.cuffEase + options.cuffOverlap + options.cuffDrape) +
|
|
||||||
margin / 2
|
margin / 2
|
||||||
store.set('cuffHeight', height)
|
store.set('cuffHeight', height)
|
||||||
points.topLeft = new Point(0, 0)
|
points.topLeft = new Point(0, 0)
|
||||||
|
@ -123,7 +122,7 @@ export const decorateFrenchCuff = (part) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Buttonholes
|
// Buttonholes
|
||||||
let margin = measurements.wristCircumference * options.cuffOverlap
|
let margin = measurements.wrist * options.cuffOverlap
|
||||||
points.buttonLineTop = points.topRight.shift(180, margin * 0.75)
|
points.buttonLineTop = points.topRight.shift(180, margin * 0.75)
|
||||||
points.buttonLineBottom = points.bottomRight.shift(180, margin * 0.75)
|
points.buttonLineBottom = points.bottomRight.shift(180, margin * 0.75)
|
||||||
points.buttonholeLineTop = points.topLeft.shift(0, margin * 0.75)
|
points.buttonholeLineTop = points.topLeft.shift(0, margin * 0.75)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default part => {
|
export default (part) => {
|
||||||
part.paths = {} // This removed paperless dimensions from brian block
|
part.paths = {} // This removed paperless dimensions from brian block
|
||||||
for (let pid of [
|
for (let pid of [
|
||||||
'__scaleboxLead',
|
'__scaleboxLead',
|
||||||
|
@ -23,13 +23,13 @@ export default part => {
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
// Sleeve width depends on cuff style
|
// Sleeve width depends on cuff style
|
||||||
let width = measurements.wristCircumference * (1 + options.cuffEase + options.cuffOverlap)
|
let width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap)
|
||||||
if (
|
if (
|
||||||
options.cuffStyle === 'straightFrenchCuff' ||
|
options.cuffStyle === 'straightFrenchCuff' ||
|
||||||
options.cuffStyle === 'roundedFrenchCuff' ||
|
options.cuffStyle === 'roundedFrenchCuff' ||
|
||||||
options.cuffStyle === 'angledFrenchCuff'
|
options.cuffStyle === 'angledFrenchCuff'
|
||||||
)
|
)
|
||||||
width = measurements.wristCircumference * (1 + options.cuffEase + options.cuffOverlap * 1.5)
|
width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap * 1.5)
|
||||||
points.wristRight.x = width / 2
|
points.wristRight.x = width / 2
|
||||||
points.wristLeft.x = width / -2
|
points.wristLeft.x = width / -2
|
||||||
let cuffLength = measurements.shoulderToWrist * options.cuffLength
|
let cuffLength = measurements.shoulderToWrist * options.cuffLength
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue