Skip to content

Commit

Permalink
Fix last point in path
Browse files Browse the repository at this point in the history
  • Loading branch information
jonobr1 committed Feb 9, 2025
1 parent abc8df9 commit eebbd6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,10 +941,9 @@ export class Path extends Shape {
v.command = Commands.line;
}
});
} else if (closed) {
points.push(new Anchor(a.x, a.y));
}

points.push(new Anchor(a.x, a.y));
points[points.length - 1].command = closed
? Commands.close
: Commands.line;
Expand Down

0 comments on commit eebbd6c

Please sign in to comment.