1
0
Fork 0

added paperless measurements

This commit is contained in:
biou 2021-07-25 22:30:15 +02:00 committed by joostdecock
parent 87701ba3e5
commit 11393e5825

View file

@ -2,44 +2,80 @@ export const sharedDimensions = function (part, s) {
let { macro, Point, points, sa } = part.shorthand() let { macro, Point, points, sa } = part.shorthand()
if (s === 'front') { if (s === 'front') {
points.cHem = points.cfHem points.cHem = points.cfBottom
points.cNeck = points.cfNeck points.cNeck = points.cfNeck
} else { } else {
points.cHem = points.cbHem points.cHem = points.cbBottom
points.cNeck = points.cbNeck points.cNeck = points.cbNeck
} }
macro('hd', { macro('hd', {
from: points.cHem, from: points.cHem,
to: points.hem, to: points.bottom,
y: points.cHem.y + 3 * sa + 15, y: points.cHem.y + 3 * sa + 15,
}) })
macro('ld', {
from: new Point(0, points.armholePitch.y),
to: points.armholePitch,
})
macro('hd', { macro('hd', {
from: points.cNeck, from: points.armhole,
to: points.neck, to: points.bottom,
y: points.neck.y - sa - 15, y: points.bottom.y + 10,
})
macro('hd', {
from: points.cNeck,
to: points.shoulder,
y: points.neck.y - sa - 30,
})
macro('hd', {
from: points.cNeck,
to: points.armhole,
y: points.neck.y - sa - 45,
}) })
if (s === 'front') {
macro('ld', {
from: new Point(points.s3CollarSplit.x, points.armholePitch.y),
to: points.armholePitch,
})
} else {
macro('ld', {
from: new Point(0, points.armholePitch.y),
to: points.armholePitch,
})
}
if (s === 'back') {
macro('hd', {
from: points.cNeck,
to: points.neck,
y: points.neck.y - sa - 15,
})
macro('hd', {
from: points.cNeck,
to: points.shoulder,
y: points.neck.y - sa - 30,
})
macro('hd', {
from: points.cNeck,
to: points.armhole,
y: points.neck.y - sa - 45,
})
}
if (s === 'front') {
macro('hd', {
from: points.button,
to: points.s3CollarSplit,
y: points.s3CollarSplit.y,
})
macro('vd', {
from: points.button,
to: points.s3CollarSplit,
x: points.button.x,
})
macro('vd', {
from: points.s3CollarSplit,
to: points.s3ArmholeSplit,
x: points.s3ArmholeSplit.x,
})
}
macro('ld', { macro('ld', {
from: points.neck, from: points.neck,
to: points.shoulder, to: points.shoulder,
d: -15, d: -15,
}) })
macro('vd', { macro('vd', {
from: points.hem, from: points.cHem,
to: points.bottom,
x: points.bottom.x + 10,
})
macro('vd', {
from: points.bottom,
to: points.armhole, to: points.armhole,
x: points.armhole.x + sa + 15, x: points.armhole.x + sa + 15,
}) })
@ -63,21 +99,23 @@ export const sharedDimensions = function (part, s) {
to: points.neck, to: points.neck,
x: points.armhole.x + sa + 45, x: points.armhole.x + sa + 45,
}) })
macro('vd', { if (s === 'back') {
from: points.cNeck, macro('vd', {
to: points.neck, from: points.cNeck,
x: points.cNeck.x - 15, to: points.neck,
}) x: points.cNeck.x - 15,
macro('vd', { })
from: points.cHem, macro('vd', {
to: points.cNeck, from: points.cHem,
x: points.cNeck.x - 15, to: points.cNeck,
}) x: points.cNeck.x - 15,
macro('vd', { })
from: points.cHem, macro('vd', {
to: points.neck, from: points.cHem,
x: points.cNeck.x - 30, to: points.neck,
}) x: points.cNeck.x - 30,
})
}
} }
export const draftRibbing = function (part, length) { export const draftRibbing = function (part, length) {