How to get screen width & height of the browser?
by user 688959811634987037
How to get screen width & height of the browser?
by user 688959811634987037
just found it, this.context.domWidth & this.context.domHeight
by user 688959811634987037
Yes those two are the width and height of your 3d canvas element / 3d scene in the browser.
It is not necessarily the size of the window (that would be window.innerWidth if you ever need that Window: innerWidth property - Web APIs | MDN)