pex-gl/pex-gui

Watch for value changes and auto redraw

vorg opened this issue · 1 comments

vorg commented

When we modify the value from outside of GUI we should redraw (only if gui is visible)

Using a Proxy for each param would be the solution: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy

But that should probably take part of a bigger conversation in simplifying the API (Proxies could help reduce the boilerplate).