API Docs for: 0.1.1
Show:

flatworld.utils.resize Class

Methods

getWindowSize

(
  • context
)

Get browser windows size

Parameters:

resizeRenderer

(
  • renderer
  • drawOnNextTick
)
static

Resizes the PIXI renderer to the current most wide and high element status. Basically canvas size === window size.

Parameters:

  • renderer PIXI.WebGLRenderer

    The renderer for the map

  • drawOnNextTick Function

    Function that handles re-rendering canvas

setToFullSize

(
  • context
)

Sets canvas size to maximum width and height on the browser, not using fullscreen

Parameters:

toggleFullScreen

()