diff --git a/packages/core/src/path.js b/packages/core/src/path.js index 02e237c32da..f799ea51422 100644 --- a/packages/core/src/path.js +++ b/packages/core/src/path.js @@ -348,14 +348,20 @@ function pathOffset(path, distance, raise) { .withRaise(path.raise) .move(current) .curve(op.cp1, op.cp2, op.to) - .shiftAlong(2) + cp1 = cp1.shiftAlong(cp1.length() > 2 + ? 2 + : cp1.length()/10 + ) } else cp1 = op.cp1 if (op.cp2.sitsRoughlyOn(op.to)) { cp2 = new Path(path.debug) .withRaise(path.raise) .move(op.to) .curve(op.cp2, op.cp1, current) - .shiftAlong(2) + cp2 = cp2.shiftAlong(cp2.length() > 2 + ? 2 + : cp2.length()/10 + ) } else cp2 = op.cp2 let b = new Bezier( { x: current.x, y: current.y },