satori
satori copied to clipboard
A way to discover nodes (id's, classes, userData)
Feature Request
In order to identify nodes which later could become controlled. Even forwarding id's would probably be enough. Whatever renders the SVG now could inflate the layout with behaviour like events and such.
Description
<Satori>
<div id="test">...
--->
<svg...>
<g id="test">
<path ...>
Good call, I think it should preserve id, class and data-* attributes. There's some work to be done for this because it's not a 1:1 mapping between DOM/SVG elements, e.g. currently Satori will not render an empty and transparent <div>.
How about passing an allowlist? It might be hard to guess what users will want to preserve so best to let the user configure it.