1
0
Fork 0

Merge pull request #7111 from BenJamesBen/bent-sleeve-use-biceps

fix(bent): Base sleeve width on biceps circumference
This commit is contained in:
Joost De Cock 2024-09-28 14:43:57 +02:00 committed by GitHub
commit f64dbac967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,8 @@ function draftBentSleeve({ Path, paths, points, store, options, part }) {
let { Point, Path, points, store, options, measurements, utils } = part.shorthand()
// Sleeve frame
points.top = new Point(0, 0)
points.boxTopRight = points.top.shift(0, (store.get('sleevecapTarget') / 5.8) * tweak)
const easedQuarterBiceps = (measurements.biceps / 4) * (1 + options.bicepsEase)
points.boxTopRight = points.top.shift(0, easedQuarterBiceps * tweak)
points.boxTopLeft = points.boxTopRight.flipX()
points.boxBottom = points.top.shift(
-90,