See working example here: https://github.com/mailzwj/sstp/blob/master/svg-shape-to-path.js
Circle and ellipse hasn't been added because they're have less bytes in a form of circle and ellipse tags instead of path.
But when there are a lot of circles it is better to convert them to path and merge. You can add ellipse and shapes conversion and and add a flag for those who want convert them.
It may be so, but there is no such a logic for now. It requires sophisticated algo that doesn't fit in current design. May be in future, when there'll be much better architecture (it's in early planning stage).
Agree to @onlymega , I try to use js to draw svg instead of use svg as image.
I want my svg is all made by Paths.
@onlymega would also like to see this implemented.
Maybe as an optional argument which is off by default?
Such an option was added in v1.0.0.
Most helpful comment
Such an option was added in v1.0.0.