Skip to content

Commit eebbd6c

Browse files
committed
Fix last point in path
1 parent abc8df9 commit eebbd6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/path.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,10 +941,9 @@ export class Path extends Shape {
941941
v.command = Commands.line;
942942
}
943943
});
944-
} else if (closed) {
945-
points.push(new Anchor(a.x, a.y));
946944
}
947945

946+
points.push(new Anchor(a.x, a.y));
948947
points[points.length - 1].command = closed
949948
? Commands.close
950949
: Commands.line;

0 commit comments

Comments
 (0)