Open techniq opened 1 month ago
SVG reproduction when using CSS classes / variables will require some extra processing to fully reproduce visual.
Mike Bostock's examples of serialize()
and rasterize()
for SVG look straight forward (using document.createTreeWalker()
.
Likely how Download SVG
and Download PNG
are implemented (or at least the basics).
See discussion for approach with SVG
<Svg>
,<Canvas>
, etc) will make some options more difficult / impossible<Canvas>
, should be able to use:<Svg>
, should be able to use:new XMLSerializer().serializeToString(svg)