Right now we're passing the entire Model to all draw functions. Lazy Html relies on the model that is used for a draw function and will only redraw when that model is changed. The problem with the current setup is that it will redraw for every change, even if that change doesn't affect the layout at all.
An extreme example is changing the mouse position. This only affects the editor canvas and it is thus not performant at all to redraw every element, every tim the mouse position changes.
Right now we're passing the entire Model to all draw functions. Lazy Html relies on the model that is used for a draw function and will only redraw when that model is changed. The problem with the current setup is that it will redraw for every change, even if that change doesn't affect the layout at all.
An extreme example is changing the mouse position. This only affects the editor canvas and it is thus not performant at all to redraw every element, every tim the mouse position changes.