diff --git a/packages/bruce/src/inset.js b/packages/bruce/src/inset.js index c4bbdd3618b..a5ef2403883 100644 --- a/packages/bruce/src/inset.js +++ b/packages/bruce/src/inset.js @@ -31,18 +31,28 @@ export default function(part) { ) // Path - paths.seam = new Path() - .move(points.topLeft) - .line(points.bottomLeft) - .line(points.bottomRight) + paths.saBase = new Path() + .move(points.bottomRight) .line(points.tip) .curve(points.tipCpBottom, points.tipCpTop, points.topLeft) + .line(points.bottomLeft) + paths.hemBase = new Path().move(points.bottomLeft).line(points.bottomRight) + paths.saBase.render = false + paths.hemBase.render = false + paths.seam = paths.saBase + .join(paths.hemBase) .close() .attr('class', 'fabric') // Complete pattern? if (complete) { - if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa') + if (sa) { + paths.sa = paths.saBase + .offset(sa) + .join(paths.hemBase.offset(sa * 2)) + .close() + .attr('class', 'fabric sa') + } points.title = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5) macro('title', { at: points.title.shift(-90, 15), diff --git a/packages/bruce/src/side.js b/packages/bruce/src/side.js index 5784b8b80cb..301b812d4b0 100644 --- a/packages/bruce/src/side.js +++ b/packages/bruce/src/side.js @@ -44,12 +44,16 @@ export default function(part) { points.topRight = points.topRight.shift(90, store.get('frontRise')) // Path - paths.seam = new Path() - .move(points.topLeft) + paths.saBase = new Path() + .move(points.bottomLeft) + .line(points.topLeft) .line(points.topRight) .line(points.bottomRight) - .line(points.bottomLeft) - .line(points.topLeft) + paths.hemBase = new Path().move(points.bottomRight).line(points.bottomLeft) + paths.saBase.render = false + paths.hemBase.render = false + paths.seam = paths.saBase + .join(paths.hemBase) .close() .attr('class', 'fabric') @@ -65,7 +69,11 @@ export default function(part) { title: 'side' }) if (sa) { - paths.sa = paths.seam.offset(sa * -1).attr('class', 'fabric sa') + paths.sa = paths.saBase + .offset(sa * -1) + .join(paths.hemBase.offset(sa * -2)) + .close() + .attr('class', 'fabric sa') } macro('grainline', { from: new Point(points.bottomRight.x / 2, points.bottomRight.y),