Sudha247 / ocaml-joy

MIT License
21 stars 14 forks source link

Add SVG backend #133

Open nikochiko opened 4 months ago

nikochiko commented 4 months ago
FayCarsons commented 4 months ago

Cairo has the ability to render to SVGs and PNGs simultaneously, maybe sticking to that to reduce redundancy and take advantage of those features may be a better path?

I have some other thoughts as well, will add reviews later

nikochiko commented 4 months ago

That won't work because we want to compile to browser. Cairo bindings won't be available in the browser.

FayCarsons commented 4 months ago

Are you trying to render SVG files that can be downloaded from the browser, or attach SVG elements to the DOM so they can be viewed in-browser?

nikochiko commented 4 months ago

Are you trying to render SVG files that can be downloaded from the browser, or attach SVG elements to the DOM so they can be viewed in-browser?

To attach elements to the DOM - so they can be viewed in browser