pathbuilder icon indicating copy to clipboard operation
pathbuilder copied to clipboard

Z instruction in Path statement is not handled correctly

Open dinther opened this issue 1 year ago • 0 comments

Although earlier implementations were incorrect. The latest change made it impossible to generate open ended point lists.

pts=svgPoints("M0 0H100V100H0")[0];
echo("points are: ",pts);

ECHO: "points are: ", [[0, 0], [100, 0], [100, 100], [0, 100], [0, 0]]

Expected is

ECHO: "points are: ", [[0, 0], [100, 0], [100, 100], [0, 100]]

Although typically paths in the context of polygons are closed by the nature of a polygon, this is not always desired when a pathBuilder is used to generate a list of points.

dinther avatar Feb 24 '24 01:02 dinther