Merge pull request #2127 from bobgeorgethe3rd/holmes
Holmes and Bee Config Updates
This commit is contained in:
commit
7d699f875a
4 changed files with 32 additions and 33 deletions
|
@ -121,7 +121,7 @@ export default {
|
|||
metric: [6, 13, 19, 25, 32, 38],
|
||||
imperial: [6.35, 12.7, 19.05, 25.4, 31.75, 38.1],
|
||||
},
|
||||
...pctBasedOn('bustSpan'),
|
||||
toAbs: (pct, { measurements }) => measurements.bustSpan * pct,
|
||||
},
|
||||
neckTieLength: { pct: 80, min: 70, max: 100 },
|
||||
neckTieEnds: { dflt: 'straight', list: ['straight', 'pointed'] },
|
||||
|
@ -135,7 +135,7 @@ export default {
|
|||
metric: [6, 13, 19, 25, 32, 38],
|
||||
imperial: [6.35, 12.7, 19.05, 25.4, 31.75, 38.1],
|
||||
},
|
||||
...pctBasedOn('hpsToWaistFront'),
|
||||
toAbs: (pct, { measurements }) => measurements.hpsToWaistFront * pct,
|
||||
},
|
||||
bandTieLength: { pct: 35, min: 30, max: 50 },
|
||||
bandTieEnds: { dflt: 'straight', list: ['straight', 'pointed'] },
|
||||
|
|
|
@ -37,7 +37,7 @@ export default {
|
|||
metric: [6, 13, 19, 25, 32, 38, 44, 50],
|
||||
imperial: [6.35, 12.7, 19.05, 25.4, 31.75, 38.1, 44.45, 50.8],
|
||||
},
|
||||
...pctBasedOn('head'),
|
||||
toAbs: (pct, { measurements }) => measurements.head * pct,
|
||||
},
|
||||
lengthRatio: { pct: 55, min: 40, max: 60 },
|
||||
gores: { count: 6, min: 4, max: 20 },
|
||||
|
|
|
@ -26,11 +26,14 @@ export default function (part) {
|
|||
points.bottomFlipped = points.bottom.flipX()
|
||||
points.bottomC = points.bottom.shift(90, points.bottom.y - points.bottom.x)
|
||||
points.bottomCFlipped = points.bottomC.flipX()
|
||||
paths.seam = new Path()
|
||||
paths.saBase = new Path()
|
||||
.move(points.bottom)
|
||||
.curve(points.bottomC, points.topC, points.top)
|
||||
.curve(points.topCFlipped, points.bottomCFlipped, points.bottomFlipped)
|
||||
paths.hem = new Path().move(points.bottomFlipped).line(points.bottom)
|
||||
.setRender(false)
|
||||
paths.hemBase = new Path().move(points.bottomFlipped).line(points.bottom)
|
||||
.setRender(false)
|
||||
paths.seam = paths.saBase.join(paths.hemBase).close()
|
||||
// Complete?
|
||||
if (complete) {
|
||||
macro('grainline', { from: points.top, to: new Point(0, points.bottom.y) })
|
||||
|
@ -45,9 +48,9 @@ export default function (part) {
|
|||
snippets.buttonhole = new Snippet('buttonhole-start', points.buttonhole).attr('data-scale', 2)
|
||||
}
|
||||
if (sa) {
|
||||
paths.sa = paths.seam
|
||||
paths.sa = paths.saBase
|
||||
.offset(sa)
|
||||
.join(paths.hem.offset(sa * 2))
|
||||
.join(paths.hemBase.offset(sa * 2))
|
||||
.attr('class', 'fabric sa')
|
||||
.close()
|
||||
}
|
||||
|
|
|
@ -46,38 +46,34 @@ export default function (part) {
|
|||
)
|
||||
points.ex1CFlipped = points.ex1C.flipX()
|
||||
points.ex2CFlipped = points.ex2C.flipX()
|
||||
|
||||
paths.seam = new Path()
|
||||
.move(points.in2Flipped)
|
||||
.curve(points.in2CFlipped, points.in1CFlipped, points.in1)
|
||||
.curve(points.in1C, points.in2C, points.in2)
|
||||
.curve(points.ex2C, points.ex1C, points.ex1)
|
||||
.curve(points.ex1CFlipped, points.ex2CFlipped, points.in2Flipped)
|
||||
.close()
|
||||
|
||||
paths.saInner = new Path ()
|
||||
.move(points.in2)
|
||||
.curve(points.in2C, points.in1C, points.in1)
|
||||
.curve(points.in1CFlipped, points.in2CFlipped, points.in2Flipped)
|
||||
.setRender(false)
|
||||
|
||||
paths.saOuter = new Path()
|
||||
.move(points.in2Flipped)
|
||||
.curve(points.ex2CFlipped, points.ex1CFlipped, points.ex1)
|
||||
.curve(points.ex1C, points.ex2C, points.in2)
|
||||
.setRender(false)
|
||||
|
||||
paths.seam = paths.saOuter.join(paths.saInner).close()
|
||||
// Complete?
|
||||
if (complete) {
|
||||
macro('grainline', { from: points.in1, to: points.ex1 })
|
||||
macro('title', { at: points.ex1.shift(45, 20), nr: 2, title: 'visor', scale: 0.4 })
|
||||
|
||||
if (sa) {
|
||||
paths.saInner = new Path()
|
||||
.move(points.in2Flipped)
|
||||
.curve(points.in2CFlipped, points.in1CFlipped, points.in1)
|
||||
.curve(points.in1C, points.in2C, points.in2)
|
||||
.offset(sa * -2)
|
||||
.attr('class', 'fabric sa')
|
||||
points.sa1 = new Point(points.in2Flipped.x - sa, paths.saInner.start().y)
|
||||
points.sa2 = new Point(points.in2.x + sa, paths.saInner.start().y)
|
||||
paths.sa = new Path()
|
||||
.move(points.in2)
|
||||
.curve(points.ex2C, points.ex1C, points.ex1)
|
||||
.curve(points.ex1CFlipped, points.ex2CFlipped, points.in2Flipped)
|
||||
.offset(sa * -1)
|
||||
.line(points.sa1)
|
||||
.join(paths.saInner)
|
||||
.line(points.sa2)
|
||||
.close()
|
||||
.attr('class', 'fabric sa')
|
||||
points.sa1 = new Point(points.in2.x + sa, paths.saInner.offset(sa*2).start().y)
|
||||
points.sa2 = points.sa1.flipX(points.in1)
|
||||
paths.sa = paths.saOuter.offset(sa)
|
||||
.line(points.sa1)
|
||||
.join(paths .saInner.offset(sa * 2))
|
||||
.line(points.sa2)
|
||||
.close()
|
||||
.attr('class', 'fabric sa')
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue