🐛 Increased control point shift to avoid collisions in offset
This commit is contained in:
parent
6c20fa1325
commit
336e0a4248
1 changed files with 2 additions and 2 deletions
|
@ -240,13 +240,13 @@ function pathOffset(path, distance) {
|
|||
cp1 = new Path()
|
||||
.move(current)
|
||||
.curve(op.cp1, op.cp2, op.to)
|
||||
.shiftAlong(1);
|
||||
.shiftAlong(2);
|
||||
} else cp1 = op.cp1;
|
||||
if (op.cp2.sitsOn(op.to)) {
|
||||
cp2 = new Path()
|
||||
.move(op.to)
|
||||
.curve(op.cp2, op.cp1, current)
|
||||
.shiftAlong(1);
|
||||
.shiftAlong(2);
|
||||
} else cp2 = op.cp2;
|
||||
let b = new Bezier(
|
||||
{ x: current.x, y: current.y },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue