feat(huey): Port brian's s3 options
This commit is contained in:
parent
e8a826e842
commit
c217ff0a7a
3 changed files with 17 additions and 8 deletions
|
@ -31,6 +31,8 @@ export default {
|
||||||
'hoodClosure',
|
'hoodClosure',
|
||||||
'hoodDepth',
|
'hoodDepth',
|
||||||
'hoodAngle',
|
'hoodAngle',
|
||||||
|
's3Collar',
|
||||||
|
's3Armhole',
|
||||||
],
|
],
|
||||||
advanced: [
|
advanced: [
|
||||||
'acrossBackFactor',
|
'acrossBackFactor',
|
||||||
|
@ -116,6 +118,9 @@ export default {
|
||||||
frontArmholeDeeper: { pct: 0.5, min: 0, max: 1.5 },
|
frontArmholeDeeper: { pct: 0.5, min: 0, max: 1.5 },
|
||||||
lengthBonus: { pct: 10, min: 5, max: 15 },
|
lengthBonus: { pct: 10, min: 5, max: 15 },
|
||||||
shoulderEase: { pct: 0.5, min: -2, max: 6 },
|
shoulderEase: { pct: 0.5, min: -2, max: 6 },
|
||||||
|
// s3 is short for Shoulder Seam Shift
|
||||||
|
s3Collar: { pct: 0, min: -100, max: 100 },
|
||||||
|
s3Armhole: { pct: 0, min: -100, max: 100 },
|
||||||
sleeveLengthBonus: { pct: 1, min: 0, max: 10 },
|
sleeveLengthBonus: { pct: 1, min: 0, max: 10 },
|
||||||
sleevecapEase: { pct: 0, min: 0, max: 10 },
|
sleevecapEase: { pct: 0, min: 0, max: 10 },
|
||||||
sleevecapTopFactorX: { pct: 50, min: 25, max: 75 },
|
sleevecapTopFactorX: { pct: 50, min: 25, max: 75 },
|
||||||
|
|
|
@ -16,7 +16,9 @@ export default function (part) {
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
// Clear paths from Brian
|
// Clear paths from Brian
|
||||||
for (let p of Object.keys(paths)) delete paths[p]
|
for (let i in paths) {
|
||||||
|
if (['backArmhole','backCollar'].indexOf(i) === -1) delete paths[i]
|
||||||
|
}
|
||||||
|
|
||||||
// Shorten body to take ribbing into account
|
// Shorten body to take ribbing into account
|
||||||
if (options.ribbing) {
|
if (options.ribbing) {
|
||||||
|
@ -42,9 +44,9 @@ export default function (part) {
|
||||||
.curve_(points.hemCp2, points.armhole)
|
.curve_(points.hemCp2, points.armhole)
|
||||||
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
||||||
.curve(points.armholeHollowCp2, points.armholePitchCp1, points.armholePitch)
|
.curve(points.armholeHollowCp2, points.armholePitchCp1, points.armholePitch)
|
||||||
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
|
.join(paths.backArmhole)
|
||||||
.line(points.neck)
|
.line(points.s3CollarSplit)
|
||||||
.curve_(points.neckCp2, points.cbNeck)
|
.join(paths.backCollar)
|
||||||
.attr('class', 'note stroke-xxl')
|
.attr('class', 'note stroke-xxl')
|
||||||
paths.hemBase = new Path().move(points.cbHem).line(points.hem).attr('class', 'note stroke-xxl')
|
paths.hemBase = new Path().move(points.cbHem).line(points.hem).attr('class', 'note stroke-xxl')
|
||||||
paths.saBase.render = false
|
paths.saBase.render = false
|
||||||
|
|
|
@ -16,7 +16,9 @@ export default function (part) {
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
// Clear paths from Brian
|
// Clear paths from Brian
|
||||||
for (let p of Object.keys(paths)) delete paths[p]
|
for (let i in paths) {
|
||||||
|
if (['frontArmhole','frontCollar'].indexOf(i) === -1) delete paths[i]
|
||||||
|
}
|
||||||
|
|
||||||
// Shorten body to take ribbing into account
|
// Shorten body to take ribbing into account
|
||||||
if (options.ribbing) {
|
if (options.ribbing) {
|
||||||
|
@ -61,9 +63,9 @@ export default function (part) {
|
||||||
.curve_(points.hemCp2, points.armhole)
|
.curve_(points.hemCp2, points.armhole)
|
||||||
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
||||||
.curve(points.armholeHollowCp2, points.armholePitchCp1, points.armholePitch)
|
.curve(points.armholeHollowCp2, points.armholePitchCp1, points.armholePitch)
|
||||||
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
|
.join(paths.frontArmhole)
|
||||||
.line(points.neck)
|
.line(points.s3CollarSplit)
|
||||||
.curve(points.neckCp2, points.cfNeckCp1, points.cfNeck)
|
.join(paths.frontCollar)
|
||||||
.line(points.cfHem)
|
.line(points.cfHem)
|
||||||
.attr('class', 'note stroke-xxl')
|
.attr('class', 'note stroke-xxl')
|
||||||
paths.hemBase = new Path().move(points.cfHem).line(points.hem).attr('class', 'note stroke-xxl')
|
paths.hemBase = new Path().move(points.cfHem).line(points.hem).attr('class', 'note stroke-xxl')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue