getWinSize
Retrieves the outerWidth and outerHeight of current window.
See Window at mdn to know about these values.
getWinSize()Returns#
- A
mapwith keys:width: Anumber.outerWidthof the window in pixels.height: Anumber.outerHeightof the window in pixels.
Example#
print(getWinSize())# prints, {width: 1680, height: 1050}