by codeflo · 5y ago · 0 comments
However, React introduces a lot of complexity to avoid unnecessary DOM updates, which makes me wonder about the viability of an immediate mode GUI in the browser using canvas.
The value of essentially creating and mutating a tree structure like the DOM is that things like screen readers and UI automation tools can read it. With canvas they just see a big bitmap.
- https://github.com/Erkaman/pnp-gui
- https://github.com/jnmaloney/WebGui
I guess accessibility is what takes the biggest hit with these implementations.
https://floooh.github.io/sokol-html5/imgui-highdpi-sapp.html
There are also demos for other immediate-mode UI systems on the parent page (Nuklear and microui):
https://floooh.github.io/sokol-html5/
As I wrote in another thread, Immediate Mode UI doesn't imply how the UI rendering is implemented, only how the API works.