Is it possible to get the width/height of the renderer? - SOLVED

I’m wondering if there is a way to get the width/height of the renderer? It would be nice to have that value, and have it update whenever the window is resized. If there’s not already an op for it, would it be possible to just add some javascript on the window ‘resize’ event in an op?

EDIT: solved it - for anyone else wondering, width and height of the renderer can be found off the MainLoop.

yes, glad you found it!

those two ops might also be interesting for you:

maybe we will rename them to renderer, so it is easier to find :slight_smile: