fix(brian): Sleeve length was off
This commit is contained in:
parent
026acd68d6
commit
b00d350b68
1 changed files with 7 additions and 5 deletions
|
@ -15,15 +15,17 @@ export default (part) => {
|
||||||
macro,
|
macro,
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
|
// Determine the sleeve length
|
||||||
|
const len = measurements.shoulderToWrist * (1 + options.sleeveLengthBonus)
|
||||||
|
points.sleeveTip = paths.sleevecap.edge('top')
|
||||||
|
points.top = new Point(0, points.sleeveTip.y)
|
||||||
|
points.bottom = points.top.shift(-90, len)
|
||||||
|
|
||||||
// Wrist
|
// Wrist
|
||||||
let top = paths.sleevecap.bbox().topLeft.y
|
let top = paths.sleevecap.bbox().topLeft.y
|
||||||
points.centerWrist = new Point(
|
points.centerWrist = points.bottom.clone()
|
||||||
0,
|
|
||||||
top + measurements.shoulderToWrist * (1 + options.sleeveLengthBonus)
|
|
||||||
)
|
|
||||||
points.wristRight = points.centerWrist.shift(0, (measurements.wrist * (1 + options.cuffEase)) / 2)
|
points.wristRight = points.centerWrist.shift(0, (measurements.wrist * (1 + options.cuffEase)) / 2)
|
||||||
points.wristLeft = points.wristRight.rotate(180, points.centerWrist)
|
points.wristLeft = points.wristRight.rotate(180, points.centerWrist)
|
||||||
points.sleeveTip = paths.sleevecap.shiftFractionAlong(0.5)
|
|
||||||
|
|
||||||
// Paths
|
// Paths
|
||||||
paths.sleevecap.render = false
|
paths.sleevecap.render = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue