1
0
Fork 0

chore(charlie): Raise relevant info

This commit is contained in:
Joost De Cock 2021-04-12 19:15:23 +02:00
parent dc133297f1
commit b92feed66e
2 changed files with 11 additions and 2 deletions

View file

@ -42,7 +42,9 @@ export default (part) => {
utils,
snippets,
Snippet,
sa
sa,
raise,
units
} = part.shorthand()
// Mark back pocket
@ -109,6 +111,7 @@ export default (part) => {
.length() +
new Path().move(points.backDartRight).curve_(points.backDartRightCp, points.slantOut).length()
)
store.set('legWidthBack', points.floorIn.dist(points.floorOut))
// Round the slant
points.slantCurveStart = points.slantBottom.shiftFractionTowards(
@ -184,6 +187,11 @@ export default (part) => {
.close()
.attr('class', 'fabric sa')
}
raise.info(
`Inseam height: ${units(points.fork.dy(points.floorIn))} | ` +
`Waist: ${units((store.get('waistbandBack') + store.get('waistbandFront')) * 2)} | ` +
`Bottom leg width: ${units((store.get('legWidthBack') + store.get('legWidthFront')) / 2)}`
)
if (paperless) {
}

View file

@ -145,8 +145,9 @@ export default (part) => {
paths.seam = drawPath().close().attr('class', 'fabric')
// Store waistband length
store.set('waistbandFront', points.styleWaistIn.dist(points.styleWaistOut))
store.set('waistbandFront', points.styleWaistIn.dist(points.slantTop))
store.set('waistbandFly', points.styleWaistIn.dist(points.flyTop))
store.set('legWidthFront', points.floorIn.dist(points.floorOut))
if (complete) {
points.titleAnchor = new Point(points.knee.x, points.fork.y)