I want to convert a SVG to CETZ, you can say that typst can embed SVGs as images and that's fine, but I want to manipulate groups inside this SVG, not just simply display it.
Here is an example of what I mean
https://svgshare.com/i/102J.svg
Don't misunderstand me, I don't want animated SVG import in typst this makes no sense, I want a way to manpulate these svg objects in typst, or alternatively a way to draw them with cetz.
#SVG import
7 messages · Page 1 of 1 (latest)
Cetz is not mature enough for anyone to have made a tool like this yet
There was a point where drawing paths with SVG input was close to being added but not anymore. I doubt it'll happen anytime soon but it shouldn't be too difficult for someone to make another package that could
Note that Typst and Cetz do not support moving inside paths without drawing a line, making paths with holes in them impossible (without rendering SVG) via native Typst drawing primitives. Therefore a translation from SVG to Cetz could be impossibble right now (or you process such paths by splitting them into multiple which could get quite complex…)
is there an issue tracking this?
There was a PR about implementing a path Type in Typst but it is really old and got closed: https://github.com/typst/typst/pull/673.
It does not have to be a native canvas implementation though, some more advanced version of path(..) would be enough.