-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SVG backend #133
base: main
Are you sure you want to change the base?
Add SVG backend #133
Conversation
nikochiko
commented
Mar 12, 2024
- Refactor and rename: backends, cairo, contexts
- Remove axes from square
- Fix bug with rendering axes
- Add comment for axes.ml
- Run dune fmt
- Default line_width to 1 for cairo
- Remove stale comment for backend_cairo.ml
- Run dune fmt
- Re-add base to joy.opam
- Add SVG backend
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 |
That won't work because we want to compile to browser. Cairo bindings won't be available in the browser. |
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 |