What would you like?
Rather than SVG string output, I would like a typed Rust representation of the vector graphic elements that I could render directly.
Use case
- Efficiently rendering plots to screen in Rust GUI applications
- Make it possible to implement 3rd-party backends
Any prior art?
The plotters DrawingBackend trait implements this idea. Although it complicates things by trying to support vector and bitmaps backends in the same trait. I think a simpler trait with SVG (vector) semantics would be fine
The Scene type is almost usable for this. Except that it uses stringly-typed defs rather than a typed representation of things like linear gradients (and I'm not sure if there is public way to render to a Scene?)
I would recommend building this on top of the kurbo, peniko, and possibly anyrender crates which already have a representation for most of SVG.
What would you like?
Rather than SVG string output, I would like a typed Rust representation of the vector graphic elements that I could render directly.
Use case
Any prior art?
The plotters
DrawingBackendtrait implements this idea. Although it complicates things by trying to support vector and bitmaps backends in the same trait. I think a simpler trait with SVG (vector) semantics would be fineThe
Scenetype is almost usable for this. Except that it uses stringly-typeddefsrather than a typed representation of things like linear gradients (and I'm not sure if there is public way to render to aScene?)I would recommend building this on top of the kurbo, peniko, and possibly anyrender crates which already have a representation for most of SVG.