flatworld.utils.resize Class
Item Index
Methods
Methods
getWindowSize
(
-
context
Get browser windows size
Parameters:
-
context
HTMLElementDOMElement Canvas context
resizeRenderer
(
static
-
renderer
-
drawOnNextTick
Resizes the PIXI renderer to the current most wide and high element status. Basically canvas size === window size.
Parameters:
-
renderer
PIXI.WebGLRendererThe renderer for the map
-
drawOnNextTick
FunctionFunction that handles re-rendering canvas
setToFullSize
(
-
context
Sets canvas size to maximum width and height on the browser, not using fullscreen
Parameters:
-
context
HTMLElementDOMElement Canvas context