edemaine / svgtiler

Tool for drawing diagrams on a grid, combining grids of SVGs into a big SVG figure
MIT License
61 stars 6 forks source link

Faster conversion from VDOM #82

Open edemaine opened 2 years ago

edemaine commented 2 years ago

Currently we render VDOM to a string for duplicate detection, and then parse that string into xmldom in Node and actual DOM in browser.

Alternatively, we could always work with Preact instead of DOM. Then we wouldn't have to convert Preact at all (but would still have to parse strings). Code gets a little uglier (would need custom setAttribute).