chore(trayvon): Ported trayvon to new measurements. See #416
This commit is contained in:
parent
4cfb162d9d
commit
5049380656
2 changed files with 5 additions and 8 deletions
|
@ -12,7 +12,7 @@ export default {
|
||||||
optionGroups: {
|
optionGroups: {
|
||||||
style: ['tipWidth', 'knotWidth', 'lengthBonus']
|
style: ['tipWidth', 'knotWidth', 'lengthBonus']
|
||||||
},
|
},
|
||||||
measurements: ['hpsToHipsBack', 'naturalWaistToHip', 'neckCircumference'],
|
measurements: ['hpsToWaistBack', 'waistToHips', 'neckCircumference'],
|
||||||
parts: [
|
parts: [
|
||||||
'interfacingTip',
|
'interfacingTip',
|
||||||
'interfacingTail',
|
'interfacingTail',
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
export const calculateHelpers = part => {
|
export const calculateHelpers = (part) => {
|
||||||
let { store, measurements, options } = part.shorthand()
|
let { store, measurements, options } = part.shorthand()
|
||||||
|
|
||||||
let halfLength =
|
let halfLength =
|
||||||
(measurements.hpsToHipsBack + measurements.neckCircumference / 2) * (1 + options.lengthBonus)
|
(measurements.hpsToWaistBack + measurements.waistToHips + measurements.neckCircumference / 2) *
|
||||||
|
(1 + options.lengthBonus)
|
||||||
let backTip = options.tipWidth * 0.7
|
let backTip = options.tipWidth * 0.7
|
||||||
if (backTip < options.knotWidth) backTip = options.knotWidth
|
if (backTip < options.knotWidth) backTip = options.knotWidth
|
||||||
|
|
||||||
|
@ -94,9 +95,5 @@ export const seamAllowance = (part, className) => {
|
||||||
.line(points.tipRight)
|
.line(points.tipRight)
|
||||||
.offset(sa * -1)
|
.offset(sa * -1)
|
||||||
.attr('class', 'sa ' + className)
|
.attr('class', 'sa ' + className)
|
||||||
paths.sa
|
paths.sa.move(paths.sa.end()).line(points.tipRight).move(paths.sa.start()).line(points.tipLeft)
|
||||||
.move(paths.sa.end())
|
|
||||||
.line(points.tipRight)
|
|
||||||
.move(paths.sa.start())
|
|
||||||
.line(points.tipLeft)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue