From eebbd6c2efa0a28f10cea23da690321c7df745bc Mon Sep 17 00:00:00 2001 From: Jono Brandel Date: Sat, 8 Feb 2025 21:11:22 -0800 Subject: [PATCH] Fix last point in path --- src/path.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/path.js b/src/path.js index fad51c8e..90c6f335 100644 --- a/src/path.js +++ b/src/path.js @@ -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;