I'd like to pick your brains on possible libraries to use with a new Rust/WASM project. We need 2D rendering capabilities like rectangles, lines, and text, with the ability to intercept mouse events (click, hover).
If you want to play with a live example, you can see one here. Click on the triangles to expand the timeline so you can see the individual tasks.
We have a Rust backend for this now which has been highly successful, and gave us about 20x speedup over the previous Python script (running in PyPy, not CPython, which was even slower). Now we want to work on the frontend component. The goal is first, to fix the constant factors by switching to Rust/WASM (at least for everything that is compute or memory intensive) and then second, to move to a more dynamic / adaptive model so that we don't pay loading cost linear in the total size of the profile (i.e., a profile of any size should be able to load almost instantly, and then you pay only for what you want to view, like Google Maps). (This second point is a lot more speculative.)
Any ideas? I know WASM has access to WebGL, but it seems like a lot of work to do WebGL from scratch just for rendering some boxes and lines (and text). If there were something preexisting that was high quality, with the right feature set, and not too heavy, that seems like it would be a big win for us.
Thanks in advance!