mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

After Z, next subpath starts at same position #53

Closed mdejean closed 6 years ago

mdejean commented 6 years ago

Fixes #52

mdejean commented 6 years ago

The spec does not mention "implicit commands", rather the moveto, line, curve, and arc commands can have multiple arguments (and for moveto they make lines). Z takes no arguments.

mathandy commented 6 years ago

Hi @mdejean I'm not sure what you mean -- the spec (the same linked to, in section 8.3.2) does mention "implicit" commands:

"If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands. Hence, implicit lineto commands will be relative if the moveto is relative, and absolute if the moveto is absolute."

Also, are you saying this because you believe it has something to do with the comment on line 83 left over from svg.path (which is a python module that svgpathtools is forked from)?