1
0
Fork 0

chore: Linter changes

This commit is contained in:
Joost De Cock 2021-04-24 10:16:31 +02:00
parent dfdfc46ded
commit f191151ee4
354 changed files with 2467 additions and 2472 deletions

View file

@ -20,7 +20,7 @@ export default {
'sleeveBend',
'sleeveLengthBonus',
'waistEase',
'seatEase'
'seatEase',
],
advanced: [
'backNeckCutout',
@ -29,7 +29,7 @@ export default {
'lapelReduction',
'shoulderSlopeReduction',
'sleevecapHeight',
'sleevecapEase'
'sleevecapEase',
],
pockets: [
'pocketPlacementHorizontal',
@ -45,10 +45,10 @@ export default {
'innerPocketPlacement',
'innerPocketWidth',
'innerPocketDepth',
'innerPocketWeltHeight'
'innerPocketWeltHeight',
],
style: ['beltWidth', 'buttonSpacingHorizontal', 'cuffLength', 'length'],
collar: ['collarHeight', 'collarSpread', 'collarFlare']
collar: ['collarHeight', 'collarSpread', 'collarFlare'],
},
measurements: [
'biceps',
@ -65,7 +65,7 @@ export default {
'wrist',
'waistToFloor',
'waistToSeat',
'seat'
'seat',
],
dependencies: {
bentBack: 'bentBase',
@ -88,7 +88,7 @@ export default {
chestPocketBag: 'front',
innerPocketWelt: 'front',
innerPocketBag: 'front',
innerPocketTab: 'front'
innerPocketTab: 'front',
},
inject: {
bentBack: 'bentBase',
@ -100,7 +100,7 @@ export default {
topSleeve: 'bentTopSleeve',
underSleeve: 'bentUnderSleeve',
collar: 'collarStand',
pocketLining: 'pocket'
pocketLining: 'pocket',
},
hide: ['bentBase', 'bentBack', 'bentFront', 'bentSleeve', 'bentTopSleeve', 'bentUnderSleeve'],
options: {
@ -155,6 +155,6 @@ export default {
cuffLength: { pct: 15, min: 10, max: 20 },
collarHeight: { pct: 9.6, min: 8, max: 11 },
collarSpread: { deg: 4, min: 2, max: 6 },
collarFlare: { pct: 20, min: 0, max: 40 }
}
collarFlare: { pct: 20, min: 0, max: 40 },
},
}

View file

@ -14,7 +14,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
calculateRatios(part)
@ -96,12 +96,12 @@ export default function (part) {
if (complete) {
macro('sprinkle', {
snippet: 'bnotch',
on: ['shoulder', 'bpTriangleTip']
on: ['shoulder', 'bpTriangleTip'],
})
macro('grainline', {
from: points.cbWaist,
to: points.bpStart
to: points.bpStart,
})
points.logo = new Point(points.armhole.x * 0.7, points.dartTip.y)
@ -122,102 +122,102 @@ export default function (part) {
macro('hd', {
from: points.bpBottom,
to: points.cbWaist,
y: points.cbWaist.y + 15 + sa
y: points.cbWaist.y + 15 + sa,
})
macro('hd', {
from: points.cbWaist,
to: points.dartLeft,
y: points.cbWaist.y + 15 + sa
y: points.cbWaist.y + 15 + sa,
})
macro('hd', {
from: points.dartLeft,
to: points.dartRight,
y: points.cbWaist.y + 15 + sa
y: points.cbWaist.y + 15 + sa,
})
macro('hd', {
from: points.dartRight,
to: points.waist,
y: points.cbWaist.y + 15 + sa
y: points.cbWaist.y + 15 + sa,
})
macro('hd', {
from: points.cbWaist,
to: points.waist,
y: points.cbWaist.y + 30 + sa
y: points.cbWaist.y + 30 + sa,
})
macro('hd', {
from: points.bpBottom,
to: points.waist,
y: points.cbWaist.y + 45 + sa
y: points.cbWaist.y + 45 + sa,
})
macro('vd', {
from: points.waist,
to: points.armhole,
x: points.armhole.x + 15 + sa
x: points.armhole.x + 15 + sa,
})
macro('vd', {
from: points.armhole,
to: points.armholePitch,
x: points.armhole.x + 15 + sa
x: points.armhole.x + 15 + sa,
})
macro('vd', {
from: points.armhole,
to: points.shoulder,
x: points.armhole.x + 30 + sa
x: points.armhole.x + 30 + sa,
})
macro('vd', {
from: points.waist,
to: points.shoulder,
x: points.armhole.x + 45 + sa
x: points.armhole.x + 45 + sa,
})
macro('vd', {
from: points.dartRight,
to: points.dartTip,
x: points.dartRight.x + 15
x: points.dartRight.x + 15,
})
macro('vd', {
from: points.bpBottom,
to: points.bpTop,
x: points.bpTop.x - 15 - sa
x: points.bpTop.x - 15 - sa,
})
macro('vd', {
from: points.bpTop,
to: points.cbNeck,
x: points.bpTop.x - 15 - sa
x: points.bpTop.x - 15 - sa,
})
macro('vd', {
from: points.bpBottom,
to: points.neck,
x: points.bpTop.x - 30 - sa
x: points.bpTop.x - 30 - sa,
})
macro('vd', {
from: points.bpStart,
to: points.bpTriangleTip,
x: points.bpTriangleEdge.x + 15
x: points.bpTriangleEdge.x + 15,
})
macro('hd', {
from: points.bpStart,
to: points.bpTriangleEdge,
y: points.bpTriangleEdge.y + 15
y: points.bpTriangleEdge.y + 15,
})
macro('hd', {
from: points.cbNeck,
to: points.neck,
y: points.neck.y - 15 - sa
y: points.neck.y - 15 - sa,
})
macro('hd', {
from: points.cbNeck,
to: points.armholePitch,
y: points.neck.y - 30 - sa
y: points.neck.y - 30 - sa,
})
macro('hd', {
from: points.cbNeck,
to: points.shoulder,
y: points.neck.y - 45 - sa
y: points.neck.y - 45 - sa,
})
macro('hd', {
from: points.cbNeck,
to: points.armhole,
y: points.neck.y - 60 - sa
y: points.neck.y - 60 - sa,
})
}
}

View file

@ -10,7 +10,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
let length = 1.6 * (store.get('cbToDart') + store.get('dartToSide'))
@ -27,7 +27,7 @@ export default function (part) {
via: points.topLeft,
prefix: 'roundTop',
radius: width / 4,
render: true
render: true,
})
macro('round', {
from: points.topLeft,
@ -35,7 +35,7 @@ export default function (part) {
via: points.bottomLeft,
prefix: 'roundBottom',
radius: width / 4,
render: true
render: true,
})
// Paths
@ -56,7 +56,7 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 6,
title: 'belt'
title: 'belt',
})
points.logo = new Point(points.bottomRight.x * 0.75, points.bottomRight.y * 0.65)
snippets.logo = new Snippet('logo', points.logo)
@ -71,22 +71,22 @@ export default function (part) {
macro('hd', {
from: points.roundBottomStart,
to: points.roundBottomEnd,
y: points.roundBottomEnd.y + sa + 15
y: points.roundBottomEnd.y + sa + 15,
})
macro('hd', {
from: points.roundBottomStart,
to: points.button,
y: points.roundBottomEnd.y + sa + 30
y: points.roundBottomEnd.y + sa + 30,
})
macro('hd', {
from: points.roundBottomStart,
to: points.bottomRight,
y: points.roundBottomEnd.y + sa + 45
y: points.roundBottomEnd.y + sa + 45,
})
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
}
}

View file

@ -9,7 +9,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
points.topLeft = new Point(0, 0)
@ -47,12 +47,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 17,
title: 'chestPocketBag'
title: 'chestPocketBag',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10),
to: points.topLeft.shift(0, 10)
to: points.topLeft.shift(0, 10),
})
if (sa) {
@ -61,14 +61,14 @@ export default function (part) {
macro('ld', {
from: points.bottomRight.shift(180, 15),
to: points.topRight.shift(180, 15),
text: units(store.get('chestPocketBagDepth') * 2)
text: units(store.get('chestPocketBagDepth') * 2),
})
if (paperless) {
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomLeft.y + sa + 15
y: points.bottomLeft.y + sa + 15,
})
}
}

View file

@ -24,7 +24,7 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 12,
title: 'chestPocketWelt'
title: 'chestPocketWelt',
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -33,12 +33,12 @@ export default function (part) {
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomLeft.y + sa + 15
y: points.bottomLeft.y + sa + 15,
})
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
}
}

View file

@ -37,20 +37,20 @@ export default function (part) {
let rotate = {
1: {
pivot: 'cutBottom1',
points: ['cutBottom2', 'cutTop1', 'cutTop2', 'q2Cp1', 'q2Cp2']
points: ['cutBottom2', 'cutTop1', 'cutTop2', 'q2Cp1', 'q2Cp2'],
},
2: {
pivot: 'cutBottom2',
points: ['cutBottom3', 'cutTop2', 'cutTop3', 'q3Cp1', 'q3Cp2']
points: ['cutBottom3', 'cutTop2', 'cutTop3', 'q3Cp1', 'q3Cp2'],
},
3: {
pivot: 'cutBottom3',
points: ['standTip', 'bottomRight', 'cutTop4', 'cutTop3', 'q4Cp1']
points: ['standTip', 'bottomRight', 'cutTop4', 'cutTop3', 'q4Cp1'],
},
4: {
pivot: 'standTip',
points: ['topRight', 'bottomRight', 'cutTop4']
}
points: ['topRight', 'bottomRight', 'cutTop4'],
},
}
let angle = -1 * options.collarSpread
@ -77,7 +77,7 @@ export default function (part) {
'rot2cutTop3',
'rot2cutBottom3',
'rot2q3Cp1',
'rot2q3Cp2'
'rot2q3Cp2',
])
points[i] = points[i].shift(angle, distance)
@ -172,7 +172,7 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 8,
title: 'collar'
title: 'collar',
})
// Remove grainline from collarstand part
@ -180,7 +180,7 @@ export default function (part) {
macro('cutonfold', {
from: points.topLeft,
to: points.standTop,
grainline: true
grainline: true,
})
if (sa) {
@ -196,47 +196,47 @@ export default function (part) {
macro('hd', {
from: points.standTop,
to: points.rot3standTip,
y: points.rot4bottomRight.y + sa + 15
y: points.rot4bottomRight.y + sa + 15,
})
macro('hd', {
from: points.standTop,
to: points.rot4bottomRight,
y: points.rot4bottomRight.y + sa + 30
y: points.rot4bottomRight.y + sa + 30,
})
macro('hd', {
from: points.standTop,
to: points.rot4topRight,
y: points.rot4bottomRight.y + sa + 45
y: points.rot4bottomRight.y + sa + 45,
})
macro('vd', {
from: points.standTop,
to: points.topLeft,
x: points.topLeft.x - 15
x: points.topLeft.x - 15,
})
macro('vd', {
from: points.rot3standTip,
to: points.topLeft,
x: points.topLeft.x - 30
x: points.topLeft.x - 30,
})
macro('vd', {
from: points.rot4topRight,
to: points.topLeft,
x: points.rot4topRight.x + sa + 15
x: points.rot4topRight.x + sa + 15,
})
macro('vd', {
from: points.rot4bottomRight,
to: points.topLeft,
x: points.rot4topRight.x + sa + 30
x: points.rot4topRight.x + sa + 30,
})
macro('ld', {
from: points.rot4bottomRight,
to: points.rot4topRight,
d: -1 * sa - 15
d: -1 * sa - 15,
})
macro('ld', {
from: points.rot3standTip,
to: points.rot4bottomRight,
d: -1 * sa - 15
d: -1 * sa - 15,
})
}
}

View file

@ -10,7 +10,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
let height = measurements.chest * options.collarHeight
@ -48,12 +48,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 7,
title: 'collarStand'
title: 'collarStand',
})
macro('grainline', {
from: points.bottomLeft,
to: points.standTop
to: points.standTop,
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -62,17 +62,17 @@ export default function (part) {
macro('hd', {
from: points.standTipLeft,
to: points.standTip,
y: points.standTip.y + sa + 15
y: points.standTip.y + sa + 15,
})
macro('vd', {
from: points.bottomLeft,
to: points.standTop,
x: points.standTip.x + sa + 15
x: points.standTip.x + sa + 15,
})
macro('vd', {
from: points.standTip,
to: points.standTop,
x: points.standTip.x + sa + 30
x: points.standTip.x + sa + 30,
})
}
}

View file

@ -13,14 +13,14 @@ export default function (part) {
to: points.bottomRight,
via: points.bottomLeft,
radius: store.get('cuffRadius'),
prefix: 'roundLeft'
prefix: 'roundLeft',
})
macro('round', {
from: points.bottomLeft,
to: points.topRight,
via: points.bottomRight,
radius: store.get('cuffRadius'),
prefix: 'roundRight'
prefix: 'roundRight',
})
paths.seam = new Path()
@ -39,12 +39,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 9,
title: 'cuffFacing'
title: 'cuffFacing',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10 + store.get('cuffRadius')),
to: points.topLeft.shift(0, 10 + store.get('cuffRadius'))
to: points.topLeft.shift(0, 10 + store.get('cuffRadius')),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -53,22 +53,22 @@ export default function (part) {
macro('vd', {
from: points.roundRightStart,
to: points.roundRightEnd,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
macro('vd', {
from: points.roundRightStart,
to: points.topRight,
x: points.topRight.x + sa + 30
x: points.topRight.x + sa + 30,
})
macro('hd', {
from: points.roundRightStart,
to: points.roundRightEnd,
y: points.bottomRight.y + sa + 15
y: points.bottomRight.y + sa + 15,
})
macro('hd', {
from: points.roundLeftStart,
to: points.roundRightEnd,
y: points.bottomRight.y + sa + 30
y: points.bottomRight.y + sa + 30,
})
}
}

View file

@ -15,7 +15,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
calculateRatios(part)
@ -75,14 +75,14 @@ export default function (part) {
to: points.pocketBottomRight,
via: points.pocketBottomLeft,
prefix: 'pocketRoundLeft',
radius
radius,
})
macro('round', {
from: points.pocketBottomLeft,
to: points.pocketTopRight,
via: points.pocketBottomRight,
prefix: 'pocketRoundRight',
radius
radius,
})
store.set('pocketRadius', radius)
}
@ -110,14 +110,14 @@ export default function (part) {
to: points.pocketFlapBottomRight,
via: points.pocketFlapBottomLeft,
prefix: 'pocketFlapRoundLeft',
radius
radius,
})
macro('round', {
from: points.pocketFlapBottomLeft,
to: points.pocketFlapTopRight,
via: points.pocketFlapBottomRight,
prefix: 'pocketFlapRoundRight',
radius
radius,
})
store.set('pocketFlapRadius', radius)
}
@ -139,7 +139,7 @@ export default function (part) {
'chestPocketTopLeft',
'chestPocketBottomLeft',
'chestPocketTopRight',
'chestPocketBottomRight'
'chestPocketBottomRight',
])
points[i] = points[i].rotate(options.chestPocketAngle, points.chestPocketAnchor)
store.set('chestPocketBagDepth', points.button3Left.dx(points.chestPocketBottomLeft))
@ -306,7 +306,7 @@ export default function (part) {
macro('sprinkle', {
snippet: 'notch',
on: ['shoulder', 'cfNeck', 'rollLineStart', 'waist', 'seat']
on: ['shoulder', 'cfNeck', 'rollLineStart', 'waist', 'seat'],
})
points.logo = new Point(points.chestPocketTopRight.x, points.armhole.y)
@ -314,7 +314,7 @@ export default function (part) {
macro('grainline', {
from: points.cfHem,
to: points.cfNeck
to: points.cfNeck,
})
if (sa) {
@ -329,142 +329,142 @@ export default function (part) {
macro('ld', {
from: points.hemEdge,
to: points.flbHem,
d: 15
d: 15,
})
macro('ld', {
from: points.flbHem,
to: points.hem,
d: 15
d: 15,
})
macro('hd', {
from: points.hemEdge,
to: points.hem,
y: points.hem.y + 15 + 3 * sa
y: points.hem.y + 15 + 3 * sa,
})
macro('hd', {
from: points.rollLineStart,
to: points.pocketTopLeft,
y: points.pocketFlapBottomLeft.y
y: points.pocketFlapBottomLeft.y,
})
macro('vd', {
from: points.pocketFlapTopRight,
to: points.waist,
x: points.pocketTopRight.x - 15
x: points.pocketTopRight.x - 15,
})
macro('vd', {
from: points.pocketTopRight,
to: points.waist,
x: points.pocketTopRight.x - 30
x: points.pocketTopRight.x - 30,
})
macro('vd', {
from: points.chestPocketBottomLeft,
to: points.waist,
x: points.chestPocketBottomLeft.x - 15
x: points.chestPocketBottomLeft.x - 15,
})
macro('hd', {
from: points.rollLineStart,
to: points.chestPocketBottomLeft,
y: points.chestPocketBottomLeft.y + 15
y: points.chestPocketBottomLeft.y + 15,
})
macro('hd', {
from: points.rollLineStart,
to: points.button3Left,
y: points.button3Left.y + 15
y: points.button3Left.y + 15,
})
macro('hd', {
from: points.button3Left,
to: points.button3Right,
y: points.button3Left.y + 15
y: points.button3Left.y + 15,
})
macro('vd', {
from: points.hem,
to: points.seat,
x: points.hem.x + sa + 15
x: points.hem.x + sa + 15,
})
macro('vd', {
from: points.hem,
to: points.waist,
x: points.hem.x + sa + 30
x: points.hem.x + sa + 30,
})
macro('vd', {
from: points.hem,
to: points.armhole,
x: points.hem.x + sa + 45
x: points.hem.x + sa + 45,
})
macro('vd', {
from: points.armhole,
to: points.armholePitch,
x: points.armhole.x + sa + 15
x: points.armhole.x + sa + 15,
})
macro('vd', {
from: points.armhole,
to: points.shoulder,
x: points.armhole.x + sa + 30
x: points.armhole.x + sa + 30,
})
macro('vd', {
from: points.armhole,
to: points.neck,
x: points.armhole.x + sa + 45
x: points.armhole.x + sa + 45,
})
macro('vd', {
from: points.rollLineStart,
to: points.collarTip,
x: points.rollLineStart.x - sa - 15
x: points.rollLineStart.x - sa - 15,
})
macro('vd', {
from: points.button2Left,
to: points.rollLineStart,
x: points.rollLineStart.x - sa - 15
x: points.rollLineStart.x - sa - 15,
})
macro('vd', {
from: points.button1Left,
to: points.button2Left,
x: points.rollLineStart.x - sa - 15
x: points.rollLineStart.x - sa - 15,
})
macro('vd', {
from: points.hemEdge,
to: points.collarTip,
x: points.rollLineStart.x - sa - 30
x: points.rollLineStart.x - sa - 30,
})
macro('vd', {
from: points.hemEdge,
to: points.neck,
x: points.rollLineStart.x - sa - 45
x: points.rollLineStart.x - sa - 45,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.collarTip,
y: points.collarTip.y - sa - 15
y: points.collarTip.y - sa - 15,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.cfNeck,
y: points.collarTip.y - sa - 30
y: points.collarTip.y - sa - 30,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.rollLineEnd,
y: points.collarTip.y - sa - 45
y: points.collarTip.y - sa - 45,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.neck,
y: points.neck.y - sa - 15
y: points.neck.y - sa - 15,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.armholePitch,
y: points.neck.y - sa - 30
y: points.neck.y - sa - 30,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.shoulder,
y: points.neck.y - sa - 45
y: points.neck.y - sa - 45,
})
macro('hd', {
from: points.lapelStraightEnd,
to: points.armhole,
y: points.neck.y - sa - 60
y: points.neck.y - sa - 60,
})
}
}

View file

@ -10,7 +10,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
points.topLeft = new Point(0, 0)
@ -48,12 +48,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 14,
title: 'innerPocketBag'
title: 'innerPocketBag',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10),
to: points.topLeft.shift(0, 10)
to: points.topLeft.shift(0, 10),
})
if (sa) {
@ -62,14 +62,14 @@ export default function (part) {
macro('ld', {
from: points.bottomRight.shift(180, 15),
to: points.topRight.shift(180, 15),
text: units(store.get('innerPocketWidth') * options.innerPocketDepth * 2)
text: units(store.get('innerPocketWidth') * options.innerPocketDepth * 2),
})
if (paperless) {
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomLeft.y + sa + 15
y: points.bottomLeft.y + sa + 15,
})
}
}

View file

@ -24,12 +24,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 15,
title: 'innerPocketTab'
title: 'innerPocketTab',
})
macro('grainline', {
from: points.top,
to: points.top.shift(-45, points.top.x * 0.7)
to: points.top.shift(-45, points.top.x * 0.7),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'lining sa')
@ -38,17 +38,17 @@ export default function (part) {
macro('hd', {
from: points.topLeft,
to: points.top,
y: points.topLeft.y - sa - 15
y: points.topLeft.y - sa - 15,
})
macro('hd', {
from: points.topLeft,
to: points.topRight,
y: points.topLeft.y - sa - 30
y: points.topLeft.y - sa - 30,
})
macro('vd', {
from: points.bottom,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
}
}

View file

@ -43,12 +43,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 13,
title: 'innerPocketWelt'
title: 'innerPocketWelt',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10),
to: points.topLeft.shift(0, 10)
to: points.topLeft.shift(0, 10),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -57,22 +57,22 @@ export default function (part) {
macro('vd', {
from: points.realBottomRight,
to: points.realTopRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 30
x: points.topRight.x + sa + 30,
})
macro('hd', {
from: points.realBottomLeft,
to: points.realBottomRight,
y: points.bottomLeft.y + sa + 15
y: points.bottomLeft.y + sa + 15,
})
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomLeft.y + sa + 30
y: points.bottomLeft.y + sa + 30,
})
}
}

View file

@ -9,7 +9,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
points.topLeft = new Point(0, 0)
@ -24,14 +24,14 @@ export default function (part) {
to: points.bottomRight,
via: points.bottomLeft,
radius: store.get('pocketRadius'),
prefix: 'roundLeft'
prefix: 'roundLeft',
})
macro('round', {
from: points.bottomLeft,
to: points.topRight,
via: points.bottomRight,
radius: store.get('pocketRadius'),
prefix: 'roundRight'
prefix: 'roundRight',
})
paths.seam = new Path()
@ -57,12 +57,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 10,
title: 'pocket'
title: 'pocket',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10 + (store.get('pocketRadius') || 0)),
to: points.edgeLeft.shift(0, 10 + (store.get('pocketRadius') || 0))
to: points.edgeLeft.shift(0, 10 + (store.get('pocketRadius') || 0)),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -71,23 +71,23 @@ export default function (part) {
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
macro('vd', {
from: points.bottomRight,
to: points.edgeRight,
x: points.topRight.x + sa + 30
x: points.topRight.x + sa + 30,
})
macro('hd', {
from: points.edgeLeft,
to: points.edgeRight,
y: points.edgeRight.y - sa - 15
y: points.edgeRight.y - sa - 15,
})
if (options.pocketRadius > 0) {
macro('hd', {
from: points.roundRightStart,
to: points.roundRightEnd,
y: points.bottomRight.y + sa + 15
y: points.bottomRight.y + sa + 15,
})
}
}

View file

@ -9,7 +9,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
points.topLeft = new Point(0, 0)
@ -22,14 +22,14 @@ export default function (part) {
to: points.bottomRight,
via: points.bottomLeft,
radius: store.get('pocketFlapRadius'),
prefix: 'roundLeft'
prefix: 'roundLeft',
})
macro('round', {
from: points.bottomLeft,
to: points.topRight,
via: points.bottomRight,
radius: store.get('pocketFlapRadius'),
prefix: 'roundRight'
prefix: 'roundRight',
})
paths.seam = new Path()
@ -49,12 +49,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 11,
title: 'pocketFlap'
title: 'pocketFlap',
})
macro('grainline', {
from: points.bottomLeft.shift(0, points.topRight.x / 5),
to: points.topLeft.shift(0, points.topRight.x / 5)
to: points.topLeft.shift(0, points.topRight.x / 5),
})
if (sa) {
@ -65,24 +65,24 @@ export default function (part) {
macro('hd', {
from: points.topLeft,
to: points.topRight,
y: points.topLeft.y - sa - 15
y: points.topLeft.y - sa - 15,
})
if (options.pocketFlapRadius > 0) {
macro('vd', {
from: points.roundRightStart,
to: points.roundRightEnd,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
macro('vd', {
from: points.roundRightStart,
to: points.topRight,
x: points.topRight.x + sa + 30
x: points.topRight.x + sa + 30,
})
} else {
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
}
}

View file

@ -9,7 +9,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
points.topLeft = points.bottomLeft.shiftFractionTowards(points.topLeft, 0.75)
@ -20,14 +20,14 @@ export default function (part) {
to: points.bottomRight,
via: points.bottomLeft,
radius: store.get('pocketRadius'),
prefix: 'roundLeft'
prefix: 'roundLeft',
})
macro('round', {
from: points.bottomLeft,
to: points.topRight,
via: points.bottomRight,
radius: store.get('pocketRadius'),
prefix: 'roundRight'
prefix: 'roundRight',
})
paths.seam = new Path()
@ -49,12 +49,12 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 16,
title: 'pocketLining'
title: 'pocketLining',
})
macro('grainline', {
from: points.bottomLeft.shift(0, 10 + (store.get('pocketRadius') || 0)),
to: points.topLeft.shift(0, 10 + (store.get('pocketRadius') || 0))
to: points.topLeft.shift(0, 10 + (store.get('pocketRadius') || 0)),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'lining sa')
@ -63,18 +63,18 @@ export default function (part) {
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
x: points.topRight.x + sa + 15,
})
macro('hd', {
from: points.topLeft,
to: points.topRight,
y: points.topRight.y - sa - 15
y: points.topRight.y - sa - 15,
})
if (options.pocketRadius > 0) {
macro('hd', {
from: points.roundRightStart,
to: points.roundRightEnd,
y: points.bottomRight.y + sa + 15
y: points.bottomRight.y + sa + 15,
})
}
}

View file

@ -9,7 +9,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
let length = store.get('waistToHem') - store.get('beltWidth') / 2
@ -71,56 +71,56 @@ export default function (part) {
macro('title', {
at: points.title,
nr: 5,
title: 'tail'
title: 'tail',
})
macro('grainline', {
from: points.fold2Bottom.shift(0, 10),
to: points.fold2Top.shift(0, 10)
to: points.fold2Top.shift(0, 10),
})
if (sa) paths.sa = paths.seam.offset(sa).close().attr('class', 'fabric sa')
macro('vd', {
from: points.fold4Bottom.shift(0, 15),
to: points.fold4Top.shift(0, 15),
text: units(length)
text: units(length),
})
if (paperless) {
macro('hd', {
from: points.cbBottom,
to: points.fold1Bottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.fold1Bottom,
to: points.fold2Bottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.fold2Bottom,
to: points.fold3Bottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.fold3Bottom,
to: points.fold4Bottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.fold4Bottom,
to: points.fold5Bottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.fold5Bottom,
to: points.waistBottom,
y: points.cbBottom.y + sa + 15
y: points.cbBottom.y + sa + 15,
})
macro('hd', {
from: points.cbBottom,
to: points.waistBottom,
y: points.cbBottom.y + sa + 30
y: points.cbBottom.y + sa + 30,
})
}
}

View file

@ -11,7 +11,7 @@ export default function (part) {
paths,
Path,
Snippet,
snippets
snippets,
} = part.shorthand()
// Add cuff
@ -25,7 +25,7 @@ export default function (part) {
via: points.cuffBottomRight,
radius: length / 3,
render: true,
prefix: 'round'
prefix: 'round',
})
store.set('topCuffWidth', points.tsWristLeft.dist(points.tsWristRight))
store.set('cuffLength', length)
@ -55,7 +55,7 @@ export default function (part) {
if (complete) {
macro('grainline', {
from: points.boxBottom,
to: points.top
to: points.top,
})
macro('scalebox', { at: points.tsWristLeftHelperTop })
delete snippets.logo
@ -68,70 +68,70 @@ export default function (part) {
macro('ld', {
from: points.tsWristLeft,
to: points.tsWristRight,
d: -15
d: -15,
})
macro('vd', {
from: points.tsWristLeft,
to: points.tsElbowLeft,
x: points.tsLeftEdge.x - sa - 15
x: points.tsLeftEdge.x - sa - 15,
})
macro('vd', {
from: points.tsWristLeft,
to: points.tsLeftEdge,
x: points.tsLeftEdge.x - sa - 30
x: points.tsLeftEdge.x - sa - 30,
})
macro('ld', {
from: points.cuffBottomLeft,
to: points.tsWristLeft,
d: 15 + sa
d: 15 + sa,
})
macro('vd', {
from: points.cuffBottomRight,
to: points.usWristRight,
x: points.usWristRight.x + 15 + sa
x: points.usWristRight.x + 15 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.elbowRight,
x: points.elbowRight.x + 15 + sa
x: points.elbowRight.x + 15 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.tsRightEdge,
x: points.elbowRight.x + 30 + sa
x: points.elbowRight.x + 30 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.backPitchPoint,
x: points.elbowRight.x + 45 + sa
x: points.elbowRight.x + 45 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.top,
x: points.elbowRight.x + 60 + sa
x: points.elbowRight.x + 60 + sa,
})
macro('ld', {
from: points.tsElbowLeft,
to: points.elbowRight
to: points.elbowRight,
})
macro('ld', {
from: points.tsLeftEdge,
to: points.tsRightEdge
to: points.tsRightEdge,
})
macro('hd', {
from: points.tsLeftEdge,
to: points.top,
y: points.top.y - sa - 15
y: points.top.y - sa - 15,
})
macro('hd', {
from: points.tsLeftEdge,
to: points.backPitchPoint,
y: points.top.y - sa - 30
y: points.top.y - sa - 30,
})
macro('hd', {
from: points.tsLeftEdge,
to: points.tsRightEdge,
y: points.top.y - sa - 45
y: points.top.y - sa - 45,
})
}
}

View file

@ -10,7 +10,7 @@ export default function (part) {
macro,
Point,
paths,
Path
Path,
} = part.shorthand()
// Add cuff
@ -24,7 +24,7 @@ export default function (part) {
via: points.cuffBottomRight,
radius: length / 3,
render: true,
prefix: 'round'
prefix: 'round',
})
store.set('underCuffWidth', points.usWristLeft.dist(points.usWristRight))
@ -51,7 +51,7 @@ export default function (part) {
if (complete) {
macro('grainline', {
from: points.boxBottom,
to: new Point(points.top.x, points.usLeftEdge.y)
to: new Point(points.top.x, points.usLeftEdge.y),
})
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
@ -60,56 +60,56 @@ export default function (part) {
macro('ld', {
from: points.usWristLeft,
to: points.usWristRight,
d: -15
d: -15,
})
macro('vd', {
from: points.usWristLeft,
to: points.usElbowLeft,
x: points.usLeftEdge.x - sa - 15
x: points.usLeftEdge.x - sa - 15,
})
macro('vd', {
from: points.usWristLeft,
to: points.usLeftEdge,
x: points.usLeftEdge.x - sa - 30
x: points.usLeftEdge.x - sa - 30,
})
macro('ld', {
from: points.cuffBottomLeft,
to: points.usWristLeft,
d: 15 + sa
d: 15 + sa,
})
macro('vd', {
from: points.cuffBottomRight,
to: points.usWristRight,
x: points.usWristRight.x + 15 + sa
x: points.usWristRight.x + 15 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.elbowRight,
x: points.elbowRight.x + 15 + sa
x: points.elbowRight.x + 15 + sa,
})
macro('vd', {
from: points.usWristRight,
to: points.usTip,
x: points.elbowRight.x + 30 + sa
x: points.elbowRight.x + 30 + sa,
})
macro('ld', {
from: points.usElbowLeft,
to: points.elbowRight
to: points.elbowRight,
})
macro('ld', {
from: points.usLeftEdge,
to: points.usRightEdge,
d: -15
d: -15,
})
macro('hd', {
from: points.usLeftEdge,
to: points.usTip,
y: points.usTip.y - sa - 15
y: points.usTip.y - sa - 15,
})
macro('vd', {
from: points.usLeftEdge,
to: points.usTip,
x: points.usLeftEdge.x - sa - 15
x: points.usLeftEdge.x - sa - 15,
})
}
}