diff --git a/dist/melonjs.mjs/_virtual/_commonjsHelpers.js b/dist/melonjs.mjs/_virtual/_commonjsHelpers.js index 8cba117dc..cad50ba09 100644 --- a/dist/melonjs.mjs/_virtual/_commonjsHelpers.js +++ b/dist/melonjs.mjs/_virtual/_commonjsHelpers.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/earcut.js b/dist/melonjs.mjs/_virtual/earcut.js index 5d81eb829..2d491a36a 100644 --- a/dist/melonjs.mjs/_virtual/earcut.js +++ b/dist/melonjs.mjs/_virtual/earcut.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/howler.js b/dist/melonjs.mjs/_virtual/howler.js index cf807b42d..999899f6e 100644 --- a/dist/melonjs.mjs/_virtual/howler.js +++ b/dist/melonjs.mjs/_virtual/howler.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/index.js b/dist/melonjs.mjs/_virtual/index.js index ac5cc7a93..a43de2c73 100644 --- a/dist/melonjs.mjs/_virtual/index.js +++ b/dist/melonjs.mjs/_virtual/index.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/re.js b/dist/melonjs.mjs/_virtual/re.js index 86379aa29..c7c633a9d 100644 --- a/dist/melonjs.mjs/_virtual/re.js +++ b/dist/melonjs.mjs/_virtual/re.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/application.js b/dist/melonjs.mjs/application/application.js index 32f4cdc2c..af749c8df 100644 --- a/dist/melonjs.mjs/application/application.js +++ b/dist/melonjs.mjs/application/application.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -14,7 +14,7 @@ import timer from '../system/timer.js'; import state from '../state/state.js'; import World from '../physics/world.js'; import { onresize } from './resize.js'; -import { defaultSettings } from './settings.js'; +import { ApplicationSettings } from './settings.js'; import { consoleHeader } from './header.js'; import { WEBGL, CANVAS, AUTO } from '../const.js'; @@ -27,7 +27,7 @@ class Application { /** * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer * @throws Will throw an exception if it fails to instantiate a renderer */ constructor(width, height, options) { @@ -83,7 +83,7 @@ class Application { /** * the given settings used when creating this application - * @type {Application.settings} + * @type {ApplicationSettings} */ this.settings = undefined; @@ -144,11 +144,11 @@ class Application { * init the game instance (create a physic world, update starting time, etc..) * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer */ init(width, height, options) { - this.settings = Object.assign(defaultSettings, options || {}); + this.settings = Object.assign(ApplicationSettings, options || {}); // sanitize potential given parameters this.settings.width = width; diff --git a/dist/melonjs.mjs/application/header.js b/dist/melonjs.mjs/application/header.js index a1a0b1996..ddb3abea1 100644 --- a/dist/melonjs.mjs/application/header.js +++ b/dist/melonjs.mjs/application/header.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/resize.js b/dist/melonjs.mjs/application/resize.js index cec3a06f0..b674f4772 100644 --- a/dist/melonjs.mjs/application/resize.js +++ b/dist/melonjs.mjs/application/resize.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/settings.js b/dist/melonjs.mjs/application/settings.js index 999c3bc41..9a968ac2f 100644 --- a/dist/melonjs.mjs/application/settings.js +++ b/dist/melonjs.mjs/application/settings.js @@ -1,36 +1,13 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license * @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd) */ -// default settings -const defaultSettings = { - parent : undefined, - renderer : 2, // AUTO - autoScale : false, - scale : 1.0, - scaleMethod : "manual", - scaleTarget : undefined, - transparent : false, - premultipliedAlpha: true, - blendMode : "normal", - physic : "builtin", - antiAlias : false, - failIfMajorPerformanceCaveat : true, - subPixel : false, - preferWebGL1 : false, - powerPreference : "default", - verbose : false, - consoleHeader : true, - legacy : false, - canvas : undefined -}; - /** * Application & Renderer Settings definition. - * @typedef {object} Settings + * @typedef {Object} ApplicationSettings * @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file * @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters) * @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class @@ -57,12 +34,32 @@ const defaultSettings = { * @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen). * @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation * @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console - * @param {number} [options.zoomX=width] - The actual width of the canvas with scaling applied - * @param {number} [options.zoomY=height] - The actual height of the canvas with scaling applied - * @param {Compositor} [options.compositor] - a custom compositor class (WebGL only) - * @param {string} [option.physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic) - * @see Application - * @memberof Application + * @property {number} [zoomX=width] - The actual width of the canvas with scaling applied + * @property {number} [zoomY=height] - The actual height of the canvas with scaling applied + * @property {Compositor} [compositor] - a custom compositor class (WebGL only) + * @property {string} [physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic) */ +const ApplicationSettings = { + parent : undefined, + canvas : undefined, + renderer : 2, // AUTO + autoScale : false, + scale : 1.0, + scaleMethod : "manual", + scaleTarget : undefined, + preferWebGL1 : false, + depthTest: "sorting", + powerPreference : "default", + transparent : false, + antiAlias : false, + consoleHeader : true, + premultipliedAlpha: true, + blendMode : "normal", + physic : "builtin", + failIfMajorPerformanceCaveat : true, + subPixel : false, + verbose : false, + legacy : false +}; -export { defaultSettings }; +export { ApplicationSettings }; diff --git a/dist/melonjs.mjs/audio/audio.js b/dist/melonjs.mjs/audio/audio.js index b02352da2..d5a2b37e9 100644 --- a/dist/melonjs.mjs/audio/audio.js +++ b/dist/melonjs.mjs/audio/audio.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/camera/camera2d.js b/dist/melonjs.mjs/camera/camera2d.js index 96ca8fbf0..2c484aed6 100644 --- a/dist/melonjs.mjs/camera/camera2d.js +++ b/dist/melonjs.mjs/camera/camera2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/const.js b/dist/melonjs.mjs/const.js index aefc6fb78..9f8994f39 100644 --- a/dist/melonjs.mjs/const.js +++ b/dist/melonjs.mjs/const.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/ellipse.js b/dist/melonjs.mjs/geometries/ellipse.js index 0d1ce3a07..e4aa83aca 100644 --- a/dist/melonjs.mjs/geometries/ellipse.js +++ b/dist/melonjs.mjs/geometries/ellipse.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/line.js b/dist/melonjs.mjs/geometries/line.js index ff856abee..7d5a3b9af 100644 --- a/dist/melonjs.mjs/geometries/line.js +++ b/dist/melonjs.mjs/geometries/line.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/path2d.js b/dist/melonjs.mjs/geometries/path2d.js index f84e10844..808a36229 100644 --- a/dist/melonjs.mjs/geometries/path2d.js +++ b/dist/melonjs.mjs/geometries/path2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/point.js b/dist/melonjs.mjs/geometries/point.js index d97721254..d50ad7b32 100644 --- a/dist/melonjs.mjs/geometries/point.js +++ b/dist/melonjs.mjs/geometries/point.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/poly.js b/dist/melonjs.mjs/geometries/poly.js index 3beedf0fa..4d98bfebd 100644 --- a/dist/melonjs.mjs/geometries/poly.js +++ b/dist/melonjs.mjs/geometries/poly.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/rectangle.js b/dist/melonjs.mjs/geometries/rectangle.js index 16712296c..be3575e81 100644 --- a/dist/melonjs.mjs/geometries/rectangle.js +++ b/dist/melonjs.mjs/geometries/rectangle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/roundrect.js b/dist/melonjs.mjs/geometries/roundrect.js index 3f4c7b493..a2d75a101 100644 --- a/dist/melonjs.mjs/geometries/roundrect.js +++ b/dist/melonjs.mjs/geometries/roundrect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/toarccanvas.js b/dist/melonjs.mjs/geometries/toarccanvas.js index c850dd876..f5ae71e46 100644 --- a/dist/melonjs.mjs/geometries/toarccanvas.js +++ b/dist/melonjs.mjs/geometries/toarccanvas.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -60,7 +60,7 @@ function endpointToCenterParameterization(x1, y1, x2, y2, largeArcFlag, sweepFla const [rx, ry] = correctRadii(srx, sry, x1p, y1p); - const sign = -1; + const sign = largeArcFlag !== sweepFlag ? 1 : -1; const n = pow(rx) * pow(ry) - pow(rx) * pow(y1p) - pow(ry) * pow(x1p); const d = pow(rx) * pow(y1p) + pow(ry) * pow(x1p); @@ -80,9 +80,11 @@ function endpointToCenterParameterization(x1, y1, x2, y2, largeArcFlag, sweepFla const deltaAngle0 = vec2Angle(a, b) % (2 * Math.PI); const deltaAngle = - deltaAngle0 > 0 + !sweepFlag && deltaAngle0 > 0 ? deltaAngle0 - 2 * Math.PI - : deltaAngle0; + : sweepFlag && deltaAngle0 < 0 + ? deltaAngle0 + 2 * Math.PI + : deltaAngle0; const endAngle = startAngle + deltaAngle; diff --git a/dist/melonjs.mjs/index.js b/dist/melonjs.mjs/index.js index d5107287e..dc151fa75 100644 --- a/dist/melonjs.mjs/index.js +++ b/dist/melonjs.mjs/index.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -112,7 +112,7 @@ import { initKeyboardEvent } from './input/keyboard.js'; * @name version * @type {string} */ -const version = "17.2.0"; +const version = "17.3.0"; /** * a flag indicating that melonJS is fully initialized diff --git a/dist/melonjs.mjs/input/gamepad.js b/dist/melonjs.mjs/input/gamepad.js index 0e17f008e..01a6ceefc 100644 --- a/dist/melonjs.mjs/input/gamepad.js +++ b/dist/melonjs.mjs/input/gamepad.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/input.js b/dist/melonjs.mjs/input/input.js index 83096ad52..2310c15a3 100644 --- a/dist/melonjs.mjs/input/input.js +++ b/dist/melonjs.mjs/input/input.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/keyboard.js b/dist/melonjs.mjs/input/keyboard.js index dbd43a3a0..df3197b2f 100644 --- a/dist/melonjs.mjs/input/keyboard.js +++ b/dist/melonjs.mjs/input/keyboard.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/pointer.js b/dist/melonjs.mjs/input/pointer.js index d57f7b700..a05f79ae0 100644 --- a/dist/melonjs.mjs/input/pointer.js +++ b/dist/melonjs.mjs/input/pointer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/pointerevent.js b/dist/melonjs.mjs/input/pointerevent.js index 9a1679238..950a5bc5b 100644 --- a/dist/melonjs.mjs/input/pointerevent.js +++ b/dist/melonjs.mjs/input/pointerevent.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/lang/console.js b/dist/melonjs.mjs/lang/console.js index a792b6df2..780d3dac8 100644 --- a/dist/melonjs.mjs/lang/console.js +++ b/dist/melonjs.mjs/lang/console.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/lang/deprecated.js b/dist/melonjs.mjs/lang/deprecated.js index b0c8dd336..912ba6b5a 100644 --- a/dist/melonjs.mjs/lang/deprecated.js +++ b/dist/melonjs.mjs/lang/deprecated.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -12,6 +12,8 @@ import { DropTarget } from '../renderable/dragndrop.js'; import UISpriteElement from '../renderable/ui/uispriteelement.js'; import { warning } from './console.js'; import CanvasRenderTarget from '../video/rendertarget/canvasrendertarget.js'; +import CanvasRenderer from '../video/canvas/canvas_renderer.js'; +import WebGLRenderer from '../video/webgl/webgl_renderer.js'; /* * placeholder for all deprecated classes and corresponding alias for backward compatibility @@ -139,7 +141,6 @@ Renderer.prototype.getWidth = function() { * return the height of the system Canvas * @public * @name getHeight - * @class * @memberof Renderer# * @deprecated since 15.12.0 * @see height @@ -170,4 +171,30 @@ class CanvasTexture extends CanvasRenderTarget { } } +/** + * return the height of the system Canvas + * @public + * @name setLineWidth + * @memberof CanvasRenderer# + * @deprecated since 17.3.0 + * @see lineWidth + */ +CanvasRenderer.prototype.setLineWidth = function(width) { + warning("setLineWidth", "lineWidth", "17.3.0"); + this.lineWidth = width; +}; + +/** + * return the height of the system Canvas + * @public + * @name setLineWidth + * @memberof WebGLRenderer# + * @deprecated since 17.3.0 + * @see lineWidth + */ +WebGLRenderer.prototype.setLineWidth = function(width) { + warning("setLineWidth", "lineWidth", "17.3.0"); + this.lineWidth = width; +}; + export { CanvasTexture, DraggableEntity, DroptargetEntity, GUI_Object }; diff --git a/dist/melonjs.mjs/level/level.js b/dist/melonjs.mjs/level/level.js index ccd9adcbd..058cc9cf9 100644 --- a/dist/melonjs.mjs/level/level.js +++ b/dist/melonjs.mjs/level/level.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXGroup.js b/dist/melonjs.mjs/level/tiled/TMXGroup.js index c5835b35f..6e053b3fd 100644 --- a/dist/melonjs.mjs/level/tiled/TMXGroup.js +++ b/dist/melonjs.mjs/level/tiled/TMXGroup.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXLayer.js b/dist/melonjs.mjs/level/tiled/TMXLayer.js index 738810fdb..2aa104df4 100644 --- a/dist/melonjs.mjs/level/tiled/TMXLayer.js +++ b/dist/melonjs.mjs/level/tiled/TMXLayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXObject.js b/dist/melonjs.mjs/level/tiled/TMXObject.js index c550db9f5..13633a9d6 100644 --- a/dist/melonjs.mjs/level/tiled/TMXObject.js +++ b/dist/melonjs.mjs/level/tiled/TMXObject.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTile.js b/dist/melonjs.mjs/level/tiled/TMXTile.js index ca50a0b42..ebf8581bf 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTile.js +++ b/dist/melonjs.mjs/level/tiled/TMXTile.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTileMap.js b/dist/melonjs.mjs/level/tiled/TMXTileMap.js index ecbb3ff1a..d763d0e20 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTileMap.js +++ b/dist/melonjs.mjs/level/tiled/TMXTileMap.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTileset.js b/dist/melonjs.mjs/level/tiled/TMXTileset.js index 5bdc7c71f..349bb0471 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTileset.js +++ b/dist/melonjs.mjs/level/tiled/TMXTileset.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js b/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js index 84f8b03e3..5eda413a6 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js +++ b/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXUtils.js b/dist/melonjs.mjs/level/tiled/TMXUtils.js index ecedcfe18..7b5fb1bec 100644 --- a/dist/melonjs.mjs/level/tiled/TMXUtils.js +++ b/dist/melonjs.mjs/level/tiled/TMXUtils.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/constants.js b/dist/melonjs.mjs/level/tiled/constants.js index befba40eb..ad1a0c265 100644 --- a/dist/melonjs.mjs/level/tiled/constants.js +++ b/dist/melonjs.mjs/level/tiled/constants.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js index b633a35cd..c10b63a0c 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js index 076b1aa3c..9d4798276 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js index 63bd2cbbb..1a83ad5b0 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js index cc91cfee0..f7602217f 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js index f4713e8e5..d450f83e0 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/autodetect.js b/dist/melonjs.mjs/level/tiled/renderer/autodetect.js index 09b810556..3c493d16e 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/autodetect.js +++ b/dist/melonjs.mjs/level/tiled/renderer/autodetect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/cache.js b/dist/melonjs.mjs/loader/cache.js index 7b3336c69..b29345803 100644 --- a/dist/melonjs.mjs/loader/cache.js +++ b/dist/melonjs.mjs/loader/cache.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/loader.js b/dist/melonjs.mjs/loader/loader.js index 67246ed86..28d79f468 100644 --- a/dist/melonjs.mjs/loader/loader.js +++ b/dist/melonjs.mjs/loader/loader.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/loadingscreen.js b/dist/melonjs.mjs/loader/loadingscreen.js index 4c8b3105e..f9352cc3f 100644 --- a/dist/melonjs.mjs/loader/loadingscreen.js +++ b/dist/melonjs.mjs/loader/loadingscreen.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/melonjs_logo.png.js b/dist/melonjs.mjs/loader/melonjs_logo.png.js index 4143c7cca..66bb87e10 100644 --- a/dist/melonjs.mjs/loader/melonjs_logo.png.js +++ b/dist/melonjs.mjs/loader/melonjs_logo.png.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/binary.js b/dist/melonjs.mjs/loader/parsers/binary.js index 226c0befb..577ee108f 100644 --- a/dist/melonjs.mjs/loader/parsers/binary.js +++ b/dist/melonjs.mjs/loader/parsers/binary.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/compressed_image.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/compressed_image.js index 60baf6868..82ffb8ee2 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/compressed_image.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/compressed_image.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseDDS.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseDDS.js index 014601e10..552db7b47 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseDDS.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseDDS.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX.js index cbcaa8ccc..2459e2185 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX2.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX2.js index 975cb27ff..f04be3ae1 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX2.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/parseKTX2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePKM.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePKM.js index f96d01137..d04db317a 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePKM.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePKM.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePVR.js b/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePVR.js index fa3db7aed..754f1ced5 100644 --- a/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePVR.js +++ b/dist/melonjs.mjs/loader/parsers/compressed_textures/parsePVR.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/fetchdata.js b/dist/melonjs.mjs/loader/parsers/fetchdata.js index a627f5814..e975cb93f 100644 --- a/dist/melonjs.mjs/loader/parsers/fetchdata.js +++ b/dist/melonjs.mjs/loader/parsers/fetchdata.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/fontface.js b/dist/melonjs.mjs/loader/parsers/fontface.js index edf32b732..5c0ff2d64 100644 --- a/dist/melonjs.mjs/loader/parsers/fontface.js +++ b/dist/melonjs.mjs/loader/parsers/fontface.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/image.js b/dist/melonjs.mjs/loader/parsers/image.js index ce1478cab..fe6b37699 100644 --- a/dist/melonjs.mjs/loader/parsers/image.js +++ b/dist/melonjs.mjs/loader/parsers/image.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/json.js b/dist/melonjs.mjs/loader/parsers/json.js index 1d6fd35c5..9d569652d 100644 --- a/dist/melonjs.mjs/loader/parsers/json.js +++ b/dist/melonjs.mjs/loader/parsers/json.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/script.js b/dist/melonjs.mjs/loader/parsers/script.js index b0b078e03..8a5a0541a 100644 --- a/dist/melonjs.mjs/loader/parsers/script.js +++ b/dist/melonjs.mjs/loader/parsers/script.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/tmx.js b/dist/melonjs.mjs/loader/parsers/tmx.js index 7af4c957c..bef3e1996 100644 --- a/dist/melonjs.mjs/loader/parsers/tmx.js +++ b/dist/melonjs.mjs/loader/parsers/tmx.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -72,15 +72,8 @@ function preloadTMX(tmxData, onload, onerror, settings) { const xmlDoc = parser.parseFromString(response, "text/xml"); const data = parse(xmlDoc); - switch (getExtension(tmxData.src)) { - case "tmx": - result = data.map; - break; + result = data.map || data.tilesets[0] || data; - case "tsx": - result = data.tilesets[0]; - break; - } break; } case "json": diff --git a/dist/melonjs.mjs/loader/parsers/video.js b/dist/melonjs.mjs/loader/parsers/video.js index ed535c09f..560e24bb0 100644 --- a/dist/melonjs.mjs/loader/parsers/video.js +++ b/dist/melonjs.mjs/loader/parsers/video.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/color.js b/dist/melonjs.mjs/math/color.js index 7785869af..08b7a4d9f 100644 --- a/dist/melonjs.mjs/math/color.js +++ b/dist/melonjs.mjs/math/color.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/math.js b/dist/melonjs.mjs/math/math.js index ccc92e021..30ac27f6f 100644 --- a/dist/melonjs.mjs/math/math.js +++ b/dist/melonjs.mjs/math/math.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/matrix2.js b/dist/melonjs.mjs/math/matrix2.js index 73d69a494..6196c6188 100644 --- a/dist/melonjs.mjs/math/matrix2.js +++ b/dist/melonjs.mjs/math/matrix2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/matrix3.js b/dist/melonjs.mjs/math/matrix3.js index 2fb91b6e1..91c08c509 100644 --- a/dist/melonjs.mjs/math/matrix3.js +++ b/dist/melonjs.mjs/math/matrix3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/observable_vector2.js b/dist/melonjs.mjs/math/observable_vector2.js index a0598267d..b6a8d5fef 100644 --- a/dist/melonjs.mjs/math/observable_vector2.js +++ b/dist/melonjs.mjs/math/observable_vector2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/observable_vector3.js b/dist/melonjs.mjs/math/observable_vector3.js index 0d62814d3..2139caadf 100644 --- a/dist/melonjs.mjs/math/observable_vector3.js +++ b/dist/melonjs.mjs/math/observable_vector3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/vector2.js b/dist/melonjs.mjs/math/vector2.js index f2b073b2e..04f73689d 100644 --- a/dist/melonjs.mjs/math/vector2.js +++ b/dist/melonjs.mjs/math/vector2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/vector3.js b/dist/melonjs.mjs/math/vector3.js index 9414d39c4..b431c3a60 100644 --- a/dist/melonjs.mjs/math/vector3.js +++ b/dist/melonjs.mjs/math/vector3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/emitter.js b/dist/melonjs.mjs/particles/emitter.js index 2fd338fb5..f80580608 100644 --- a/dist/melonjs.mjs/particles/emitter.js +++ b/dist/melonjs.mjs/particles/emitter.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/particle.js b/dist/melonjs.mjs/particles/particle.js index 62df772cf..578e7e4ad 100644 --- a/dist/melonjs.mjs/particles/particle.js +++ b/dist/melonjs.mjs/particles/particle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/settings.js b/dist/melonjs.mjs/particles/settings.js index c80f67e35..d1719eccb 100644 --- a/dist/melonjs.mjs/particles/settings.js +++ b/dist/melonjs.mjs/particles/settings.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/body.js b/dist/melonjs.mjs/physics/body.js index 810c77c65..a86c89a1e 100644 --- a/dist/melonjs.mjs/physics/body.js +++ b/dist/melonjs.mjs/physics/body.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/bounds.js b/dist/melonjs.mjs/physics/bounds.js index fd89e94e6..5217d719b 100644 --- a/dist/melonjs.mjs/physics/bounds.js +++ b/dist/melonjs.mjs/physics/bounds.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/collision.js b/dist/melonjs.mjs/physics/collision.js index b74500c82..cfcf5078a 100644 --- a/dist/melonjs.mjs/physics/collision.js +++ b/dist/melonjs.mjs/physics/collision.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/detector.js b/dist/melonjs.mjs/physics/detector.js index 0ffaa7e64..fce350507 100644 --- a/dist/melonjs.mjs/physics/detector.js +++ b/dist/melonjs.mjs/physics/detector.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/quadtree.js b/dist/melonjs.mjs/physics/quadtree.js index dd703049c..4b5daae7c 100644 --- a/dist/melonjs.mjs/physics/quadtree.js +++ b/dist/melonjs.mjs/physics/quadtree.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/response.js b/dist/melonjs.mjs/physics/response.js index d0f25a77d..b895c18d0 100644 --- a/dist/melonjs.mjs/physics/response.js +++ b/dist/melonjs.mjs/physics/response.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/sat.js b/dist/melonjs.mjs/physics/sat.js index 014669659..506872ec6 100644 --- a/dist/melonjs.mjs/physics/sat.js +++ b/dist/melonjs.mjs/physics/sat.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/world.js b/dist/melonjs.mjs/physics/world.js index 99ed80b56..9b8d6292e 100644 --- a/dist/melonjs.mjs/physics/world.js +++ b/dist/melonjs.mjs/physics/world.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -44,7 +44,7 @@ class World extends Container { /** * the physic engine used by melonJS - * @see Application.Settings.physic + * @see ApplicationSettings.physic * @type {string} * @default "builtin" * @example diff --git a/dist/melonjs.mjs/plugin/plugin.js b/dist/melonjs.mjs/plugin/plugin.js index ad1bf9052..b80b3f7ad 100644 --- a/dist/melonjs.mjs/plugin/plugin.js +++ b/dist/melonjs.mjs/plugin/plugin.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -37,9 +37,9 @@ class BasePlugin { * define the minimum required version of melonJS
* this can be overridden by the plugin * @type {string} - * @default "17.2.0" + * @default "17.3.0" */ - this.version = "17.2.0"; + this.version = "17.3.0"; /** * a reference to the app/game that registered this plugin diff --git a/dist/melonjs.mjs/renderable/collectable.js b/dist/melonjs.mjs/renderable/collectable.js index 9789687df..9988a46f6 100644 --- a/dist/melonjs.mjs/renderable/collectable.js +++ b/dist/melonjs.mjs/renderable/collectable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/colorlayer.js b/dist/melonjs.mjs/renderable/colorlayer.js index fb43f2af9..7c4776dc9 100644 --- a/dist/melonjs.mjs/renderable/colorlayer.js +++ b/dist/melonjs.mjs/renderable/colorlayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/container.js b/dist/melonjs.mjs/renderable/container.js index d78e05338..7aee966c7 100644 --- a/dist/melonjs.mjs/renderable/container.js +++ b/dist/melonjs.mjs/renderable/container.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/draggable.js b/dist/melonjs.mjs/renderable/draggable.js index 93216a78a..a8ff18f70 100644 --- a/dist/melonjs.mjs/renderable/draggable.js +++ b/dist/melonjs.mjs/renderable/draggable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/dragndrop.js b/dist/melonjs.mjs/renderable/dragndrop.js index dc327df28..9108dcead 100644 --- a/dist/melonjs.mjs/renderable/dragndrop.js +++ b/dist/melonjs.mjs/renderable/dragndrop.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/entity/entity.js b/dist/melonjs.mjs/renderable/entity/entity.js index 00989ce03..9b7ff3dab 100644 --- a/dist/melonjs.mjs/renderable/entity/entity.js +++ b/dist/melonjs.mjs/renderable/entity/entity.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/imagelayer.js b/dist/melonjs.mjs/renderable/imagelayer.js index 318ce58b4..1eb8e0a29 100644 --- a/dist/melonjs.mjs/renderable/imagelayer.js +++ b/dist/melonjs.mjs/renderable/imagelayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/light2d.js b/dist/melonjs.mjs/renderable/light2d.js index 8af247102..101580541 100644 --- a/dist/melonjs.mjs/renderable/light2d.js +++ b/dist/melonjs.mjs/renderable/light2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/nineslicesprite.js b/dist/melonjs.mjs/renderable/nineslicesprite.js index a882fc431..c97d3c964 100644 --- a/dist/melonjs.mjs/renderable/nineslicesprite.js +++ b/dist/melonjs.mjs/renderable/nineslicesprite.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/renderable.js b/dist/melonjs.mjs/renderable/renderable.js index e1aaa4514..41a692f1c 100644 --- a/dist/melonjs.mjs/renderable/renderable.js +++ b/dist/melonjs.mjs/renderable/renderable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/sprite.js b/dist/melonjs.mjs/renderable/sprite.js index 024780848..43a652cb4 100644 --- a/dist/melonjs.mjs/renderable/sprite.js +++ b/dist/melonjs.mjs/renderable/sprite.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/bitmaptext.js b/dist/melonjs.mjs/renderable/text/bitmaptext.js index 46b6c836c..608a33de2 100644 --- a/dist/melonjs.mjs/renderable/text/bitmaptext.js +++ b/dist/melonjs.mjs/renderable/text/bitmaptext.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/bitmaptextdata.js b/dist/melonjs.mjs/renderable/text/bitmaptextdata.js index 83b7381d2..6c80d6873 100644 --- a/dist/melonjs.mjs/renderable/text/bitmaptextdata.js +++ b/dist/melonjs.mjs/renderable/text/bitmaptextdata.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/glyph.js b/dist/melonjs.mjs/renderable/text/glyph.js index 2ad292a3e..63e55cd94 100644 --- a/dist/melonjs.mjs/renderable/text/glyph.js +++ b/dist/melonjs.mjs/renderable/text/glyph.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/text.js b/dist/melonjs.mjs/renderable/text/text.js index 265819e26..09142ab6e 100644 --- a/dist/melonjs.mjs/renderable/text/text.js +++ b/dist/melonjs.mjs/renderable/text/text.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/textmetrics.js b/dist/melonjs.mjs/renderable/text/textmetrics.js index 9a207f3c9..2529c57b8 100644 --- a/dist/melonjs.mjs/renderable/text/textmetrics.js +++ b/dist/melonjs.mjs/renderable/text/textmetrics.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/textstyle.js b/dist/melonjs.mjs/renderable/text/textstyle.js index 6884ceb3a..cb1564a71 100644 --- a/dist/melonjs.mjs/renderable/text/textstyle.js +++ b/dist/melonjs.mjs/renderable/text/textstyle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/trigger.js b/dist/melonjs.mjs/renderable/trigger.js index 7609f3d97..1cf44ee61 100644 --- a/dist/melonjs.mjs/renderable/trigger.js +++ b/dist/melonjs.mjs/renderable/trigger.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uibaseelement.js b/dist/melonjs.mjs/renderable/ui/uibaseelement.js index b42ebbb6b..d2e80c152 100644 --- a/dist/melonjs.mjs/renderable/ui/uibaseelement.js +++ b/dist/melonjs.mjs/renderable/ui/uibaseelement.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uispriteelement.js b/dist/melonjs.mjs/renderable/ui/uispriteelement.js index b5d355fe8..5c03d71f9 100644 --- a/dist/melonjs.mjs/renderable/ui/uispriteelement.js +++ b/dist/melonjs.mjs/renderable/ui/uispriteelement.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uitextbutton.js b/dist/melonjs.mjs/renderable/ui/uitextbutton.js index 3c03b2c12..f503076c1 100644 --- a/dist/melonjs.mjs/renderable/ui/uitextbutton.js +++ b/dist/melonjs.mjs/renderable/ui/uitextbutton.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/state/stage.js b/dist/melonjs.mjs/state/stage.js index 393cabda6..c6a826d22 100644 --- a/dist/melonjs.mjs/state/stage.js +++ b/dist/melonjs.mjs/state/stage.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/state/state.js b/dist/melonjs.mjs/state/state.js index df9454538..3d6b2b5ab 100644 --- a/dist/melonjs.mjs/state/state.js +++ b/dist/melonjs.mjs/state/state.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/device.js b/dist/melonjs.mjs/system/device.js index 51ce4164a..10f71dc8d 100644 --- a/dist/melonjs.mjs/system/device.js +++ b/dist/melonjs.mjs/system/device.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/dom.js b/dist/melonjs.mjs/system/dom.js index 733fd554f..66e042f54 100644 --- a/dist/melonjs.mjs/system/dom.js +++ b/dist/melonjs.mjs/system/dom.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/event.js b/dist/melonjs.mjs/system/event.js index e2894a086..591e13eb1 100644 --- a/dist/melonjs.mjs/system/event.js +++ b/dist/melonjs.mjs/system/event.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/platform.js b/dist/melonjs.mjs/system/platform.js index 21025e1fb..faa0c2665 100644 --- a/dist/melonjs.mjs/system/platform.js +++ b/dist/melonjs.mjs/system/platform.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/pooling.js b/dist/melonjs.mjs/system/pooling.js index 599259d79..1e40f1276 100644 --- a/dist/melonjs.mjs/system/pooling.js +++ b/dist/melonjs.mjs/system/pooling.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/save.js b/dist/melonjs.mjs/system/save.js index 0476075bb..a28689bc0 100644 --- a/dist/melonjs.mjs/system/save.js +++ b/dist/melonjs.mjs/system/save.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/timer.js b/dist/melonjs.mjs/system/timer.js index 7ccad29b3..67f02f81a 100644 --- a/dist/melonjs.mjs/system/timer.js +++ b/dist/melonjs.mjs/system/timer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/easing.js b/dist/melonjs.mjs/tweens/easing.js index a2b16ee64..100513b9c 100644 --- a/dist/melonjs.mjs/tweens/easing.js +++ b/dist/melonjs.mjs/tweens/easing.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/interpolation.js b/dist/melonjs.mjs/tweens/interpolation.js index 8232acbc5..0dd915973 100644 --- a/dist/melonjs.mjs/tweens/interpolation.js +++ b/dist/melonjs.mjs/tweens/interpolation.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/tween.js b/dist/melonjs.mjs/tweens/tween.js index d8c8a141d..0a524db35 100644 --- a/dist/melonjs.mjs/tweens/tween.js +++ b/dist/melonjs.mjs/tweens/tween.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/agent.js b/dist/melonjs.mjs/utils/agent.js index a3c5d9777..1481a3cdb 100644 --- a/dist/melonjs.mjs/utils/agent.js +++ b/dist/melonjs.mjs/utils/agent.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/array.js b/dist/melonjs.mjs/utils/array.js index b8036fbe6..5d0cd8771 100644 --- a/dist/melonjs.mjs/utils/array.js +++ b/dist/melonjs.mjs/utils/array.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/file.js b/dist/melonjs.mjs/utils/file.js index 83e66605d..05e09b2af 100644 --- a/dist/melonjs.mjs/utils/file.js +++ b/dist/melonjs.mjs/utils/file.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/function.js b/dist/melonjs.mjs/utils/function.js index 2a4bdca82..49f2820da 100644 --- a/dist/melonjs.mjs/utils/function.js +++ b/dist/melonjs.mjs/utils/function.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/string.js b/dist/melonjs.mjs/utils/string.js index a0bb0cecd..6768b589c 100644 --- a/dist/melonjs.mjs/utils/string.js +++ b/dist/melonjs.mjs/utils/string.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/utils.js b/dist/melonjs.mjs/utils/utils.js index fb1cf906a..18db0a246 100644 --- a/dist/melonjs.mjs/utils/utils.js +++ b/dist/melonjs.mjs/utils/utils.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/canvas/canvas_renderer.js b/dist/melonjs.mjs/video/canvas/canvas_renderer.js index 787da452a..3d661ed04 100644 --- a/dist/melonjs.mjs/video/canvas/canvas_renderer.js +++ b/dist/melonjs.mjs/video/canvas/canvas_renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -17,7 +17,7 @@ import { emit, on, ONCONTEXT_LOST, ONCONTEXT_RESTORED, GAME_RESET } from '../../ */ class CanvasRenderer extends Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { // parent constructor @@ -677,11 +677,18 @@ class CanvasRenderer extends Renderer { } /** - * Set the line width on the context - * @param {number} width - Line width + * sets or returns the thickness of lines for shape drawing */ - setLineWidth(width) { - this.getContext().lineWidth = width; + get lineWidth() { + return this.getContext().lineWidth; + } + + /** + * @ignore + */ + set lineWidth(value) { + this.getContext().lineWidth = value; + return value; } /** diff --git a/dist/melonjs.mjs/video/renderer.js b/dist/melonjs.mjs/video/renderer.js index 23027f8a8..10e687e26 100644 --- a/dist/melonjs.mjs/video/renderer.js +++ b/dist/melonjs.mjs/video/renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -18,7 +18,7 @@ import CanvasRenderTarget from './rendertarget/canvasrendertarget.js'; */ class Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { diff --git a/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js b/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js index db6aec406..a08c9ca6f 100644 --- a/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js +++ b/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/atlas.js b/dist/melonjs.mjs/video/texture/atlas.js index fc9f97071..01fe94522 100644 --- a/dist/melonjs.mjs/video/texture/atlas.js +++ b/dist/melonjs.mjs/video/texture/atlas.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -112,6 +112,14 @@ class TextureAtlas { */ this.atlases = new Map(); + /** + * the default "active" atlas (used for multiAtlas) + * @type {Map} + * @ignore + */ + this.activeAtlas = undefined; + + // parse given atlas(es) paremeters if (typeof (atlases) !== "undefined") { // normalize to array to keep the following code generic @@ -178,10 +186,10 @@ class TextureAtlas { // initialize the atlas this.atlases.set("default", parseSpriteSheet(atlas, this)); this.sources.set("default", atlas.image); - } } } // end forEach + this.activeAtlas = this.atlases.keys().next().value; } // if format not recognized @@ -206,7 +214,7 @@ class TextureAtlas { if (typeof name === "string") { return this.atlases.get(name); } else { - return this.atlases.values().next().value; + return this.atlases.get(this.activeAtlas); } } @@ -227,7 +235,8 @@ class TextureAtlas { if ((typeof region === "object") && (typeof region.texture === "string")) { return this.sources.get(region.texture); } else { - return this.sources.values().next().value; + return this.sources.get(this.activeAtlas); + } } diff --git a/dist/melonjs.mjs/video/texture/cache.js b/dist/melonjs.mjs/video/texture/cache.js index a048ae20b..e50c72f5d 100644 --- a/dist/melonjs.mjs/video/texture/cache.js +++ b/dist/melonjs.mjs/video/texture/cache.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -67,26 +67,55 @@ class TextureCache { * @ignore */ freeTextureUnit(texture) { - let unit = this.units.get(texture); + let source = texture.sources.get(texture.activeAtlas); + let unit = this.units.get(source); // was a texture unit allocated ? if (typeof unit !== "undefined") { - this.usedUnits.delete(unit); - this.units.delete(texture); + this.usedUnits.delete(source); + this.units.delete(source); } } /** * @ignore */ + getUnit(texture) { + let source = texture.sources.get(texture.activeAtlas); + if (!this.units.has(source)) { + this.units.set(source, this.allocateTextureUnit()); + } + return this.units.get(source); + } + + /** + * @ignore + * cache the textureAltas for the given image + */ + set(image, textureAtlas) { + let width = image.width || image.videoWidth; + let height = image.height || image.videoHeight; + + // warn if a non POT texture is added to the cache when using WebGL1 + if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) { + let src = typeof image.src !== "undefined" ? image.src : image; + console.warn( + "[Texture] " + src + " is not a POT texture " + + "(" + width + "x" + height + ")" + ); + } + return this.cache.put(image, textureAtlas); + } + + /** + * @ignore + * return the textureAltas for the given image + */ get(image, atlas) { - let entry; + let entry = this.cache.get(image)[0]; - if (typeof atlas === "undefined") { - entry = this.cache.get(image)[0]; - } else { - // manage cases where a specific atlas is specified + if (typeof entry !== "undefined" && typeof atlas !== "undefined") { this.cache.forEach((value, key) => { - let _atlas = value.getAtlas()[0]; + let _atlas = value.getAtlas(); if (key === image && _atlas.width === atlas.framewidth && _atlas.height === atlas.frameheight) { entry = value; } @@ -94,13 +123,30 @@ class TextureCache { } if (typeof entry === "undefined") { + console.log("cache miss"); if (!atlas) { - atlas = createAtlas(image.width || image.videoWidth, image.videoHeight, image.src ? getBasename(image.src) : undefined); + atlas = createAtlas(image.width || image.videoWidth, image.height || image.videoHeight, image.src ? getBasename(image.src) : undefined); } entry = new TextureAtlas(atlas, image, false); this.set(image, entry); } + // "activate" the corresponding sources (in case of multi texture atlas) + if (typeof entry.sources !== "undefined" && entry.sources.size > 1) { + console.log(entry); + // manage cases where a specific atlas is specified + for (const [key, value] of entry.sources.entries()) { + // Check if the imageData matches the provided image + if (value === image) { + console.log("cache hit"); + // If a match is found, return the corresponding entry from cache.atlases + console.log(key); + //return entry.atlases.get(key); + entry.activeAtlas = key; + } + } + } + return entry; } @@ -135,33 +181,6 @@ class TextureCache { return image_cache.get(color); } - /** - * @ignore - */ - set(image, texture) { - let width = image.width || image.videoWidth; - let height = image.height || image.videoHeight; - - // warn if a non POT texture is added to the cache when using WebGL1 - if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) { - let src = typeof image.src !== "undefined" ? image.src : image; - console.warn( - "[Texture] " + src + " is not a POT texture " + - "(" + width + "x" + height + ")" - ); - } - return this.cache.put(image, texture); - } - - /** - * @ignore - */ - getUnit(texture) { - if (!this.units.has(texture)) { - this.units.set(texture, this.allocateTextureUnit()); - } - return this.units.get(texture); - } } export { TextureCache as default }; diff --git a/dist/melonjs.mjs/video/texture/parser/aseprite.js b/dist/melonjs.mjs/video/texture/parser/aseprite.js index 92aee37e2..9aa2b49b7 100644 --- a/dist/melonjs.mjs/video/texture/parser/aseprite.js +++ b/dist/melonjs.mjs/video/texture/parser/aseprite.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/parser/spritesheet.js b/dist/melonjs.mjs/video/texture/parser/spritesheet.js index 1d3c8bcca..79ce6aca5 100644 --- a/dist/melonjs.mjs/video/texture/parser/spritesheet.js +++ b/dist/melonjs.mjs/video/texture/parser/spritesheet.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/parser/texturepacker.js b/dist/melonjs.mjs/video/texture/parser/texturepacker.js index 275331de2..88484c1dd 100644 --- a/dist/melonjs.mjs/video/texture/parser/texturepacker.js +++ b/dist/melonjs.mjs/video/texture/parser/texturepacker.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/utils/autodetect.js b/dist/melonjs.mjs/video/utils/autodetect.js index db112ce23..0dc30cefa 100644 --- a/dist/melonjs.mjs/video/utils/autodetect.js +++ b/dist/melonjs.mjs/video/utils/autodetect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/video.js b/dist/melonjs.mjs/video/video.js index eb15b7b0c..c6d8f6e87 100644 --- a/dist/melonjs.mjs/video/video.js +++ b/dist/melonjs.mjs/video/video.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -9,6 +9,7 @@ import { emit, WINDOW_ONRESIZE, WINDOW_ONORIENTATION_CHANGE, WINDOW_ONSCROLL, VI import { game, initialized } from '../index.js'; import { offscreenCanvas, screenOrientation } from '../system/device.js'; import { throttle } from '../utils/function.js'; +import { ApplicationSettings } from '../application/settings.js'; export { AUTO, CANVAS, WEBGL } from '../const.js'; /** @@ -23,7 +24,7 @@ let renderer = null; * @memberof video * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer * @returns {boolean} false if initialization failed (canvas not supported) * @example * // init the video with a 640x480 canvas @@ -42,7 +43,7 @@ function init(width, height, options) { try { // initialize the default game Application with the given options - game.init(width, height, options); + game.init(width, height, Object.assign(ApplicationSettings, options || {})); } catch (e) { console.log(e.message); // me.video.init() historically returns false if failing at creating/using a HTML5 canvas diff --git a/dist/melonjs.mjs/video/webgl/buffer/vertex.js b/dist/melonjs.mjs/video/webgl/buffer/vertex.js index 6073df4e1..70b2dc27b 100644 --- a/dist/melonjs.mjs/video/webgl/buffer/vertex.js +++ b/dist/melonjs.mjs/video/webgl/buffer/vertex.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/compositor.js b/dist/melonjs.mjs/video/webgl/compositors/compositor.js index 711f3749f..515046557 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js index 3b10c8700..5694947ee 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js index 6f2cb5481..8e7233313 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/glshader.js b/dist/melonjs.mjs/video/webgl/glshader.js index 0f3d2b25b..445571ee0 100644 --- a/dist/melonjs.mjs/video/webgl/glshader.js +++ b/dist/melonjs.mjs/video/webgl/glshader.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js b/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js index 7575b5d94..153208e51 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js +++ b/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js b/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js index b27227f03..b8bac08eb 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js +++ b/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js b/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js index e33c8b259..66cde128e 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js +++ b/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js b/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js index d2edb745d..7d401a044 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js +++ b/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/attributes.js b/dist/melonjs.mjs/video/webgl/utils/attributes.js index 3f29c9342..d5426f40e 100644 --- a/dist/melonjs.mjs/video/webgl/utils/attributes.js +++ b/dist/melonjs.mjs/video/webgl/utils/attributes.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/precision.js b/dist/melonjs.mjs/video/webgl/utils/precision.js index 0b48b20b2..bd09331a1 100644 --- a/dist/melonjs.mjs/video/webgl/utils/precision.js +++ b/dist/melonjs.mjs/video/webgl/utils/precision.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/program.js b/dist/melonjs.mjs/video/webgl/utils/program.js index d5e81a9d5..619d6ed24 100644 --- a/dist/melonjs.mjs/video/webgl/utils/program.js +++ b/dist/melonjs.mjs/video/webgl/utils/program.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/string.js b/dist/melonjs.mjs/video/webgl/utils/string.js index 8f0d07d51..de81d79e9 100644 --- a/dist/melonjs.mjs/video/webgl/utils/string.js +++ b/dist/melonjs.mjs/video/webgl/utils/string.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/uniforms.js b/dist/melonjs.mjs/video/webgl/utils/uniforms.js index 90ac72fb5..2e46529ee 100644 --- a/dist/melonjs.mjs/video/webgl/utils/uniforms.js +++ b/dist/melonjs.mjs/video/webgl/utils/uniforms.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/webgl_renderer.js b/dist/melonjs.mjs/video/webgl/webgl_renderer.js index 9a53201ce..b1a771516 100644 --- a/dist/melonjs.mjs/video/webgl/webgl_renderer.js +++ b/dist/melonjs.mjs/video/webgl/webgl_renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -22,12 +22,12 @@ let supportedCompressedTextureFormats; /** * @classdesc - * a WebGL renderer object + * a WebGL renderer draw * @augments Renderer */ class WebGLRenderer extends Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { // parent contructor @@ -56,6 +56,14 @@ class WebGLRenderer extends Renderer { */ this.gl = this.renderTarget.context; + /** + * sets or returns the thickness of lines for shape drawing (limited to strokeLine) + * @type {number} + * @default 1 + * @see WebGLRenderer#strokeLine + */ + this.lineWidth = 1; + /** * the vertex buffer used by this WebGL Renderer * @type {WebGLBuffer} @@ -402,6 +410,7 @@ class WebGLRenderer extends Renderer { clear() { let gl = this.gl; gl.clearColor(0, 0, 0, this.settings.transparent ? 0.0 : 1.0); + this.lineWidth = 1; if (this.depthTest === "z-buffer") { gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT | gl.STENCIL_BUFFER_BIT); } else { @@ -791,14 +800,6 @@ class WebGLRenderer extends Renderer { this.currentColor.alpha *= alpha; } - /** - * Set the line width - * @param {number} width - Line width - */ - setLineWidth(width) { - this.getContext().lineWidth(width); - } - /** * Stroke an arc at the specified coordinates with given radius, start and end points * @param {number} x - arc center point x-axis @@ -872,10 +873,34 @@ class WebGLRenderer extends Renderer { */ strokeLine(startX, startY, endX, endY) { this.setCompositor("primitive"); - this.path2D.beginPath(); - this.path2D.moveTo(startX, startY); - this.path2D.lineTo(endX, endY); - this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points); + if (this.lineWidth === 1) { + this.path2D.beginPath(); + this.path2D.moveTo(startX, startY); + this.path2D.lineTo(endX, endY); + this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points); + } else if (this.lineWidth > 1) { + const halfWidth = this.lineWidth / 2; + const angle = Math.atan2(endY - startY, endX - startX); + const dx = Math.sin(angle) * halfWidth; + const dy = Math.cos(angle) * halfWidth; + const x1 = startX - dx; + const y1 = startY + dy; + const x2 = startX + dx; + const y2 = startY - dy; + const x3 = endX + dx; + const y3 = endY - dy; + const x4 = endX - dx; + const y4 = endY + dy; + + this.path2D.beginPath(); + this.path2D.moveTo(x1, y1); + this.path2D.lineTo(x2, y2); + this.path2D.lineTo(x3, y3); + this.path2D.lineTo(x4, y4); + this.path2D.closePath(); + // draw all triangles + this.currentCompositor.drawVertices(this.gl.TRIANGLES, this.path2D.triangulatePath()); + } } diff --git a/dist/melonjs.module.js b/dist/melonjs.module.js index 3ef066e0c..66ab9daa4 100644 --- a/dist/melonjs.module.js +++ b/dist/melonjs.module.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v17.2.0 + * melonJS Game Engine - v17.3.0 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -446,10 +446,10 @@ var SHARED = '__core-js_shared__'; var store$3 = sharedStore$2.exports = globalThis$3[SHARED] || defineGlobalProperty$2(SHARED, {}); (store$3.versions || (store$3.versions = [])).push({ - version: '3.37.0', + version: '3.37.1', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -15629,6 +15629,63 @@ var device = { wheel: wheel }; +/** + * Application & Renderer Settings definition. + * @typedef {Object} ApplicationSettings + * @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file + * @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters) + * @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class + * @property {number|string} [scale=1.0] - enable scaling of the canvas ('auto' for automatic scaling) + * @property {"fit"|"fill-min"|"fill-max"|"flex"|"flex-width"|"flex-height"|"stretch"} [scaleMethod="fit"] - screen scaling modes :
+ * - `fit` : Letterboxed; content is scaled to design aspect ratio
+ *

+ * - `fill-min` : Canvas is resized to fit minimum design resolution; content is scaled to design aspect ratio
+ *

+ * - `fill-max` : Canvas is resized to fit maximum design resolution; content is scaled to design aspect ratio
+ *

+ * - `flex`< : Canvas width & height is resized to fit; content is scaled to design aspect ratio
+ *

+ * - `flex-width` : Canvas width is resized to fit; content is scaled to design aspect ratio
+ *

+ * - `flex-height` : Canvas height is resized to fit; content is scaled to design aspect ratio
+ *

+ * - `stretch` : Canvas is resized to fit; content is scaled to screen aspect ratio
+ *
+ * @property {string|HTMLElement} [scaleTarget] - the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent container of the div element containing the canvas) + * @property {boolean} [preferWebGL1=false] - if true the renderer will only use WebGL 1 + * @property {"sorting"|"z-buffer"} [depthTest="sorting"] - ~Experimental~ the default method to sort object on the z axis in WebGL + * @property {("default"|"high-performance"|"low-power")} [powerPreference="default"] - a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari and Chrome (since version 80) both default to "low-power" to save battery life and improve the user experience on these dual-GPU machines. + * @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen). + * @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation + * @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console + * @property {number} [zoomX=width] - The actual width of the canvas with scaling applied + * @property {number} [zoomY=height] - The actual height of the canvas with scaling applied + * @property {Compositor} [compositor] - a custom compositor class (WebGL only) + * @property {string} [physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic) + */ +const ApplicationSettings = { + parent : undefined, + canvas : undefined, + renderer : 2, // AUTO + autoScale : false, + scale : 1.0, + scaleMethod : "manual", + scaleTarget : undefined, + preferWebGL1 : false, + depthTest: "sorting", + powerPreference : "default", + transparent : false, + antiAlias : false, + consoleHeader : true, + premultipliedAlpha: true, + blendMode : "normal", + physic : "builtin", + failIfMajorPerformanceCaveat : true, + subPixel : false, + verbose : false, + legacy : false +}; + /** * constant to select the HTML5 Canvas renderer * @type {number} @@ -15665,7 +15722,7 @@ let renderer = null; * @memberof video * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer * @returns {boolean} false if initialization failed (canvas not supported) * @example * // init the video with a 640x480 canvas @@ -15684,7 +15741,7 @@ function init(width, height, options) { try { // initialize the default game Application with the given options - game.init(width, height, options); + game.init(width, height, Object.assign(ApplicationSettings, options || {})); } catch (e) { console.log(e.message); // me.video.init() historically returns false if failing at creating/using a HTML5 canvas @@ -21041,7 +21098,7 @@ let SemVer$d = class SemVer { do { const a = this.build[i]; const b = other.build[i]; - debug('prerelease compare', i, a, b); + debug('build compare', i, a, b); if (a === undefined && b === undefined) { return 0 } else if (b === undefined) { @@ -21536,800 +21593,48 @@ var coerce_1 = coerce$1; var coerce$2 = /*@__PURE__*/getDefaultExportFromCjs(coerce_1); -var iterator; -var hasRequiredIterator; - -function requireIterator () { - if (hasRequiredIterator) return iterator; - hasRequiredIterator = 1; - 'use strict'; - iterator = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value; - } - }; - }; - return iterator; -} - -var yallist; -var hasRequiredYallist; - -function requireYallist () { - if (hasRequiredYallist) return yallist; - hasRequiredYallist = 1; - 'use strict'; - yallist = Yallist; - - Yallist.Node = Node; - Yallist.create = Yallist; - - function Yallist (list) { - var self = this; - if (!(self instanceof Yallist)) { - self = new Yallist(); - } - - self.tail = null; - self.head = null; - self.length = 0; - - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item); - }); - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]); - } - } - - return self - } - - Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } - - var next = node.next; - var prev = node.prev; - - if (next) { - next.prev = prev; - } - - if (prev) { - prev.next = next; - } - - if (node === this.head) { - this.head = next; - } - if (node === this.tail) { - this.tail = prev; - } - - node.list.length--; - node.next = null; - node.prev = null; - node.list = null; - - return next - }; - - Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } - - if (node.list) { - node.list.removeNode(node); - } - - var head = this.head; - node.list = this; - node.next = head; - if (head) { - head.prev = node; - } - - this.head = node; - if (!this.tail) { - this.tail = node; - } - this.length++; - }; - - Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } - - if (node.list) { - node.list.removeNode(node); - } - - var tail = this.tail; - node.list = this; - node.prev = tail; - if (tail) { - tail.next = node; - } - - this.tail = node; - if (!this.head) { - this.head = node; - } - this.length++; - }; - - Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]); - } - return this.length - }; - - Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]); - } - return this.length - }; - - Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } - - var res = this.tail.value; - this.tail = this.tail.prev; - if (this.tail) { - this.tail.next = null; - } else { - this.head = null; - } - this.length--; - return res - }; - - Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } - - var res = this.head.value; - this.head = this.head.next; - if (this.head) { - this.head.prev = null; - } else { - this.tail = null; - } - this.length--; - return res - }; - - Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this); - walker = walker.next; - } - }; - - Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this); - walker = walker.prev; - } - }; - - Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next; - } - if (i === n && walker !== null) { - return walker.value - } - }; - - Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev; - } - if (i === n && walker !== null) { - return walker.value - } - }; - - Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.next; - } - return res - }; - - Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.prev; - } - return res - }; - - Yallist.prototype.reduce = function (fn, initial) { - var acc; - var walker = this.head; - if (arguments.length > 1) { - acc = initial; - } else if (this.head) { - walker = this.head.next; - acc = this.head.value; - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i); - walker = walker.next; - } - - return acc - }; - - Yallist.prototype.reduceReverse = function (fn, initial) { - var acc; - var walker = this.tail; - if (arguments.length > 1) { - acc = initial; - } else if (this.tail) { - walker = this.tail.prev; - acc = this.tail.value; - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i); - walker = walker.prev; - } - - return acc - }; - - Yallist.prototype.toArray = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.next; - } - return arr - }; - - Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.prev; - } - return arr - }; - - Yallist.prototype.slice = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next; - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value); - } - return ret - }; - - Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev; - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value); - } - return ret - }; - - Yallist.prototype.splice = function (start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1; - } - if (start < 0) { - start = this.length + start; - } - - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next; - } - - var ret = []; - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value); - walker = this.removeNode(walker); - } - if (walker === null) { - walker = this.tail; - } - - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev; - } - - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]); - } - return ret; - }; - - Yallist.prototype.reverse = function () { - var head = this.head; - var tail = this.tail; - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev; - walker.prev = walker.next; - walker.next = p; - } - this.head = tail; - this.tail = head; - return this - }; - - function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self); - - if (inserted.next === null) { - self.tail = inserted; - } - if (inserted.prev === null) { - self.head = inserted; - } - - self.length++; - - return inserted - } - - function push (self, item) { - self.tail = new Node(item, self.tail, null, self); - if (!self.head) { - self.head = self.tail; - } - self.length++; - } +class LRUCache { + constructor () { + this.max = 1000; + this.map = new Map(); + } - function unshift (self, item) { - self.head = new Node(item, null, self.head, self); - if (!self.tail) { - self.tail = self.head; - } - self.length++; - } + get (key) { + const value = this.map.get(key); + if (value === undefined) { + return undefined + } else { + // Remove the key from the map and add it to the end + this.map.delete(key); + this.map.set(key, value); + return value + } + } - function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } + delete (key) { + return this.map.delete(key) + } - this.list = list; - this.value = value; + set (key, value) { + const deleted = this.delete(key); - if (prev) { - prev.next = this; - this.prev = prev; - } else { - this.prev = null; - } + if (!deleted && value !== undefined) { + // If cache is full, delete the least recently used item + if (this.map.size >= this.max) { + const firstKey = this.map.keys().next().value; + this.delete(firstKey); + } - if (next) { - next.prev = this; - this.next = next; - } else { - this.next = null; - } - } + this.map.set(key, value); + } - try { - // add if support for Symbol.iterator is present - requireIterator()(Yallist); - } catch (er) {} - return yallist; + return this + } } -var lruCache; -var hasRequiredLruCache; - -function requireLruCache () { - if (hasRequiredLruCache) return lruCache; - hasRequiredLruCache = 1; - 'use strict'; - - // A linked list to keep track of recently-used-ness - const Yallist = requireYallist(); - - const MAX = Symbol('max'); - const LENGTH = Symbol('length'); - const LENGTH_CALCULATOR = Symbol('lengthCalculator'); - const ALLOW_STALE = Symbol('allowStale'); - const MAX_AGE = Symbol('maxAge'); - const DISPOSE = Symbol('dispose'); - const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet'); - const LRU_LIST = Symbol('lruList'); - const CACHE = Symbol('cache'); - const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet'); - - const naiveLength = () => 1; - - // lruList is a yallist where the head is the youngest - // item, and the tail is the oldest. the list contains the Hit - // objects as the entries. - // Each Hit object has a reference to its Yallist.Node. This - // never changes. - // - // cache is a Map (or PseudoMap) that matches the keys to - // the Yallist.Node object. - class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options }; - - if (!options) - options = {}; - - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity; - - const lc = options.length || naiveLength; - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc; - this[ALLOW_STALE] = options.stale || false; - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0; - this[DISPOSE] = options.dispose; - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; - this.reset(); - } - - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') - - this[MAX] = mL || Infinity; - trim(this); - } - get max () { - return this[MAX] - } - - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale; - } - get allowStale () { - return this[ALLOW_STALE] - } - - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') +var lrucache = LRUCache; - this[MAX_AGE] = mA; - trim(this); - } - get maxAge () { - return this[MAX_AGE] - } - - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength; - - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC; - this[LENGTH] = 0; - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key); - this[LENGTH] += hit.length; - }); - } - trim(this); - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } - - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } - - rforEach (fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev; - forEachStep(this, fn, walker, thisp); - walker = prev; - } - } - - forEach (fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next; - forEachStep(this, fn, walker, thisp); - walker = next; - } - } - - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } - - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } - - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)); - } - - this[CACHE] = new Map(); // hash of items by key - this[LRU_LIST] = new Yallist(); // list of items in order of use recency - this[LENGTH] = 0; // length of items in the list - } - - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - - dumpLru () { - return this[LRU_LIST] - } - - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE]; - - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') - - const now = maxAge ? Date.now() : 0; - const len = this[LENGTH_CALCULATOR](value, key); - - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)); - return false - } - - const node = this[CACHE].get(key); - const item = node.value; - - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value); - } - - item.now = now; - item.maxAge = maxAge; - item.value = value; - this[LENGTH] += len - item.length; - item.length = len; - this.get(key); - trim(this); - return true - } - - const hit = new Entry(key, value, len, now, maxAge); - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value); - - return false - } - - this[LENGTH] += hit.length; - this[LRU_LIST].unshift(hit); - this[CACHE].set(key, this[LRU_LIST].head); - trim(this); - return true - } - - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value; - return !isStale(this, hit) - } - - get (key) { - return get(this, key, true) - } - - peek (key) { - return get(this, key, false) - } - - pop () { - const node = this[LRU_LIST].tail; - if (!node) - return null - - del(this, node); - return node.value - } - - del (key) { - del(this, this[CACHE].get(key)); - } - - load (arr) { - // reset the cache - this.reset(); - - const now = Date.now(); - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l]; - const expiresAt = hit.e || 0; - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v); - else { - const maxAge = expiresAt - now; - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge); - } - } - } - } - - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)); - } - } - - const get = (self, key, doUse) => { - const node = self[CACHE].get(key); - if (node) { - const hit = node.value; - if (isStale(self, hit)) { - del(self, node); - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now(); - self[LRU_LIST].unshiftNode(node); - } - } - return hit.value - } - }; - - const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false - - const diff = Date.now() - hit.now; - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) - }; - - const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev; - del(self, walker); - walker = prev; - } - } - }; - - const del = (self, node) => { - if (node) { - const hit = node.value; - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value); - - self[LENGTH] -= hit.length; - self[CACHE].delete(hit.key); - self[LRU_LIST].removeNode(node); - } - }; - - class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key; - this.value = value; - this.length = length; - this.now = now; - this.maxAge = maxAge || 0; - } - } - - const forEachStep = (self, fn, node, thisp) => { - let hit = node.value; - if (isStale(self, hit)) { - del(self, node); - if (!self[ALLOW_STALE]) - hit = undefined; - } - if (hit) - fn.call(thisp, hit.value, hit.key, self); - }; - - lruCache = LRUCache; - return lruCache; -} +var lrucache$1 = /*@__PURE__*/getDefaultExportFromCjs(lrucache); var range; var hasRequiredRange; @@ -22537,8 +21842,8 @@ function requireRange () { range = Range; - const LRU = requireLruCache(); - const cache = new LRU({ max: 1000 }); + const LRU = lrucache; + const cache = new LRU(); const parseOptions = parseOptions_1; const Comparator = requireComparator(); @@ -22809,9 +22114,10 @@ function requireRange () { // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do // 1.2 - 3.4 => >=1.2.0 <3.5.0-0 + // TODO build? const hyphenReplace = incPr => ($0, from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) => { + to, tM, tm, tp, tpr) => { if (isX(fM)) { from = ''; } else if (isX(fm)) { @@ -25886,7 +25192,7 @@ class CanvasRenderTarget { */ class Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { @@ -26542,6 +25848,14 @@ class TextureAtlas { */ this.atlases = new Map(); + /** + * the default "active" atlas (used for multiAtlas) + * @type {Map} + * @ignore + */ + this.activeAtlas = undefined; + + // parse given atlas(es) paremeters if (typeof (atlases) !== "undefined") { // normalize to array to keep the following code generic @@ -26608,10 +25922,10 @@ class TextureAtlas { // initialize the atlas this.atlases.set("default", parseSpriteSheet(atlas, this)); this.sources.set("default", atlas.image); - } } } // end forEach + this.activeAtlas = this.atlases.keys().next().value; } // if format not recognized @@ -26636,7 +25950,7 @@ class TextureAtlas { if (typeof name === "string") { return this.atlases.get(name); } else { - return this.atlases.values().next().value; + return this.atlases.get(this.activeAtlas); } } @@ -26657,7 +25971,8 @@ class TextureAtlas { if ((typeof region === "object") && (typeof region.texture === "string")) { return this.sources.get(region.texture); } else { - return this.sources.values().next().value; + return this.sources.get(this.activeAtlas); + } } @@ -27122,26 +26437,55 @@ class TextureCache { * @ignore */ freeTextureUnit(texture) { - let unit = this.units.get(texture); + let source = texture.sources.get(texture.activeAtlas); + let unit = this.units.get(source); // was a texture unit allocated ? if (typeof unit !== "undefined") { - this.usedUnits.delete(unit); - this.units.delete(texture); + this.usedUnits.delete(source); + this.units.delete(source); } } /** * @ignore */ + getUnit(texture) { + let source = texture.sources.get(texture.activeAtlas); + if (!this.units.has(source)) { + this.units.set(source, this.allocateTextureUnit()); + } + return this.units.get(source); + } + + /** + * @ignore + * cache the textureAltas for the given image + */ + set(image, textureAtlas) { + let width = image.width || image.videoWidth; + let height = image.height || image.videoHeight; + + // warn if a non POT texture is added to the cache when using WebGL1 + if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) { + let src = typeof image.src !== "undefined" ? image.src : image; + console.warn( + "[Texture] " + src + " is not a POT texture " + + "(" + width + "x" + height + ")" + ); + } + return this.cache.put(image, textureAtlas); + } + + /** + * @ignore + * return the textureAltas for the given image + */ get(image, atlas) { - let entry; + let entry = this.cache.get(image)[0]; - if (typeof atlas === "undefined") { - entry = this.cache.get(image)[0]; - } else { - // manage cases where a specific atlas is specified + if (typeof entry !== "undefined" && typeof atlas !== "undefined") { this.cache.forEach((value, key) => { - let _atlas = value.getAtlas()[0]; + let _atlas = value.getAtlas(); if (key === image && _atlas.width === atlas.framewidth && _atlas.height === atlas.frameheight) { entry = value; } @@ -27149,13 +26493,30 @@ class TextureCache { } if (typeof entry === "undefined") { + console.log("cache miss"); if (!atlas) { - atlas = createAtlas(image.width || image.videoWidth, image.videoHeight, image.src ? getBasename(image.src) : undefined); + atlas = createAtlas(image.width || image.videoWidth, image.height || image.videoHeight, image.src ? getBasename(image.src) : undefined); } entry = new TextureAtlas(atlas, image, false); this.set(image, entry); } + // "activate" the corresponding sources (in case of multi texture atlas) + if (typeof entry.sources !== "undefined" && entry.sources.size > 1) { + console.log(entry); + // manage cases where a specific atlas is specified + for (const [key, value] of entry.sources.entries()) { + // Check if the imageData matches the provided image + if (value === image) { + console.log("cache hit"); + // If a match is found, return the corresponding entry from cache.atlases + console.log(key); + //return entry.atlases.get(key); + entry.activeAtlas = key; + } + } + } + return entry; } @@ -27190,33 +26551,6 @@ class TextureCache { return image_cache.get(color); } - /** - * @ignore - */ - set(image, texture) { - let width = image.width || image.videoWidth; - let height = image.height || image.videoHeight; - - // warn if a non POT texture is added to the cache when using WebGL1 - if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) { - let src = typeof image.src !== "undefined" ? image.src : image; - console.warn( - "[Texture] " + src + " is not a POT texture " + - "(" + width + "x" + height + ")" - ); - } - return this.cache.put(image, texture); - } - - /** - * @ignore - */ - getUnit(texture) { - if (!this.units.has(texture)) { - this.units.set(texture, this.allocateTextureUnit()); - } - return this.units.get(texture); - } } /** @@ -27226,7 +26560,7 @@ class TextureCache { */ class CanvasRenderer extends Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { // parent constructor @@ -27886,11 +27220,18 @@ class CanvasRenderer extends Renderer { } /** - * Set the line width on the context - * @param {number} width - Line width + * sets or returns the thickness of lines for shape drawing */ - setLineWidth(width) { - this.getContext().lineWidth = width; + get lineWidth() { + return this.getContext().lineWidth; + } + + /** + * @ignore + */ + set lineWidth(value) { + this.getContext().lineWidth = value; + return value; } /** @@ -31570,15 +30911,8 @@ function preloadTMX(tmxData, onload, onerror, settings) { const xmlDoc = parser.parseFromString(response, "text/xml"); const data = parse(xmlDoc); - switch (getExtension(tmxData.src)) { - case "tmx": - result = data.map; - break; + result = data.map || data.tilesets[0] || data; - case "tsx": - result = data.tilesets[0]; - break; - } break; } case "json": @@ -36365,12 +35699,12 @@ let supportedCompressedTextureFormats; /** * @classdesc - * a WebGL renderer object + * a WebGL renderer draw * @augments Renderer */ class WebGLRenderer extends Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options) { // parent contructor @@ -36399,6 +35733,14 @@ class WebGLRenderer extends Renderer { */ this.gl = this.renderTarget.context; + /** + * sets or returns the thickness of lines for shape drawing (limited to strokeLine) + * @type {number} + * @default 1 + * @see WebGLRenderer#strokeLine + */ + this.lineWidth = 1; + /** * the vertex buffer used by this WebGL Renderer * @type {WebGLBuffer} @@ -36745,6 +36087,7 @@ class WebGLRenderer extends Renderer { clear() { let gl = this.gl; gl.clearColor(0, 0, 0, this.settings.transparent ? 0.0 : 1.0); + this.lineWidth = 1; if (this.depthTest === "z-buffer") { gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT | gl.STENCIL_BUFFER_BIT); } else { @@ -37134,14 +36477,6 @@ class WebGLRenderer extends Renderer { this.currentColor.alpha *= alpha; } - /** - * Set the line width - * @param {number} width - Line width - */ - setLineWidth(width) { - this.getContext().lineWidth(width); - } - /** * Stroke an arc at the specified coordinates with given radius, start and end points * @param {number} x - arc center point x-axis @@ -37215,10 +36550,34 @@ class WebGLRenderer extends Renderer { */ strokeLine(startX, startY, endX, endY) { this.setCompositor("primitive"); - this.path2D.beginPath(); - this.path2D.moveTo(startX, startY); - this.path2D.lineTo(endX, endY); - this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points); + if (this.lineWidth === 1) { + this.path2D.beginPath(); + this.path2D.moveTo(startX, startY); + this.path2D.lineTo(endX, endY); + this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points); + } else if (this.lineWidth > 1) { + const halfWidth = this.lineWidth / 2; + const angle = Math.atan2(endY - startY, endX - startX); + const dx = Math.sin(angle) * halfWidth; + const dy = Math.cos(angle) * halfWidth; + const x1 = startX - dx; + const y1 = startY + dy; + const x2 = startX + dx; + const y2 = startY - dy; + const x3 = endX + dx; + const y3 = endY - dy; + const x4 = endX - dx; + const y4 = endY + dy; + + this.path2D.beginPath(); + this.path2D.moveTo(x1, y1); + this.path2D.lineTo(x2, y2); + this.path2D.lineTo(x3, y3); + this.path2D.lineTo(x4, y4); + this.path2D.closePath(); + // draw all triangles + this.currentCompositor.drawVertices(this.gl.TRIANGLES, this.path2D.triangulatePath()); + } } @@ -41268,7 +40627,7 @@ class World extends Container { /** * the physic engine used by melonJS - * @see Application.Settings.physic + * @see ApplicationSettings.physic * @type {string} * @default "builtin" * @example @@ -42548,66 +41907,6 @@ function onresize(game) { scale(game, scaleX, scaleY); } -// default settings -const defaultSettings = { - parent : undefined, - renderer : 2, // AUTO - autoScale : false, - scale : 1.0, - scaleMethod : "manual", - scaleTarget : undefined, - transparent : false, - premultipliedAlpha: true, - blendMode : "normal", - physic : "builtin", - antiAlias : false, - failIfMajorPerformanceCaveat : true, - subPixel : false, - preferWebGL1 : false, - powerPreference : "default", - verbose : false, - consoleHeader : true, - legacy : false, - canvas : undefined -}; - -/** - * Application & Renderer Settings definition. - * @typedef {object} Settings - * @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file - * @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters) - * @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class - * @property {number|string} [scale=1.0] - enable scaling of the canvas ('auto' for automatic scaling) - * @property {"fit"|"fill-min"|"fill-max"|"flex"|"flex-width"|"flex-height"|"stretch"} [scaleMethod="fit"] - screen scaling modes :
- * - `fit` : Letterboxed; content is scaled to design aspect ratio
- *

- * - `fill-min` : Canvas is resized to fit minimum design resolution; content is scaled to design aspect ratio
- *

- * - `fill-max` : Canvas is resized to fit maximum design resolution; content is scaled to design aspect ratio
- *

- * - `flex`< : Canvas width & height is resized to fit; content is scaled to design aspect ratio
- *

- * - `flex-width` : Canvas width is resized to fit; content is scaled to design aspect ratio
- *

- * - `flex-height` : Canvas height is resized to fit; content is scaled to design aspect ratio
- *

- * - `stretch` : Canvas is resized to fit; content is scaled to screen aspect ratio
- *
- * @property {string|HTMLElement} [scaleTarget] - the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent container of the div element containing the canvas) - * @property {boolean} [preferWebGL1=false] - if true the renderer will only use WebGL 1 - * @property {"sorting"|"z-buffer"} [depthTest="sorting"] - ~Experimental~ the default method to sort object on the z axis in WebGL - * @property {("default"|"high-performance"|"low-power")} [powerPreference="default"] - a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari and Chrome (since version 80) both default to "low-power" to save battery life and improve the user experience on these dual-GPU machines. - * @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen). - * @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation - * @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console - * @param {number} [options.zoomX=width] - The actual width of the canvas with scaling applied - * @param {number} [options.zoomY=height] - The actual height of the canvas with scaling applied - * @param {Compositor} [options.compositor] - a custom compositor class (WebGL only) - * @param {string} [option.physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic) - * @see Application - * @memberof Application - */ - /** * display information * @param {Application} app - the game application instance calling this function @@ -42642,7 +41941,7 @@ class Application { /** * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer * @throws Will throw an exception if it fails to instantiate a renderer */ constructor(width, height, options) { @@ -42698,7 +41997,7 @@ class Application { /** * the given settings used when creating this application - * @type {Application.settings} + * @type {ApplicationSettings} */ this.settings = undefined; @@ -42759,11 +42058,11 @@ class Application { * init the game instance (create a physic world, update starting time, etc..) * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer */ init(width, height, options) { - this.settings = Object.assign(defaultSettings, options || {}); + this.settings = Object.assign(ApplicationSettings, options || {}); // sanitize potential given parameters this.settings.width = width; @@ -43077,9 +42376,9 @@ class BasePlugin { * define the minimum required version of melonJS
* this can be overridden by the plugin * @type {string} - * @default "17.2.0" + * @default "17.3.0" */ - this.version = "17.2.0"; + this.version = "17.3.0"; /** * a reference to the app/game that registered this plugin @@ -43341,7 +42640,6 @@ Renderer.prototype.getWidth = function() { * return the height of the system Canvas * @public * @name getHeight - * @class * @memberof Renderer# * @deprecated since 15.12.0 * @see height @@ -43372,6 +42670,32 @@ class CanvasTexture extends CanvasRenderTarget { } } +/** + * return the height of the system Canvas + * @public + * @name setLineWidth + * @memberof CanvasRenderer# + * @deprecated since 17.3.0 + * @see lineWidth + */ +CanvasRenderer.prototype.setLineWidth = function(width) { + warning("setLineWidth", "lineWidth", "17.3.0"); + this.lineWidth = width; +}; + +/** + * return the height of the system Canvas + * @public + * @name setLineWidth + * @memberof WebGLRenderer# + * @deprecated since 17.3.0 + * @see lineWidth + */ +WebGLRenderer.prototype.setLineWidth = function(width) { + warning("setLineWidth", "lineWidth", "17.3.0"); + this.lineWidth = width; +}; + // ES5/ES6 polyfills @@ -43382,7 +42706,7 @@ class CanvasTexture extends CanvasRenderTarget { * @name version * @type {string} */ -const version = "17.2.0"; +const version = "17.3.0"; /** * a flag indicating that melonJS is fully initialized diff --git a/dist/types/application/application.d.ts b/dist/types/application/application.d.ts index ac3be25d8..2ffc908a4 100644 --- a/dist/types/application/application.d.ts +++ b/dist/types/application/application.d.ts @@ -7,10 +7,10 @@ export default class Application { /** * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer * @throws Will throw an exception if it fails to instantiate a renderer */ - constructor(width: number, height: number, options?: any); + constructor(width: number, height: number, options?: ApplicationSettings | undefined); /** * the parent HTML element holding the main canvas of this application * @type {HTMLElement} @@ -55,9 +55,9 @@ export default class Application { isInitialized: boolean; /** * the given settings used when creating this application - * @type {Application.settings} + * @type {ApplicationSettings} */ - settings: Application.settings; + settings: ApplicationSettings; /** * Specify whether to pause this app when losing focus * @type {boolean} @@ -94,9 +94,9 @@ export default class Application { * init the game instance (create a physic world, update starting time, etc..) * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer */ - init(width: number, height: number, options?: any): void; + init(width: number, height: number, options?: ApplicationSettings | undefined): void; /** * reset the game Object manager * destroy all current objects @@ -145,3 +145,4 @@ export default class Application { } import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; import World from "./../physics/world.js"; +import { ApplicationSettings } from "./settings.js"; diff --git a/dist/types/application/settings.d.ts b/dist/types/application/settings.d.ts index c4df23489..cd0ae6d08 100644 --- a/dist/types/application/settings.d.ts +++ b/dist/types/application/settings.d.ts @@ -1,28 +1,7 @@ -export namespace defaultSettings { - let parent: undefined; - let renderer: number; - let autoScale: boolean; - let scale: number; - let scaleMethod: string; - let scaleTarget: undefined; - let transparent: boolean; - let premultipliedAlpha: boolean; - let blendMode: string; - let physic: string; - let antiAlias: boolean; - let failIfMajorPerformanceCaveat: boolean; - let subPixel: boolean; - let preferWebGL1: boolean; - let powerPreference: string; - let verbose: boolean; - let consoleHeader: boolean; - let legacy: boolean; - let canvas: undefined; -} /** * Application & Renderer Settings definition. */ -export type Settings = { +export type ApplicationSettings = { /** * - the DOM parent element to hold the canvas in the HTML file */ @@ -56,7 +35,7 @@ export type Settings = { * - `stretch` : Canvas is resized to fit; content is scaled to screen aspect ratio
*
*/ - scaleMethod?: "flex" | "fill-min" | "fill-max" | "flex-width" | "flex-height" | "stretch" | "fit" | undefined; + scaleMethod?: "flex" | "fit" | "fill-min" | "fill-max" | "flex-width" | "flex-height" | "stretch" | undefined; /** * - the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent container of the div element containing the canvas) */ @@ -85,4 +64,42 @@ export type Settings = { * - whether to display melonJS version and basic device information in the console */ consoleHeader?: boolean | undefined; + /** + * - The actual width of the canvas with scaling applied + */ + zoomX?: number | undefined; + /** + * - The actual height of the canvas with scaling applied + */ + zoomY?: number | undefined; + /** + * - a custom compositor class (WebGL only) + */ + compositor?: any; + /** + * - the physic system to use (default: "builtin", or "none" to disable builtin physic) + */ + physic?: string | undefined; }; +export namespace ApplicationSettings { + let parent: undefined; + let canvas: undefined; + let renderer: number; + let autoScale: boolean; + let scale: number; + let scaleMethod: string; + let scaleTarget: undefined; + let preferWebGL1: boolean; + let depthTest: string; + let powerPreference: string; + let transparent: boolean; + let antiAlias: boolean; + let consoleHeader: boolean; + let premultipliedAlpha: boolean; + let blendMode: string; + let physic: string; + let failIfMajorPerformanceCaveat: boolean; + let subPixel: boolean; + let verbose: boolean; + let legacy: boolean; +} diff --git a/dist/types/physics/world.d.ts b/dist/types/physics/world.d.ts index 5191e9da3..ace2f5f9d 100644 --- a/dist/types/physics/world.d.ts +++ b/dist/types/physics/world.d.ts @@ -18,7 +18,7 @@ export default class World extends Container { app: Application; /** * the physic engine used by melonJS - * @see Application.Settings.physic + * @see ApplicationSettings.physic * @type {string} * @default "builtin" * @example diff --git a/dist/types/video/canvas/canvas_renderer.d.ts b/dist/types/video/canvas/canvas_renderer.d.ts index b9c1fed5a..df4523e5d 100644 --- a/dist/types/video/canvas/canvas_renderer.d.ts +++ b/dist/types/video/canvas/canvas_renderer.d.ts @@ -320,10 +320,13 @@ export default class CanvasRenderer extends Renderer { */ getGlobalAlpha(): number; /** - * Set the line width on the context - * @param {number} width - Line width + * @ignore */ - setLineWidth(width: number): void; + set lineWidth(value: number | ((width: number) => void)); + /** + * sets or returns the thickness of lines for shape drawing + */ + get lineWidth(): number | ((width: number) => void); /** * Reset (overrides) the renderer transformation matrix to the * identity one, and then apply the given transformation matrix. diff --git a/dist/types/video/renderer.d.ts b/dist/types/video/renderer.d.ts index 12a49e4d9..ff2925f4a 100644 --- a/dist/types/video/renderer.d.ts +++ b/dist/types/video/renderer.d.ts @@ -4,7 +4,7 @@ */ export default class Renderer { /** - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer */ constructor(options?: any); /** diff --git a/dist/types/video/texture/atlas.d.ts b/dist/types/video/texture/atlas.d.ts index 8f0c8166b..286e866a1 100644 --- a/dist/types/video/texture/atlas.d.ts +++ b/dist/types/video/texture/atlas.d.ts @@ -83,6 +83,12 @@ export class TextureAtlas { * @ignore */ atlases: Map; + /** + * the default "active" atlas (used for multiAtlas) + * @type {Map} + * @ignore + */ + activeAtlas: Map; repeat: any; /** * return the default or specified atlas dictionnary diff --git a/dist/types/video/texture/cache.d.ts b/dist/types/video/texture/cache.d.ts index c9e324469..f9afd3cea 100644 --- a/dist/types/video/texture/cache.d.ts +++ b/dist/types/video/texture/cache.d.ts @@ -28,22 +28,24 @@ declare class TextureCache { /** * @ignore */ - get(image: any, atlas: any): any; + getUnit(texture: any): any; /** * @ignore + * cache the textureAltas for the given image */ - delete(image: any): void; + set(image: any, textureAtlas: any): boolean; /** * @ignore + * return the textureAltas for the given image */ - tint(src: any, color: any): any; + get(image: any, atlas: any): any; /** * @ignore */ - set(image: any, texture: any): boolean; + delete(image: any): void; /** * @ignore */ - getUnit(texture: any): any; + tint(src: any, color: any): any; } import { ArrayMultimap } from "@teppeis/multimaps"; diff --git a/dist/types/video/video.d.ts b/dist/types/video/video.d.ts index 107ea1944..d540ed329 100644 --- a/dist/types/video/video.d.ts +++ b/dist/types/video/video.d.ts @@ -3,7 +3,7 @@ * @memberof video * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - optional parameters for the renderer + * @param {ApplicationSettings} [options] - optional parameters for the renderer * @returns {boolean} false if initialization failed (canvas not supported) * @example * // init the video with a 640x480 canvas @@ -14,7 +14,7 @@ * scaleMethod : "fit" * }); */ -export function init(width: number, height: number, options?: any): boolean; +export function init(width: number, height: number, options?: ApplicationSettings | undefined): boolean; /** * Create and return a new Canvas element * @memberof video @@ -36,3 +36,4 @@ export function getParent(): HTMLElement; * @type {CanvasRenderer|WebGLRenderer} */ export let renderer: CanvasRenderer | WebGLRenderer; +import { ApplicationSettings } from "../application/settings.js"; diff --git a/dist/types/video/webgl/webgl_renderer.d.ts b/dist/types/video/webgl/webgl_renderer.d.ts index ce351d2ff..8862e74bd 100644 --- a/dist/types/video/webgl/webgl_renderer.d.ts +++ b/dist/types/video/webgl/webgl_renderer.d.ts @@ -1,6 +1,6 @@ /** * @classdesc - * a WebGL renderer object + * a WebGL renderer draw * @augments Renderer */ export default class WebGLRenderer extends Renderer { @@ -24,6 +24,13 @@ export default class WebGLRenderer extends Renderer { * @type {WebGLRenderingContext} */ gl: WebGLRenderingContext; + /** + * sets or returns the thickness of lines for shape drawing (limited to strokeLine) + * @type {number} + * @default 1 + * @see WebGLRenderer#strokeLine + */ + lineWidth: number; /** * the vertex buffer used by this WebGL Renderer * @type {WebGLBuffer} @@ -329,11 +336,6 @@ export default class WebGLRenderer extends Renderer { * @param {Color|string} color - css color string. */ setColor(color: Color | string): void; - /** - * Set the line width - * @param {number} width - Line width - */ - setLineWidth(width: number): void; /** * Stroke an arc at the specified coordinates with given radius, start and end points * @param {number} x - arc center point x-axis diff --git a/docs/docs/Class-Index.html b/docs/docs/Class-Index.html index ce18dcb9e..43b75d428 100644 --- a/docs/docs/Class-Index.html +++ b/docs/docs/Class-Index.html @@ -1,5 +1,5 @@ - + @@ -220,11 +220,6 @@

G

- - - - - diff --git a/docs/docs/explorer/reference.json b/docs/docs/explorer/reference.json index a5b2f61ba..f08f979ff 100644 --- a/docs/docs/explorer/reference.json +++ b/docs/docs/explorer/reference.json @@ -1 +1 @@ -{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/index.html"},"ClassIndex":{"title":"Class Index","page":"/melonJS/docs/Class-Index.html"},"audio (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/audio.html"},"disable (function)":{"children":{},"title":"disable (function)","page":"/melonJS/docs/melonjs/audio/disable.html"},"enable (function)":{"children":{},"title":"enable (function)","page":"/melonJS/docs/melonjs/audio/enable.html"},"fade (function)":{"children":{},"title":"fade (function)","page":"/melonJS/docs/melonjs/audio/fade.html"},"getCurrentTrack (function)":{"children":{},"title":"getCurrentTrack (function)","page":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"getVolume (function)":{"children":{},"title":"getVolume (function)","page":"/melonJS/docs/melonjs/audio/getVolume.html"},"hasAudio (function)":{"children":{},"title":"hasAudio (function)","page":"/melonJS/docs/melonjs/audio/hasAudio.html"},"hasFormat (function)":{"children":{},"title":"hasFormat (function)","page":"/melonJS/docs/melonjs/audio/hasFormat.html"},"init (function)":{"children":{},"title":"init (function)","page":"/melonJS/docs/melonjs/audio/init.html"},"load (function)":{"children":{},"title":"load (function)","page":"/melonJS/docs/melonjs/audio/load.html"},"mute (function)":{"children":{},"title":"mute (function)","page":"/melonJS/docs/melonjs/audio/mute.html"},"muteAll (function)":{"children":{},"title":"muteAll (function)","page":"/melonJS/docs/melonjs/audio/muteAll.html"},"muted (function)":{"children":{},"title":"muted (function)","page":"/melonJS/docs/melonjs/audio/muted.html"},"orientation (function)":{"children":{},"title":"orientation (function)","page":"/melonJS/docs/melonjs/audio/orientation.html"},"panner (function)":{"children":{},"title":"panner (function)","page":"/melonJS/docs/melonjs/audio/panner.html"},"pause (function)":{"children":{},"title":"pause (function)","page":"/melonJS/docs/melonjs/audio/pause.html"},"pauseTrack (function)":{"children":{},"title":"pauseTrack (function)","page":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"play (function)":{"children":{},"title":"play (function)","page":"/melonJS/docs/melonjs/audio/play.html"},"playTrack (function)":{"children":{},"title":"playTrack (function)","page":"/melonJS/docs/melonjs/audio/playTrack.html"},"position (function)":{"children":{},"title":"position (function)","page":"/melonJS/docs/melonjs/audio/position.html"},"rate (function)":{"children":{},"title":"rate (function)","page":"/melonJS/docs/melonjs/audio/rate.html"},"resume (function)":{"children":{},"title":"resume (function)","page":"/melonJS/docs/melonjs/audio/resume.html"},"resumeTrack (function)":{"children":{},"title":"resumeTrack (function)","page":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"seek (function)":{"children":{},"title":"seek (function)","page":"/melonJS/docs/melonjs/audio/seek.html"},"setVolume (function)":{"children":{},"title":"setVolume (function)","page":"/melonJS/docs/melonjs/audio/setVolume.html"},"stereo (function)":{"children":{},"title":"stereo (function)","page":"/melonJS/docs/melonjs/audio/stereo.html"},"stop (function)":{"children":{},"title":"stop (function)","page":"/melonJS/docs/melonjs/audio/stop.html"},"stopTrack (function)":{"children":{},"title":"stopTrack (function)","page":"/melonJS/docs/melonjs/audio/stopTrack.html"},"unload (function)":{"children":{},"title":"unload (function)","page":"/melonJS/docs/melonjs/audio/unload.html"},"unloadAll (function)":{"children":{},"title":"unloadAll (function)","page":"/melonJS/docs/melonjs/audio/unloadAll.html"},"unmute (function)":{"children":{},"title":"unmute (function)","page":"/melonJS/docs/melonjs/audio/unmute.html"},"unmuteAll (function)":{"children":{},"title":"unmuteAll (function)","page":"/melonJS/docs/melonjs/audio/unmuteAll.html"}},"title":"audio (namespace)","page":null},"collision (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/collision.html"},"types (enum)":{"children":{},"title":"types (enum)","page":"/melonJS/docs/melonjs/collision/types.html"}},"title":"collision (namespace)","page":null},"device (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/device.html"},"enableSwipe (function)":{"children":{},"title":"enableSwipe (function)","page":"/melonJS/docs/melonjs/device/enableSwipe.html"},"exitFullscreen (function)":{"children":{},"title":"exitFullscreen (function)","page":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"focus (function)":{"children":{},"title":"focus (function)","page":"/melonJS/docs/melonjs/device/focus.html"},"getElement (function)":{"children":{},"title":"getElement (function)","page":"/melonJS/docs/melonjs/device/getElement.html"},"getElementBounds (function)":{"children":{},"title":"getElementBounds (function)","page":"/melonJS/docs/melonjs/device/getElementBounds.html"},"getParentBounds (function)":{"children":{},"title":"getParentBounds (function)","page":"/melonJS/docs/melonjs/device/getParentBounds.html"},"getParentElement (function)":{"children":{},"title":"getParentElement (function)","page":"/melonJS/docs/melonjs/device/getParentElement.html"},"getScreenOrientation (function)":{"children":{},"title":"getScreenOrientation (function)","page":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"getStorage (function)":{"children":{},"title":"getStorage (function)","page":"/melonJS/docs/melonjs/device/getStorage.html"},"hasVideoFormat (function)":{"children":{},"title":"hasVideoFormat (function)","page":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"isFullscreen (function)":{"children":{},"title":"isFullscreen (function)","page":"/melonJS/docs/melonjs/device/isFullscreen.html"},"isLandscape (function)":{"children":{},"title":"isLandscape (function)","page":"/melonJS/docs/melonjs/device/isLandscape.html"},"isPortrait (function)":{"children":{},"title":"isPortrait (function)","page":"/melonJS/docs/melonjs/device/isPortrait.html"},"isWebGLSupported (function)":{"children":{},"title":"isWebGLSupported (function)","page":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"lockOrientation (function)":{"children":{},"title":"lockOrientation (function)","page":"/melonJS/docs/melonjs/device/lockOrientation.html"},"onReady (function)":{"children":{},"title":"onReady (function)","page":"/melonJS/docs/melonjs/device/onReady.html"},"requestFullscreen (function)":{"children":{},"title":"requestFullscreen (function)","page":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"unlockOrientation (function)":{"children":{},"title":"unlockOrientation (function)","page":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"unwatchAccelerometer (function)":{"children":{},"title":"unwatchAccelerometer (function)","page":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"unwatchDeviceOrientation (function)":{"children":{},"title":"unwatchDeviceOrientation (function)","page":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"vibrate (function)":{"children":{},"title":"vibrate (function)","page":"/melonJS/docs/melonjs/device/vibrate.html"},"watchAccelerometer (function)":{"children":{},"title":"watchAccelerometer (function)","page":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"watchDeviceOrientation (function)":{"children":{},"title":"watchDeviceOrientation (function)","page":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"}},"title":"device (namespace)","page":null},"device.platform (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/device/platform.html"}},"title":"device.platform (namespace)","page":null},"event (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/event.html"},"emit (function)":{"children":{},"title":"emit (function)","page":"/melonJS/docs/melonjs/event/emit.html"},"off (function)":{"children":{},"title":"off (function)","page":"/melonJS/docs/melonjs/event/off.html"},"on (function)":{"children":{},"title":"on (function)","page":"/melonJS/docs/melonjs/event/on.html"},"once (function)":{"children":{},"title":"once (function)","page":"/melonJS/docs/melonjs/event/once.html"}},"title":"event (namespace)","page":null},"game (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/game.html"}},"title":"game (namespace)","page":null},"input (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/input.html"},"KEY (enum)":{"children":{},"title":"KEY (enum)","page":"/melonJS/docs/melonjs/input/KEY.html"},"bindGamepad (function)":{"children":{},"title":"bindGamepad (function)","page":"/melonJS/docs/melonjs/input/bindGamepad.html"},"bindKey (function)":{"children":{},"title":"bindKey (function)","page":"/melonJS/docs/melonjs/input/bindKey.html"},"bindPointer (function)":{"children":{},"title":"bindPointer (function)","page":"/melonJS/docs/melonjs/input/bindPointer.html"},"exitPointerLock (function)":{"children":{},"title":"exitPointerLock (function)","page":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"getBindingKey (function)":{"children":{},"title":"getBindingKey (function)","page":"/melonJS/docs/melonjs/input/getBindingKey.html"},"globalToLocal (function)":{"children":{},"title":"globalToLocal (function)","page":"/melonJS/docs/melonjs/input/globalToLocal.html"},"hasActiveEvents (function)":{"children":{},"title":"hasActiveEvents (function)","page":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"hasRegisteredEvents (function)":{"children":{},"title":"hasRegisteredEvents (function)","page":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"isKeyPressed (function)":{"children":{},"title":"isKeyPressed (function)","page":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"keyStatus (function)":{"children":{},"title":"keyStatus (function)","page":"/melonJS/docs/melonjs/input/keyStatus.html"},"registerPointerEvent (function)":{"children":{},"title":"registerPointerEvent (function)","page":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"releaseAllPointerEvents (function)":{"children":{},"title":"releaseAllPointerEvents (function)","page":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"releasePointerEvent (function)":{"children":{},"title":"releasePointerEvent (function)","page":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"requestPointerLock (function)":{"children":{},"title":"requestPointerLock (function)","page":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"setGamepadDeadzone (function)":{"children":{},"title":"setGamepadDeadzone (function)","page":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"setTouchAction (function)":{"children":{},"title":"setTouchAction (function)","page":"/melonJS/docs/melonjs/input/setTouchAction.html"},"triggerKeyEvent (function)":{"children":{},"title":"triggerKeyEvent (function)","page":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"unbindGamepad (function)":{"children":{},"title":"unbindGamepad (function)","page":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"unbindKey (function)":{"children":{},"title":"unbindKey (function)","page":"/melonJS/docs/melonjs/input/unbindKey.html"},"unbindPointer (function)":{"children":{},"title":"unbindPointer (function)","page":"/melonJS/docs/melonjs/input/unbindPointer.html"},"unlockKey (function)":{"children":{},"title":"unlockKey (function)","page":"/melonJS/docs/melonjs/input/unlockKey.html"}},"title":"input (namespace)","page":null},"input.GAMEPAD (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"AXES (enum)":{"children":{},"title":"AXES (enum)","page":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"BUTTONS (enum)":{"children":{},"title":"BUTTONS (enum)","page":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"}},"title":"input.GAMEPAD (namespace)","page":null},"level (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/level.html"}},"title":"level (namespace)","page":null},"loader (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/loader.html"},"Asset":{"children":{},"title":"Asset","page":"/melonJS/docs/melonjs/loader/Asset.html"},"getBinary (function)":{"children":{},"title":"getBinary (function)","page":"/melonJS/docs/melonjs/loader/getBinary.html"},"getFont (function)":{"children":{},"title":"getFont (function)","page":"/melonJS/docs/melonjs/loader/getFont.html"},"getImage (function)":{"children":{},"title":"getImage (function)","page":"/melonJS/docs/melonjs/loader/getImage.html"},"getJSON (function)":{"children":{},"title":"getJSON (function)","page":"/melonJS/docs/melonjs/loader/getJSON.html"},"getTMX (function)":{"children":{},"title":"getTMX (function)","page":"/melonJS/docs/melonjs/loader/getTMX.html"},"getVideo (function)":{"children":{},"title":"getVideo (function)","page":"/melonJS/docs/melonjs/loader/getVideo.html"},"load (function)":{"children":{},"title":"load (function)","page":"/melonJS/docs/melonjs/loader/load.html"},"preload (function)":{"children":{},"title":"preload (function)","page":"/melonJS/docs/melonjs/loader/preload.html"},"reload (function)":{"children":{},"title":"reload (function)","page":"/melonJS/docs/melonjs/loader/reload.html"},"setBaseURL (function)":{"children":{},"title":"setBaseURL (function)","page":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"setOptions (function)":{"children":{},"title":"setOptions (function)","page":"/melonJS/docs/melonjs/loader/setOptions.html"},"setParser (function)":{"children":{},"title":"setParser (function)","page":"/melonJS/docs/melonjs/loader/setParser.html"},"unload (function)":{"children":{},"title":"unload (function)","page":"/melonJS/docs/melonjs/loader/unload.html"},"unloadAll (function)":{"children":{},"title":"unloadAll (function)","page":"/melonJS/docs/melonjs/loader/unloadAll.html"}},"title":"loader (namespace)","page":null},"Math (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/Math.html"},"clamp (function)":{"children":{},"title":"clamp (function)","page":"/melonJS/docs/melonjs/Math/clamp.html"},"degToRad (function)":{"children":{},"title":"degToRad (function)","page":"/melonJS/docs/melonjs/Math/degToRad.html"},"isPowerOfFour (function)":{"children":{},"title":"isPowerOfFour (function)","page":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"isPowerOfTwo (function)":{"children":{},"title":"isPowerOfTwo (function)","page":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"nextPowerOfTwo (function)":{"children":{},"title":"nextPowerOfTwo (function)","page":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"pow (function)":{"children":{},"title":"pow (function)","page":"/melonJS/docs/melonjs/Math/pow.html"},"radToDeg (function)":{"children":{},"title":"radToDeg (function)","page":"/melonJS/docs/melonjs/Math/radToDeg.html"},"random (function)":{"children":{},"title":"random (function)","page":"/melonJS/docs/melonjs/Math/random.html"},"randomFloat (function)":{"children":{},"title":"randomFloat (function)","page":"/melonJS/docs/melonjs/Math/randomFloat.html"},"round (function)":{"children":{},"title":"round (function)","page":"/melonJS/docs/melonjs/Math/round.html"},"toBeCloseTo (function)":{"children":{},"title":"toBeCloseTo (function)","page":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"weightedRandom (function)":{"children":{},"title":"weightedRandom (function)","page":"/melonJS/docs/melonjs/Math/weightedRandom.html"}},"title":"Math (namespace)","page":null},"ParticleEmitterSettings (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"}},"title":"ParticleEmitterSettings (namespace)","page":null},"plugin (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/plugin.html"},"Base":{"children":{},"title":"Base","page":"/melonJS/docs/melonjs/plugin/Base.html"},"BasePlugin":{"children":{},"title":"BasePlugin","page":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"get (function)":{"children":{},"title":"get (function)","page":"/melonJS/docs/melonjs/plugin/get.html"},"patch (function)":{"children":{},"title":"patch (function)","page":"/melonJS/docs/melonjs/plugin/patch.html"},"register (function)":{"children":{},"title":"register (function)","page":"/melonJS/docs/melonjs/plugin/register.html"}},"title":"plugin (namespace)","page":null},"pool (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/pool.html"}},"title":"pool (namespace)","page":null},"save (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/save.html"}},"title":"save (namespace)","page":null},"state (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/state.html"}},"title":"state (namespace)","page":null},"timer (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/timer.html"}},"title":"timer (namespace)","page":null},"TMXUtils (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/TMXUtils.html"},"applyTMXProperties (function)":{"children":{},"title":"applyTMXProperties (function)","page":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"decode (function)":{"children":{},"title":"decode (function)","page":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"decodeBase64AsArray (function)":{"children":{},"title":"decodeBase64AsArray (function)","page":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"decodeCSV (function)":{"children":{},"title":"decodeCSV (function)","page":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"decompress (function)":{"children":{},"title":"decompress (function)","page":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"parse (function)":{"children":{},"title":"parse (function)","page":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"setInflateFunction (function)":{"children":{},"title":"setInflateFunction (function)","page":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"}},"title":"TMXUtils (namespace)","page":null},"utils (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils.html"},"checkVersion (function)":{"children":{},"title":"checkVersion (function)","page":"/melonJS/docs/melonjs/utils/checkVersion.html"},"getUriFragment (function)":{"children":{},"title":"getUriFragment (function)","page":"/melonJS/docs/melonjs/utils/getUriFragment.html"}},"title":"utils (namespace)","page":null},"utils.agent (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/agent.html"},"prefixed (function)":{"children":{},"title":"prefixed (function)","page":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"setPrefixed (function)":{"children":{},"title":"setPrefixed (function)","page":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"}},"title":"utils.agent (namespace)","page":null},"utils.array (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/array.html"},"random (function)":{"children":{},"title":"random (function)","page":"/melonJS/docs/melonjs/utils/array/random.html"},"remove (function)":{"children":{},"title":"remove (function)","page":"/melonJS/docs/melonjs/utils/array/remove.html"},"weightedRandom (function)":{"children":{},"title":"weightedRandom (function)","page":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"}},"title":"utils.array (namespace)","page":null},"utils.file (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/file.html"},"getBasename (function)":{"children":{},"title":"getBasename (function)","page":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"getExtension (function)":{"children":{},"title":"getExtension (function)","page":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"getPath (function)":{"children":{},"title":"getPath (function)","page":"/melonJS/docs/melonjs/utils/file/getPath.html"}},"title":"utils.file (namespace)","page":null},"utils.function (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/function.html"},"defer (function)":{"children":{},"title":"defer (function)","page":"/melonJS/docs/melonjs/utils/function/defer.html"},"throttle (function)":{"children":{},"title":"throttle (function)","page":"/melonJS/docs/melonjs/utils/function/throttle.html"}},"title":"utils.function (namespace)","page":null},"utils.string (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/string.html"},"capitalize (function)":{"children":{},"title":"capitalize (function)","page":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"isBoolean (function)":{"children":{},"title":"isBoolean (function)","page":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"isDataUrl (function)":{"children":{},"title":"isDataUrl (function)","page":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"isNumeric (function)":{"children":{},"title":"isNumeric (function)","page":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"toHex (function)":{"children":{},"title":"toHex (function)","page":"/melonJS/docs/melonjs/utils/string/toHex.html"}},"title":"utils.string (namespace)","page":null},"video (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/video.html"},"createCanvas (function)":{"children":{},"title":"createCanvas (function)","page":"/melonJS/docs/melonjs/video/createCanvas.html"},"getParent (function)":{"children":{},"title":"getParent (function)","page":"/melonJS/docs/melonjs/video/getParent.html"},"init (function)":{"children":{},"title":"init (function)","page":"/melonJS/docs/melonjs/video/init.html"}},"title":"video (namespace)","page":null},"Application":{"children":{},"title":"Application","page":"/melonJS/docs/melonjs/Application.html"},"BitmapText":{"children":{},"title":"BitmapText","page":"/melonJS/docs/melonjs/BitmapText.html"},"Body":{"children":{},"title":"Body","page":"/melonJS/docs/melonjs/Body.html"},"Bounds":{"children":{},"title":"Bounds","page":"/melonJS/docs/melonjs/Bounds.html"},"Camera2d":{"children":{},"title":"Camera2d","page":"/melonJS/docs/melonjs/Camera2d.html"},"CanvasRenderer":{"children":{},"title":"CanvasRenderer","page":"/melonJS/docs/melonjs/CanvasRenderer.html"},"CanvasRenderTarget":{"children":{},"title":"CanvasRenderTarget","page":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"CanvasTexture":{"children":{},"title":"CanvasTexture","page":"/melonJS/docs/melonjs/CanvasTexture.html"},"Collectable":{"children":{},"title":"Collectable","page":"/melonJS/docs/melonjs/Collectable.html"},"Color":{"children":{},"title":"Color","page":"/melonJS/docs/melonjs/Color.html"},"ColorLayer":{"children":{},"title":"ColorLayer","page":"/melonJS/docs/melonjs/ColorLayer.html"},"Compositor":{"children":{},"title":"Compositor","page":"/melonJS/docs/melonjs/Compositor.html"},"Container":{"children":{},"title":"Container","page":"/melonJS/docs/melonjs/Container.html"},"Detector":{"children":{},"title":"Detector","page":"/melonJS/docs/melonjs/Detector.html"},"Draggable":{"children":{},"title":"Draggable","page":"/melonJS/docs/melonjs/Draggable.html"},"DraggableEntity":{"children":{},"title":"DraggableEntity","page":"/melonJS/docs/melonjs/DraggableEntity.html"},"DropTarget":{"children":{},"title":"DropTarget","page":"/melonJS/docs/melonjs/DropTarget.html"},"DroptargetEntity":{"children":{},"title":"DroptargetEntity","page":"/melonJS/docs/melonjs/DroptargetEntity.html"},"Ellipse":{"children":{},"title":"Ellipse","page":"/melonJS/docs/melonjs/Ellipse.html"},"Entity":{"children":{},"title":"Entity","page":"/melonJS/docs/melonjs/Entity.html"},"GLShader":{"children":{},"title":"GLShader","page":"/melonJS/docs/melonjs/GLShader.html"},"GUI_Object":{"children":{},"title":"GUI_Object","page":"/melonJS/docs/melonjs/GUI_Object.html"},"ImageLayer":{"children":{},"title":"ImageLayer","page":"/melonJS/docs/melonjs/ImageLayer.html"},"Light2d":{"children":{},"title":"Light2d","page":"/melonJS/docs/melonjs/Light2d.html"},"Line":{"children":{},"title":"Line","page":"/melonJS/docs/melonjs/Line.html"},"Matrix2d":{"children":{},"title":"Matrix2d","page":"/melonJS/docs/melonjs/Matrix2d.html"},"Matrix3d":{"children":{},"title":"Matrix3d","page":"/melonJS/docs/melonjs/Matrix3d.html"},"NineSliceSprite":{"children":{},"title":"NineSliceSprite","page":"/melonJS/docs/melonjs/NineSliceSprite.html"},"ObjectPool":{"children":{},"title":"ObjectPool","page":"/melonJS/docs/melonjs/ObjectPool.html"},"ObservableVector2d":{"children":{},"title":"ObservableVector2d","page":"/melonJS/docs/melonjs/ObservableVector2d.html"},"ObservableVector3d":{"children":{},"title":"ObservableVector3d","page":"/melonJS/docs/melonjs/ObservableVector3d.html"},"Particle":{"children":{},"title":"Particle","page":"/melonJS/docs/melonjs/Particle.html"},"ParticleEmitter":{"children":{},"title":"ParticleEmitter","page":"/melonJS/docs/melonjs/ParticleEmitter.html"},"Path2D":{"children":{},"title":"Path2D","page":"/melonJS/docs/melonjs/Path2D.html"},"Point":{"children":{},"title":"Point","page":"/melonJS/docs/melonjs/Point.html"},"Pointer":{"children":{},"title":"Pointer","page":"/melonJS/docs/melonjs/Pointer.html"},"Polygon":{"children":{},"title":"Polygon","page":"/melonJS/docs/melonjs/Polygon.html"},"PrimitiveCompositor":{"children":{},"title":"PrimitiveCompositor","page":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"QuadCompositor":{"children":{},"title":"QuadCompositor","page":"/melonJS/docs/melonjs/QuadCompositor.html"},"QuadTree":{"children":{},"title":"QuadTree","page":"/melonJS/docs/melonjs/QuadTree.html"},"Rect":{"children":{},"title":"Rect","page":"/melonJS/docs/melonjs/Rect.html"},"Renderable":{"children":{},"title":"Renderable","page":"/melonJS/docs/melonjs/Renderable.html"},"Renderer":{"children":{},"title":"Renderer","page":"/melonJS/docs/melonjs/Renderer.html"},"Renderer.getHeight":{"children":{},"title":"Renderer.getHeight","page":"/melonJS/docs/melonjs/Renderer/getHeight.html"},"Renderer.getWidth":{"children":{},"title":"Renderer.getWidth","page":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"Renderer.Texture":{"children":{},"title":"Renderer.Texture","page":"/melonJS/docs/melonjs/Renderer/Texture.html"},"ResponseObject":{"children":{},"title":"ResponseObject","page":"/melonJS/docs/melonjs/ResponseObject.html"},"RoundRect":{"children":{},"title":"RoundRect","page":"/melonJS/docs/melonjs/RoundRect.html"},"Sprite":{"children":{},"title":"Sprite","page":"/melonJS/docs/melonjs/Sprite.html"},"Stage":{"children":{},"title":"Stage","page":"/melonJS/docs/melonjs/Stage.html"},"Text":{"children":{},"title":"Text","page":"/melonJS/docs/melonjs/Text.html"},"TextMetrics":{"children":{},"title":"TextMetrics","page":"/melonJS/docs/melonjs/TextMetrics.html"},"TextureAtlas":{"children":{},"title":"TextureAtlas","page":"/melonJS/docs/melonjs/TextureAtlas.html"},"Tile":{"children":{},"title":"Tile","page":"/melonJS/docs/melonjs/Tile.html"},"Timer":{"children":{},"title":"Timer","page":"/melonJS/docs/melonjs/Timer_.html"},"TMXHexagonalRenderer":{"children":{},"title":"TMXHexagonalRenderer","page":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"TMXIsometricRenderer":{"children":{},"title":"TMXIsometricRenderer","page":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"TMXLayer":{"children":{},"title":"TMXLayer","page":"/melonJS/docs/melonjs/TMXLayer.html"},"TMXOrthogonalRenderer":{"children":{},"title":"TMXOrthogonalRenderer","page":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"TMXRenderer":{"children":{},"title":"TMXRenderer","page":"/melonJS/docs/melonjs/TMXRenderer.html"},"TMXStaggeredRenderer":{"children":{},"title":"TMXStaggeredRenderer","page":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"TMXTileMap":{"children":{},"title":"TMXTileMap","page":"/melonJS/docs/melonjs/TMXTileMap.html"},"TMXTileset":{"children":{},"title":"TMXTileset","page":"/melonJS/docs/melonjs/TMXTileset.html"},"TMXTilesetGroup":{"children":{},"title":"TMXTilesetGroup","page":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"Trigger":{"children":{},"title":"Trigger","page":"/melonJS/docs/melonjs/Trigger.html"},"Tween":{"children":{},"title":"Tween","page":"/melonJS/docs/melonjs/Tween.html"},"UIBaseElement":{"children":{},"title":"UIBaseElement","page":"/melonJS/docs/melonjs/UIBaseElement.html"},"UISpriteElement":{"children":{},"title":"UISpriteElement","page":"/melonJS/docs/melonjs/UISpriteElement.html"},"UITextButton":{"children":{},"title":"UITextButton","page":"/melonJS/docs/melonjs/UITextButton.html"},"Vector2d":{"children":{},"title":"Vector2d","page":"/melonJS/docs/melonjs/Vector2d.html"},"Vector3d":{"children":{},"title":"Vector3d","page":"/melonJS/docs/melonjs/Vector3d.html"},"WebGLRenderer":{"children":{},"title":"WebGLRenderer","page":"/melonJS/docs/melonjs/WebGLRenderer.html"},"World":{"children":{},"title":"World","page":"/melonJS/docs/melonjs/World.html"},"Application.Settings":{"children":{},"title":"Application.Settings","page":"/melonJS/docs/melonjs/Application/Settings.html"},"Camera2d.AXIS (enum)":{"children":{},"title":"Camera2d.AXIS (enum)","page":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"Tween.Easing (enum)":{"children":{},"title":"Tween.Easing (enum)","page":"/melonJS/docs/melonjs/Tween/Easing.html"},"Tween.Interpolation (enum)":{"children":{},"title":"Tween.Interpolation (enum)","page":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"boot (function)":{"children":{},"title":"boot (function)","page":"/melonJS/docs/melonjs/boot.html"},"consoleHeader (function)":{"children":{},"title":"consoleHeader (function)","page":"/melonJS/docs/melonjs/consoleHeader.html"},"warning (function)":{"children":{},"title":"warning (function)","page":"/melonJS/docs/melonjs/warning.html"}},"title":"","page":null} \ No newline at end of file +{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/index.html"},"ClassIndex":{"title":"Class Index","page":"/melonJS/docs/Class-Index.html"},"audio (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/audio.html"},"disable (function)":{"children":{},"title":"disable (function)","page":"/melonJS/docs/melonjs/audio/disable.html"},"enable (function)":{"children":{},"title":"enable (function)","page":"/melonJS/docs/melonjs/audio/enable.html"},"fade (function)":{"children":{},"title":"fade (function)","page":"/melonJS/docs/melonjs/audio/fade.html"},"getCurrentTrack (function)":{"children":{},"title":"getCurrentTrack (function)","page":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"getVolume (function)":{"children":{},"title":"getVolume (function)","page":"/melonJS/docs/melonjs/audio/getVolume.html"},"hasAudio (function)":{"children":{},"title":"hasAudio (function)","page":"/melonJS/docs/melonjs/audio/hasAudio.html"},"hasFormat (function)":{"children":{},"title":"hasFormat (function)","page":"/melonJS/docs/melonjs/audio/hasFormat.html"},"init (function)":{"children":{},"title":"init (function)","page":"/melonJS/docs/melonjs/audio/init.html"},"load (function)":{"children":{},"title":"load (function)","page":"/melonJS/docs/melonjs/audio/load.html"},"mute (function)":{"children":{},"title":"mute (function)","page":"/melonJS/docs/melonjs/audio/mute.html"},"muteAll (function)":{"children":{},"title":"muteAll (function)","page":"/melonJS/docs/melonjs/audio/muteAll.html"},"muted (function)":{"children":{},"title":"muted (function)","page":"/melonJS/docs/melonjs/audio/muted.html"},"orientation (function)":{"children":{},"title":"orientation (function)","page":"/melonJS/docs/melonjs/audio/orientation.html"},"panner (function)":{"children":{},"title":"panner (function)","page":"/melonJS/docs/melonjs/audio/panner.html"},"pause (function)":{"children":{},"title":"pause (function)","page":"/melonJS/docs/melonjs/audio/pause.html"},"pauseTrack (function)":{"children":{},"title":"pauseTrack (function)","page":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"play (function)":{"children":{},"title":"play (function)","page":"/melonJS/docs/melonjs/audio/play.html"},"playTrack (function)":{"children":{},"title":"playTrack (function)","page":"/melonJS/docs/melonjs/audio/playTrack.html"},"position (function)":{"children":{},"title":"position (function)","page":"/melonJS/docs/melonjs/audio/position.html"},"rate (function)":{"children":{},"title":"rate (function)","page":"/melonJS/docs/melonjs/audio/rate.html"},"resume (function)":{"children":{},"title":"resume (function)","page":"/melonJS/docs/melonjs/audio/resume.html"},"resumeTrack (function)":{"children":{},"title":"resumeTrack (function)","page":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"seek (function)":{"children":{},"title":"seek (function)","page":"/melonJS/docs/melonjs/audio/seek.html"},"setVolume (function)":{"children":{},"title":"setVolume (function)","page":"/melonJS/docs/melonjs/audio/setVolume.html"},"stereo (function)":{"children":{},"title":"stereo (function)","page":"/melonJS/docs/melonjs/audio/stereo.html"},"stop (function)":{"children":{},"title":"stop (function)","page":"/melonJS/docs/melonjs/audio/stop.html"},"stopTrack (function)":{"children":{},"title":"stopTrack (function)","page":"/melonJS/docs/melonjs/audio/stopTrack.html"},"unload (function)":{"children":{},"title":"unload (function)","page":"/melonJS/docs/melonjs/audio/unload.html"},"unloadAll (function)":{"children":{},"title":"unloadAll (function)","page":"/melonJS/docs/melonjs/audio/unloadAll.html"},"unmute (function)":{"children":{},"title":"unmute (function)","page":"/melonJS/docs/melonjs/audio/unmute.html"},"unmuteAll (function)":{"children":{},"title":"unmuteAll (function)","page":"/melonJS/docs/melonjs/audio/unmuteAll.html"}},"title":"audio (namespace)","page":null},"collision (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/collision.html"},"types (enum)":{"children":{},"title":"types (enum)","page":"/melonJS/docs/melonjs/collision/types.html"}},"title":"collision (namespace)","page":null},"device (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/device.html"},"enableSwipe (function)":{"children":{},"title":"enableSwipe (function)","page":"/melonJS/docs/melonjs/device/enableSwipe.html"},"exitFullscreen (function)":{"children":{},"title":"exitFullscreen (function)","page":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"focus (function)":{"children":{},"title":"focus (function)","page":"/melonJS/docs/melonjs/device/focus.html"},"getElement (function)":{"children":{},"title":"getElement (function)","page":"/melonJS/docs/melonjs/device/getElement.html"},"getElementBounds (function)":{"children":{},"title":"getElementBounds (function)","page":"/melonJS/docs/melonjs/device/getElementBounds.html"},"getParentBounds (function)":{"children":{},"title":"getParentBounds (function)","page":"/melonJS/docs/melonjs/device/getParentBounds.html"},"getParentElement (function)":{"children":{},"title":"getParentElement (function)","page":"/melonJS/docs/melonjs/device/getParentElement.html"},"getScreenOrientation (function)":{"children":{},"title":"getScreenOrientation (function)","page":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"getStorage (function)":{"children":{},"title":"getStorage (function)","page":"/melonJS/docs/melonjs/device/getStorage.html"},"hasVideoFormat (function)":{"children":{},"title":"hasVideoFormat (function)","page":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"isFullscreen (function)":{"children":{},"title":"isFullscreen (function)","page":"/melonJS/docs/melonjs/device/isFullscreen.html"},"isLandscape (function)":{"children":{},"title":"isLandscape (function)","page":"/melonJS/docs/melonjs/device/isLandscape.html"},"isPortrait (function)":{"children":{},"title":"isPortrait (function)","page":"/melonJS/docs/melonjs/device/isPortrait.html"},"isWebGLSupported (function)":{"children":{},"title":"isWebGLSupported (function)","page":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"lockOrientation (function)":{"children":{},"title":"lockOrientation (function)","page":"/melonJS/docs/melonjs/device/lockOrientation.html"},"onReady (function)":{"children":{},"title":"onReady (function)","page":"/melonJS/docs/melonjs/device/onReady.html"},"requestFullscreen (function)":{"children":{},"title":"requestFullscreen (function)","page":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"unlockOrientation (function)":{"children":{},"title":"unlockOrientation (function)","page":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"unwatchAccelerometer (function)":{"children":{},"title":"unwatchAccelerometer (function)","page":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"unwatchDeviceOrientation (function)":{"children":{},"title":"unwatchDeviceOrientation (function)","page":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"vibrate (function)":{"children":{},"title":"vibrate (function)","page":"/melonJS/docs/melonjs/device/vibrate.html"},"watchAccelerometer (function)":{"children":{},"title":"watchAccelerometer (function)","page":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"watchDeviceOrientation (function)":{"children":{},"title":"watchDeviceOrientation (function)","page":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"}},"title":"device (namespace)","page":null},"device.platform (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/device/platform.html"}},"title":"device.platform (namespace)","page":null},"event (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/event.html"},"emit (function)":{"children":{},"title":"emit (function)","page":"/melonJS/docs/melonjs/event/emit.html"},"off (function)":{"children":{},"title":"off (function)","page":"/melonJS/docs/melonjs/event/off.html"},"on (function)":{"children":{},"title":"on (function)","page":"/melonJS/docs/melonjs/event/on.html"},"once (function)":{"children":{},"title":"once (function)","page":"/melonJS/docs/melonjs/event/once.html"}},"title":"event (namespace)","page":null},"game (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/game.html"}},"title":"game (namespace)","page":null},"input (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/input.html"},"KEY (enum)":{"children":{},"title":"KEY (enum)","page":"/melonJS/docs/melonjs/input/KEY.html"},"bindGamepad (function)":{"children":{},"title":"bindGamepad (function)","page":"/melonJS/docs/melonjs/input/bindGamepad.html"},"bindKey (function)":{"children":{},"title":"bindKey (function)","page":"/melonJS/docs/melonjs/input/bindKey.html"},"bindPointer (function)":{"children":{},"title":"bindPointer (function)","page":"/melonJS/docs/melonjs/input/bindPointer.html"},"exitPointerLock (function)":{"children":{},"title":"exitPointerLock (function)","page":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"getBindingKey (function)":{"children":{},"title":"getBindingKey (function)","page":"/melonJS/docs/melonjs/input/getBindingKey.html"},"globalToLocal (function)":{"children":{},"title":"globalToLocal (function)","page":"/melonJS/docs/melonjs/input/globalToLocal.html"},"hasActiveEvents (function)":{"children":{},"title":"hasActiveEvents (function)","page":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"hasRegisteredEvents (function)":{"children":{},"title":"hasRegisteredEvents (function)","page":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"isKeyPressed (function)":{"children":{},"title":"isKeyPressed (function)","page":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"keyStatus (function)":{"children":{},"title":"keyStatus (function)","page":"/melonJS/docs/melonjs/input/keyStatus.html"},"registerPointerEvent (function)":{"children":{},"title":"registerPointerEvent (function)","page":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"releaseAllPointerEvents (function)":{"children":{},"title":"releaseAllPointerEvents (function)","page":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"releasePointerEvent (function)":{"children":{},"title":"releasePointerEvent (function)","page":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"requestPointerLock (function)":{"children":{},"title":"requestPointerLock (function)","page":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"setGamepadDeadzone (function)":{"children":{},"title":"setGamepadDeadzone (function)","page":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"setTouchAction (function)":{"children":{},"title":"setTouchAction (function)","page":"/melonJS/docs/melonjs/input/setTouchAction.html"},"triggerKeyEvent (function)":{"children":{},"title":"triggerKeyEvent (function)","page":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"unbindGamepad (function)":{"children":{},"title":"unbindGamepad (function)","page":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"unbindKey (function)":{"children":{},"title":"unbindKey (function)","page":"/melonJS/docs/melonjs/input/unbindKey.html"},"unbindPointer (function)":{"children":{},"title":"unbindPointer (function)","page":"/melonJS/docs/melonjs/input/unbindPointer.html"},"unlockKey (function)":{"children":{},"title":"unlockKey (function)","page":"/melonJS/docs/melonjs/input/unlockKey.html"}},"title":"input (namespace)","page":null},"input.GAMEPAD (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"AXES (enum)":{"children":{},"title":"AXES (enum)","page":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"BUTTONS (enum)":{"children":{},"title":"BUTTONS (enum)","page":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"}},"title":"input.GAMEPAD (namespace)","page":null},"level (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/level.html"}},"title":"level (namespace)","page":null},"loader (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/loader.html"},"Asset":{"children":{},"title":"Asset","page":"/melonJS/docs/melonjs/loader/Asset.html"},"getBinary (function)":{"children":{},"title":"getBinary (function)","page":"/melonJS/docs/melonjs/loader/getBinary.html"},"getFont (function)":{"children":{},"title":"getFont (function)","page":"/melonJS/docs/melonjs/loader/getFont.html"},"getImage (function)":{"children":{},"title":"getImage (function)","page":"/melonJS/docs/melonjs/loader/getImage.html"},"getJSON (function)":{"children":{},"title":"getJSON (function)","page":"/melonJS/docs/melonjs/loader/getJSON.html"},"getTMX (function)":{"children":{},"title":"getTMX (function)","page":"/melonJS/docs/melonjs/loader/getTMX.html"},"getVideo (function)":{"children":{},"title":"getVideo (function)","page":"/melonJS/docs/melonjs/loader/getVideo.html"},"load (function)":{"children":{},"title":"load (function)","page":"/melonJS/docs/melonjs/loader/load.html"},"preload (function)":{"children":{},"title":"preload (function)","page":"/melonJS/docs/melonjs/loader/preload.html"},"reload (function)":{"children":{},"title":"reload (function)","page":"/melonJS/docs/melonjs/loader/reload.html"},"setBaseURL (function)":{"children":{},"title":"setBaseURL (function)","page":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"setOptions (function)":{"children":{},"title":"setOptions (function)","page":"/melonJS/docs/melonjs/loader/setOptions.html"},"setParser (function)":{"children":{},"title":"setParser (function)","page":"/melonJS/docs/melonjs/loader/setParser.html"},"unload (function)":{"children":{},"title":"unload (function)","page":"/melonJS/docs/melonjs/loader/unload.html"},"unloadAll (function)":{"children":{},"title":"unloadAll (function)","page":"/melonJS/docs/melonjs/loader/unloadAll.html"}},"title":"loader (namespace)","page":null},"Math (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/Math.html"},"clamp (function)":{"children":{},"title":"clamp (function)","page":"/melonJS/docs/melonjs/Math/clamp.html"},"degToRad (function)":{"children":{},"title":"degToRad (function)","page":"/melonJS/docs/melonjs/Math/degToRad.html"},"isPowerOfFour (function)":{"children":{},"title":"isPowerOfFour (function)","page":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"isPowerOfTwo (function)":{"children":{},"title":"isPowerOfTwo (function)","page":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"nextPowerOfTwo (function)":{"children":{},"title":"nextPowerOfTwo (function)","page":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"pow (function)":{"children":{},"title":"pow (function)","page":"/melonJS/docs/melonjs/Math/pow.html"},"radToDeg (function)":{"children":{},"title":"radToDeg (function)","page":"/melonJS/docs/melonjs/Math/radToDeg.html"},"random (function)":{"children":{},"title":"random (function)","page":"/melonJS/docs/melonjs/Math/random.html"},"randomFloat (function)":{"children":{},"title":"randomFloat (function)","page":"/melonJS/docs/melonjs/Math/randomFloat.html"},"round (function)":{"children":{},"title":"round (function)","page":"/melonJS/docs/melonjs/Math/round.html"},"toBeCloseTo (function)":{"children":{},"title":"toBeCloseTo (function)","page":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"weightedRandom (function)":{"children":{},"title":"weightedRandom (function)","page":"/melonJS/docs/melonjs/Math/weightedRandom.html"}},"title":"Math (namespace)","page":null},"ParticleEmitterSettings (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"}},"title":"ParticleEmitterSettings (namespace)","page":null},"plugin (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/plugin.html"},"Base":{"children":{},"title":"Base","page":"/melonJS/docs/melonjs/plugin/Base.html"},"BasePlugin":{"children":{},"title":"BasePlugin","page":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"get (function)":{"children":{},"title":"get (function)","page":"/melonJS/docs/melonjs/plugin/get.html"},"patch (function)":{"children":{},"title":"patch (function)","page":"/melonJS/docs/melonjs/plugin/patch.html"},"register (function)":{"children":{},"title":"register (function)","page":"/melonJS/docs/melonjs/plugin/register.html"}},"title":"plugin (namespace)","page":null},"pool (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/pool.html"}},"title":"pool (namespace)","page":null},"save (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/save.html"}},"title":"save (namespace)","page":null},"state (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/state.html"}},"title":"state (namespace)","page":null},"timer (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/timer.html"}},"title":"timer (namespace)","page":null},"TMXUtils (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/TMXUtils.html"},"applyTMXProperties (function)":{"children":{},"title":"applyTMXProperties (function)","page":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"decode (function)":{"children":{},"title":"decode (function)","page":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"decodeBase64AsArray (function)":{"children":{},"title":"decodeBase64AsArray (function)","page":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"decodeCSV (function)":{"children":{},"title":"decodeCSV (function)","page":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"decompress (function)":{"children":{},"title":"decompress (function)","page":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"parse (function)":{"children":{},"title":"parse (function)","page":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"setInflateFunction (function)":{"children":{},"title":"setInflateFunction (function)","page":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"}},"title":"TMXUtils (namespace)","page":null},"utils (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils.html"},"checkVersion (function)":{"children":{},"title":"checkVersion (function)","page":"/melonJS/docs/melonjs/utils/checkVersion.html"},"getUriFragment (function)":{"children":{},"title":"getUriFragment (function)","page":"/melonJS/docs/melonjs/utils/getUriFragment.html"}},"title":"utils (namespace)","page":null},"utils.agent (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/agent.html"},"prefixed (function)":{"children":{},"title":"prefixed (function)","page":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"setPrefixed (function)":{"children":{},"title":"setPrefixed (function)","page":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"}},"title":"utils.agent (namespace)","page":null},"utils.array (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/array.html"},"random (function)":{"children":{},"title":"random (function)","page":"/melonJS/docs/melonjs/utils/array/random.html"},"remove (function)":{"children":{},"title":"remove (function)","page":"/melonJS/docs/melonjs/utils/array/remove.html"},"weightedRandom (function)":{"children":{},"title":"weightedRandom (function)","page":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"}},"title":"utils.array (namespace)","page":null},"utils.file (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/file.html"},"getBasename (function)":{"children":{},"title":"getBasename (function)","page":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"getExtension (function)":{"children":{},"title":"getExtension (function)","page":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"getPath (function)":{"children":{},"title":"getPath (function)","page":"/melonJS/docs/melonjs/utils/file/getPath.html"}},"title":"utils.file (namespace)","page":null},"utils.function (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/function.html"},"defer (function)":{"children":{},"title":"defer (function)","page":"/melonJS/docs/melonjs/utils/function/defer.html"},"throttle (function)":{"children":{},"title":"throttle (function)","page":"/melonJS/docs/melonjs/utils/function/throttle.html"}},"title":"utils.function (namespace)","page":null},"utils.string (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/utils/string.html"},"capitalize (function)":{"children":{},"title":"capitalize (function)","page":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"isBoolean (function)":{"children":{},"title":"isBoolean (function)","page":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"isDataUrl (function)":{"children":{},"title":"isDataUrl (function)","page":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"isNumeric (function)":{"children":{},"title":"isNumeric (function)","page":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"toHex (function)":{"children":{},"title":"toHex (function)","page":"/melonJS/docs/melonjs/utils/string/toHex.html"}},"title":"utils.string (namespace)","page":null},"video (namespace)":{"children":{"(overview)":{"title":"(overview)","page":"/melonJS/docs/melonjs/video.html"},"createCanvas (function)":{"children":{},"title":"createCanvas (function)","page":"/melonJS/docs/melonjs/video/createCanvas.html"},"getParent (function)":{"children":{},"title":"getParent (function)","page":"/melonJS/docs/melonjs/video/getParent.html"},"init (function)":{"children":{},"title":"init (function)","page":"/melonJS/docs/melonjs/video/init.html"}},"title":"video (namespace)","page":null},"Application":{"children":{},"title":"Application","page":"/melonJS/docs/melonjs/Application.html"},"BitmapText":{"children":{},"title":"BitmapText","page":"/melonJS/docs/melonjs/BitmapText.html"},"Body":{"children":{},"title":"Body","page":"/melonJS/docs/melonjs/Body.html"},"Bounds":{"children":{},"title":"Bounds","page":"/melonJS/docs/melonjs/Bounds.html"},"Camera2d":{"children":{},"title":"Camera2d","page":"/melonJS/docs/melonjs/Camera2d.html"},"CanvasRenderer":{"children":{},"title":"CanvasRenderer","page":"/melonJS/docs/melonjs/CanvasRenderer.html"},"CanvasRenderTarget":{"children":{},"title":"CanvasRenderTarget","page":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"CanvasTexture":{"children":{},"title":"CanvasTexture","page":"/melonJS/docs/melonjs/CanvasTexture.html"},"Collectable":{"children":{},"title":"Collectable","page":"/melonJS/docs/melonjs/Collectable.html"},"Color":{"children":{},"title":"Color","page":"/melonJS/docs/melonjs/Color.html"},"ColorLayer":{"children":{},"title":"ColorLayer","page":"/melonJS/docs/melonjs/ColorLayer.html"},"Compositor":{"children":{},"title":"Compositor","page":"/melonJS/docs/melonjs/Compositor.html"},"Container":{"children":{},"title":"Container","page":"/melonJS/docs/melonjs/Container.html"},"Detector":{"children":{},"title":"Detector","page":"/melonJS/docs/melonjs/Detector.html"},"Draggable":{"children":{},"title":"Draggable","page":"/melonJS/docs/melonjs/Draggable.html"},"DraggableEntity":{"children":{},"title":"DraggableEntity","page":"/melonJS/docs/melonjs/DraggableEntity.html"},"DropTarget":{"children":{},"title":"DropTarget","page":"/melonJS/docs/melonjs/DropTarget.html"},"DroptargetEntity":{"children":{},"title":"DroptargetEntity","page":"/melonJS/docs/melonjs/DroptargetEntity.html"},"Ellipse":{"children":{},"title":"Ellipse","page":"/melonJS/docs/melonjs/Ellipse.html"},"Entity":{"children":{},"title":"Entity","page":"/melonJS/docs/melonjs/Entity.html"},"GLShader":{"children":{},"title":"GLShader","page":"/melonJS/docs/melonjs/GLShader.html"},"GUI_Object":{"children":{},"title":"GUI_Object","page":"/melonJS/docs/melonjs/GUI_Object.html"},"ImageLayer":{"children":{},"title":"ImageLayer","page":"/melonJS/docs/melonjs/ImageLayer.html"},"Light2d":{"children":{},"title":"Light2d","page":"/melonJS/docs/melonjs/Light2d.html"},"Line":{"children":{},"title":"Line","page":"/melonJS/docs/melonjs/Line.html"},"Matrix2d":{"children":{},"title":"Matrix2d","page":"/melonJS/docs/melonjs/Matrix2d.html"},"Matrix3d":{"children":{},"title":"Matrix3d","page":"/melonJS/docs/melonjs/Matrix3d.html"},"NineSliceSprite":{"children":{},"title":"NineSliceSprite","page":"/melonJS/docs/melonjs/NineSliceSprite.html"},"ObjectPool":{"children":{},"title":"ObjectPool","page":"/melonJS/docs/melonjs/ObjectPool.html"},"ObservableVector2d":{"children":{},"title":"ObservableVector2d","page":"/melonJS/docs/melonjs/ObservableVector2d.html"},"ObservableVector3d":{"children":{},"title":"ObservableVector3d","page":"/melonJS/docs/melonjs/ObservableVector3d.html"},"Particle":{"children":{},"title":"Particle","page":"/melonJS/docs/melonjs/Particle.html"},"ParticleEmitter":{"children":{},"title":"ParticleEmitter","page":"/melonJS/docs/melonjs/ParticleEmitter.html"},"Path2D":{"children":{},"title":"Path2D","page":"/melonJS/docs/melonjs/Path2D.html"},"Point":{"children":{},"title":"Point","page":"/melonJS/docs/melonjs/Point.html"},"Pointer":{"children":{},"title":"Pointer","page":"/melonJS/docs/melonjs/Pointer.html"},"Polygon":{"children":{},"title":"Polygon","page":"/melonJS/docs/melonjs/Polygon.html"},"PrimitiveCompositor":{"children":{},"title":"PrimitiveCompositor","page":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"QuadCompositor":{"children":{},"title":"QuadCompositor","page":"/melonJS/docs/melonjs/QuadCompositor.html"},"QuadTree":{"children":{},"title":"QuadTree","page":"/melonJS/docs/melonjs/QuadTree.html"},"Rect":{"children":{},"title":"Rect","page":"/melonJS/docs/melonjs/Rect.html"},"Renderable":{"children":{},"title":"Renderable","page":"/melonJS/docs/melonjs/Renderable.html"},"Renderer":{"children":{},"title":"Renderer","page":"/melonJS/docs/melonjs/Renderer.html"},"Renderer.getWidth":{"children":{},"title":"Renderer.getWidth","page":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"Renderer.Texture":{"children":{},"title":"Renderer.Texture","page":"/melonJS/docs/melonjs/Renderer/Texture.html"},"ResponseObject":{"children":{},"title":"ResponseObject","page":"/melonJS/docs/melonjs/ResponseObject.html"},"RoundRect":{"children":{},"title":"RoundRect","page":"/melonJS/docs/melonjs/RoundRect.html"},"Sprite":{"children":{},"title":"Sprite","page":"/melonJS/docs/melonjs/Sprite.html"},"Stage":{"children":{},"title":"Stage","page":"/melonJS/docs/melonjs/Stage.html"},"Text":{"children":{},"title":"Text","page":"/melonJS/docs/melonjs/Text.html"},"TextMetrics":{"children":{},"title":"TextMetrics","page":"/melonJS/docs/melonjs/TextMetrics.html"},"TextureAtlas":{"children":{},"title":"TextureAtlas","page":"/melonJS/docs/melonjs/TextureAtlas.html"},"Tile":{"children":{},"title":"Tile","page":"/melonJS/docs/melonjs/Tile.html"},"Timer":{"children":{},"title":"Timer","page":"/melonJS/docs/melonjs/Timer_.html"},"TMXHexagonalRenderer":{"children":{},"title":"TMXHexagonalRenderer","page":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"TMXIsometricRenderer":{"children":{},"title":"TMXIsometricRenderer","page":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"TMXLayer":{"children":{},"title":"TMXLayer","page":"/melonJS/docs/melonjs/TMXLayer.html"},"TMXOrthogonalRenderer":{"children":{},"title":"TMXOrthogonalRenderer","page":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"TMXRenderer":{"children":{},"title":"TMXRenderer","page":"/melonJS/docs/melonjs/TMXRenderer.html"},"TMXStaggeredRenderer":{"children":{},"title":"TMXStaggeredRenderer","page":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"TMXTileMap":{"children":{},"title":"TMXTileMap","page":"/melonJS/docs/melonjs/TMXTileMap.html"},"TMXTileset":{"children":{},"title":"TMXTileset","page":"/melonJS/docs/melonjs/TMXTileset.html"},"TMXTilesetGroup":{"children":{},"title":"TMXTilesetGroup","page":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"Trigger":{"children":{},"title":"Trigger","page":"/melonJS/docs/melonjs/Trigger.html"},"Tween":{"children":{},"title":"Tween","page":"/melonJS/docs/melonjs/Tween.html"},"UIBaseElement":{"children":{},"title":"UIBaseElement","page":"/melonJS/docs/melonjs/UIBaseElement.html"},"UISpriteElement":{"children":{},"title":"UISpriteElement","page":"/melonJS/docs/melonjs/UISpriteElement.html"},"UITextButton":{"children":{},"title":"UITextButton","page":"/melonJS/docs/melonjs/UITextButton.html"},"Vector2d":{"children":{},"title":"Vector2d","page":"/melonJS/docs/melonjs/Vector2d.html"},"Vector3d":{"children":{},"title":"Vector3d","page":"/melonJS/docs/melonjs/Vector3d.html"},"WebGLRenderer":{"children":{},"title":"WebGLRenderer","page":"/melonJS/docs/melonjs/WebGLRenderer.html"},"World":{"children":{},"title":"World","page":"/melonJS/docs/melonjs/World.html"},"Camera2d.AXIS (enum)":{"children":{},"title":"Camera2d.AXIS (enum)","page":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"Tween.Easing (enum)":{"children":{},"title":"Tween.Easing (enum)","page":"/melonJS/docs/melonjs/Tween/Easing.html"},"Tween.Interpolation (enum)":{"children":{},"title":"Tween.Interpolation (enum)","page":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"ApplicationSettings":{"children":{},"title":"ApplicationSettings","page":"/melonJS/docs/melonjs/ApplicationSettings.html"},"boot (function)":{"children":{},"title":"boot (function)","page":"/melonJS/docs/melonjs/boot.html"},"consoleHeader (function)":{"children":{},"title":"consoleHeader (function)","page":"/melonJS/docs/melonjs/consoleHeader.html"},"warning (function)":{"children":{},"title":"warning (function)","page":"/melonJS/docs/melonjs/warning.html"}},"title":"","page":null} \ No newline at end of file diff --git a/docs/docs/index.html b/docs/docs/index.html index d78e3ad82..4d4fdc2f2 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs.api.json b/docs/docs/melonjs.api.json index d71057dd0..93cfa6374 100644 --- a/docs/docs/melonjs.api.json +++ b/docs/docs/melonjs.api.json @@ -1 +1 @@ -{"version":"1.0.0","metadata":{"linker":"(unsigned)","siteRoot":"melonJS/docs"},"root":{"id":"root-_broBkHuUegAaczMohNo_","name":"","type":"RootDoc","members":[{"id":"ZORo4ArMeMqxX7qMP64WW","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"S95XJRmEBp5wLaI6oaFwQ","name":"stopOnAudioError","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

Specify either to stop on audio loading error or not
\nif true, melonJS will throw an exception and stop loading
\nif ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NfGdZhYg3w2KPxopmcnW2","name":"disable","brief":"","type":"FunctionDoc","description":"

disable audio output

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"htdrkfMpo_2I9G9OX4GnB","name":"enable","brief":"","see":["audio.disable"],"type":"FunctionDoc","description":"

enable audio output
\nonly useful if audio supported and previously disabled through

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BgITnPux_0UPZUSm9JEgq","name":"fade","brief":"","type":"FunctionDoc","description":"

Fade a currently playing sound between two volumee.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"from","optional":false,"description":"

Volume to fade from (0.0 to 1.0).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"to","optional":false,"description":"

Volume to fade to (0.0 to 1.0).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

Time in milliseconds to fade.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will fade.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1I6u0pSUbZEYyY9F3ze0Z","name":"getCurrentTrack","brief":"","type":"FunctionDoc","description":"

returns the current track Id

","params":[],"returns":[{"description":"

audio track name

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"ZSza4w7J3K84gdsVV2R-0","name":"getVolume","brief":"","type":"FunctionDoc","description":"

get the default global volume

","params":[],"returns":[{"description":"

current volume value in Float [0.0 - 1.0] .

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mDHUhBvkXlVBYBC74OSwy","name":"hasAudio","brief":"","type":"FunctionDoc","description":"

check if audio (HTML5 or WebAudio) is supported

","params":[],"returns":[{"description":"

return true if audio (HTML5 or WebAudio) is supported

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"V-id07bT_4819jWGOvz6b","name":"hasFormat","brief":"","type":"FunctionDoc","description":"

check if the given audio format is supported

","params":[{"identifier":"codec","optional":false,"description":"

the audio format to check for support

","dataType":{"tokens":[{"value":"\"mp3\" | \"mpeg\" | \"opus\" | \"ogg\" | \"oga\" | \"wav\" | \"aac\" | \"caf\" | \"m4a\" | \"m4b\" | \"mp4\" | \"weba\" | \"webm\" | \"dolby\" | \"flac\"","kind":"canonical"},{"value":"\"mp3\"","kind":"canonical"},{"value":"\"mpeg\"","kind":"canonical"},{"value":"\"opus\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"oga\"","kind":"canonical"},{"value":"\"wav\"","kind":"canonical"},{"value":"\"aac\"","kind":"canonical"},{"value":"\"caf\"","kind":"canonical"},{"value":"\"m4a\"","kind":"canonical"},{"value":"\"m4b\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"weba\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"dolby\"","kind":"canonical"},{"value":"\"flac\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}}],"returns":[{"description":"

return true if the given audio format is supported

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1N7M5nMijVD-FHi5oJTF6","name":"init","brief":"","examples":[{"caption":"","code":"// initialize the \"sound engine\", giving \"webm\" as default desired audio format, and \"mp3\" as a fallback\nif (!me.audio.init(\"webm,mp3\")) {\n alert(\"Sorry but your browser does not support html 5 audio !\");\n return;\n}"}],"type":"FunctionDoc","description":"

Initialize and configure the audio support.
\nFor a maximum browser coverage the recommendation is to use at least two o...","params":[{"identifier":"format","optional":true,"default":"\"mp3\"","description":"

audio format to prioritize ("mp3"|"mpeg"|"opus"|"ogg"|"oga"|"wav&qu...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

Indicates whether audio initialization was successful

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C4tElCwmIApReGkzwzdAX","name":"load","brief":"","type":"FunctionDoc","description":"

Load an audio file

","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onloadcb","optional":true,"description":"

function to be called when the resource is loaded

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerrorcb","optional":true,"description":"

function to be called in case of error

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings","optional":true,"description":"

custom settings to apply to the request (@link https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)

","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"returns":[{"description":"

the amount of asset loaded (always 1 if successfull)

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j_hc8r_GnUdERmxFILWwD","name":"mute","brief":"","examples":[{"caption":"","code":"// mute the background music\nme.audio.mute(\"awesome_music\");"}],"type":"FunctionDoc","description":"

mute or unmute the specified sound, but does not pause the playback.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will mute.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"mute","optional":true,"default":"true","description":"

True to mute and false to unmute

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"fUMNnKHIkE33ZPFL5b0W1","name":"muteAll","brief":"","type":"FunctionDoc","description":"

mute all audio

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UL0-IKi8bZiMWlXY5rBah","name":"muted","brief":"","type":"FunctionDoc","description":"

Returns true if audio is muted globally.

","params":[],"returns":[{"description":"

true if audio is muted globally

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"z1THCENos1fdd43MNWyrU","name":"orientation","brief":"","type":"FunctionDoc","description":"

Get/set the direction the audio source is pointing in the 3D cartesian coordinate space.\nDepending on how direction the so...","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

the x-orientation of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

the y-orientation of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

the z-orientation of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will be changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

the current 3D spatial orientation: [x, y, z]

","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"03jxlWuvE1LMfWyN_fc8m","name":"panner","brief":"","examples":[{"caption":"","code":"me.audio.panner(\"cling\", {\n panningModel: 'HRTF',\n refDistance: 0.8,\n rolloffFactor: 2.5,\n distanceModel: 'exponential'\n});"}],"type":"FunctionDoc","description":"

get or set the panner node's attributes for a sound or group of sounds.\nSee {@link https://developer.mozilla.org/en-US/doc...","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"attribute","optional":true,"description":"

the panner attributes to set

","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.coneInnerAngle","optional":true,"default":"360","description":"

A parameter for directional audio sources, this is an angle, in degrees, inside of which there will be no volume reduction...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.coneOuterAngle","optional":true,"default":"360","description":"

A parameter for directional audio sources, this is an angle, in degrees, outside of which the volume will be reduced to a ...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.coneOuterGain","optional":true,"default":"0","description":"

A parameter for directional audio sources, this is the gain outside of the coneOuterAngle. It is a linear val...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.distanceModel","optional":true,"default":"\"inverse\"","description":"

Determines algorithm used to reduce volume as audio moves away from listener. Can be linear, inverseThe maximum distance between source and listener, after which the volume will not be reduced any further.

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.refDistance","optional":true,"default":"1","description":"

A reference distance for reducing volume as source moves further from the listener. This is simply a variable of the dista...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.rolloffFactor","optional":true,"default":"1","description":"

How quickly the volume reduces as source moves from listener. This is simply a variable of the distance model and can be i...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.panningModel","optional":true,"default":"\"HRTF\"","description":"

Determines which spatialization algorithm is used to position audio. Can be HRTF or equalpower.

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will be changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

current panner attributes.

","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"extends":[],"implements":[]},{"id":"0jFDMxJ3eSNasN6CVF-hJ","name":"pause","brief":"","examples":[{"caption":"","code":"me.audio.pause(\"cling\");"}],"type":"FunctionDoc","description":"

pause the specified sound on all channels
\nthis function does not reset the currentTime property

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will pause.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vGYtGonxwKlQbQqBA9sWW","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"type":"FunctionDoc","description":"

pause the current audio track

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ndyUyu8kBe-wyJWZCizI","name":"play","brief":"","examples":[{"caption":"","code":"// play the \"cling\" audio clip\nme.audio.play(\"cling\");\n// play & repeat the \"engine\" audio clip\nme.audio.play(\"engine\", true);\n// play the \"gameover_sfx\" audio clip and call myFunc when finished\nme.audio.play(\"gameover_sfx\", false, myFunc);\n// play the \"gameover_sfx\" audio clip with a lower volume level\nme.audio.play(\"gameover_sfx\", false, null, 0.5);"}],"type":"FunctionDoc","description":"

play the specified sound

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"loop","optional":true,"default":"false","description":"

loop audio

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"onend","optional":true,"description":"

Function to call when sound instance ends playing.

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"volume","optional":true,"default":"default","description":"

Float specifying volume (0.0 - 1.0 values accepted).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

the sound instance ID.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RwZLGJ8mrGOTZa_stfkG-","name":"playTrack","brief":"","examples":[{"caption":"","code":"me.audio.playTrack(\"awesome_music\");"}],"type":"FunctionDoc","description":"

play the specified audio track
\nthis function automatically set the loop property to true
\nand keep track of the cur...","params":[{"identifier":"sound_name","optional":false,"description":"

audio track name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"volume","optional":true,"default":"default","description":"

Float specifying volume (0.0 - 1.0 values accepted).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

the sound instance ID.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NAHzCx6voJssC0dkFHlOH","name":"position","brief":"","type":"FunctionDoc","description":"

get or set the 3D spatial position for the specified sound.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

the x-position of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

the y-position of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

the z-position of the audio source.

","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will be changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

the current 3D spatial position: [x, y, z]

","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QQT3EoHSsklFjJOtaqTjk","name":"rate","brief":"","examples":[{"caption":"","code":"// get the playback rate of the background music\nlet rate = me.audio.rate(\"dst-gameforest\");\n// speed up the playback of the background music\nme.audio.rate(\"dst-gameforest\", 2.0);"}],"type":"FunctionDoc","description":"

get or set the rate of playback for a sound.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"rate","optional":true,"variadic":true,"description":"

playback rate : 0.5 to 4.0, with 1.0 being normal speed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will be changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

return the current playback rate (if no extra parameters were given)

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iXmEMxxHClqWIbL0AYwDw","name":"resume","brief":"","examples":[{"caption":"","code":"// play a audio clip\nlet id = me.audio.play(\"myClip\");\n...\n// pause it\nme.audio.pause(\"myClip\", id);\n...\n// resume\nme.audio.resume(\"myClip\", id);"}],"type":"FunctionDoc","description":"

resume the specified sound on all channels

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will resume.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"i5_P9PiIQsmVECbQuOpzm","name":"resumeTrack","brief":"","examples":[{"caption":"","code":"// play an awesome music\nme.audio.playTrack(\"awesome_music\");\n// pause the audio track\nme.audio.pauseTrack();\n// resume the music\nme.audio.resumeTrack();"}],"type":"FunctionDoc","description":"

resume the previously paused audio track

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uJnkCVYFKic0Gqz0AHc_O","name":"seek","brief":"","examples":[{"caption":"","code":"// return the current position of the background music\nlet current_pos = me.audio.seek(\"dst-gameforest\");\n// set back the position of the background music to the beginning\nme.audio.seek(\"dst-gameforest\", 0);"}],"type":"FunctionDoc","description":"

get/set the position of playback for a sound.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"seek","optional":true,"variadic":true,"description":"

the position to move current playback to (in seconds).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

return the current seek position (if no extra parameters were given)

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kt7Cr6mI0AxvOJ1sMARJW","name":"setVolume","brief":"","type":"FunctionDoc","description":"

set the default global volume

","params":[{"identifier":"volume","optional":false,"description":"

Float specifying volume (0.0 - 1.0 values accepted).

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SPipZHUGs4PBu05QBCTuG","name":"stereo","brief":"","examples":[{"caption":"","code":"me.audio.stereo(\"cling\", -1);"}],"type":"FunctionDoc","description":"

get or set the stereo panning for the specified sound.

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"pan","optional":true,"description":"

the panning value - A value of -1.0 is all the way left and 1.0 is all the way right.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will be changed.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

the current panning value

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Dooxi-leghCyBs12CnVhR","name":"stop","brief":"","examples":[{"caption":"","code":"me.audio.stop(\"cling\");"}],"type":"FunctionDoc","description":"

stop the specified sound on all channels

","params":[{"identifier":"sound_name","optional":true,"description":"

audio clip name (case sensitive). If none is passed, all sounds are stopped.

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will stop.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zX4WX3q6W7wyfW9D85xhW","name":"stopTrack","brief":"","examples":[{"caption":"","code":"// play a awesome music\nme.audio.playTrack(\"awesome_music\");\n// stop the current music\nme.audio.stopTrack();"}],"see":["audio.playTrack"],"type":"FunctionDoc","description":"

stop the current audio track

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6nJtQemugC0ITychQFjPc","name":"unload","brief":"","examples":[{"caption":"","code":"me.audio.unload(\"awesome_music\");"}],"type":"FunctionDoc","description":"

unload specified audio track to free memory

","params":[{"identifier":"sound_name","optional":false,"description":"

audio track name - case sensitive

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

true if unloaded

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k9ys-YrymQy5GznzJgd5U","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"type":"FunctionDoc","description":"

unload all audio to free memory

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"adOI2klCWdAtd3kxRzC44","name":"unmute","brief":"","type":"FunctionDoc","description":"

unmute the specified sound

","params":[{"identifier":"sound_name","optional":false,"description":"

audio clip name

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

the sound instance ID. If none is passed, all sounds in group will unmute.

","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LejiLotRVehyz00FZY1-E","name":"unmuteAll","brief":"","type":"FunctionDoc","description":"

unmute all audio

","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"lcQ7vG3ypTJstSQyCsKkC","name":"collision","brief":"","type":"NSDoc","description":"

Collision detection (and projection-based collision response) of 2D shapes.
\nBased on the Separating Axis Theorem and s...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"3DdZTajHNTDiKZ9VaVHiZ","name":"types","brief":"","examples":[{"caption":"","code":" // set the body collision type\n myEntity.body.collisionType = me.collision.types.PLAYER_OBJECT;\n\n // filter collision detection with collision shapes, enemies and collectables\n myEntity.body.setCollisionMask(\n me.collision.types.WORLD_SHAPE |\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.COLLECTABLE_OBJECT\n );\n\n // User-defined collision types are defined using BITWISE LEFT-SHIFT:\n game.collisionTypes = {\n LOCKED_DOOR : me.collision.types.USER << 0,\n OPEN_DOOR : me.collision.types.USER << 1,\n LOOT : me.collision.types.USER << 2,\n };\n\n // Set collision type for a door entity\n myDoorEntity.body.collisionType = game.collisionTypes.LOCKED_DOOR;\n\n // Set collision mask for the player entity, so it collides with locked doors and loot\n myPlayerEntity.body.setCollisionMask(\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.WORLD_SHAPE |\n game.collisionTypes.LOCKED_DOOR |\n game.collisionTypes.LOOT\n );"}],"readonly":true,"scope":"static","see":["Body.setCollisionMask","Body.collisionType"],"type":"EnumDoc","description":"

Enum for collision type values.

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"B4ZAh3JHe_zzvhtSA8AUC","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

e.g. doors

"},{"id":"kHMDGvFWzt7UhsWRMBGmx","name":"ALL_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

all of the above (including user-defined types)

"},{"id":"MOmovwxP1OJWWZksMZFST","name":"COLLECTABLE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

collectable objects

"},{"id":"XAvCwmcS_76bEDabZ4tld","name":"ENEMY_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

enemies objects

"},{"id":"zRlAczr3NDa6H3Z_mEl1n","name":"NO_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

to disable collision check

"},{"id":"xF-Df2RRZQT-t6bjjcY3O","name":"NO_OBJECT","brief":"

to disable collision check

","defaultValue":"0","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-2Ym_Lk4UU4-6FWJc-Nr9","name":"NPC_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

non playable characters

"},{"id":"3GbRVIDQ2FqbwwEeKIx7b","name":"PLAYER_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

playbable characters

"},{"id":"ACfor5lxgoOhoyC4DcKjG","name":"PROJECTILE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

e.g. missiles

"},{"id":"tfvxtOtxVfVYFg8otrAat","name":"USER","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

user-defined collision types (see example)

"},{"id":"A1pOThjb17HtDQMOH2yAb","name":"WORLD_SHAPE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

e.g. walls; for map collision shapes

"}]},{"id":"lnYhGr83_a6L7gH4EIDjW","name":"maxChildren","brief":"","access":"public","defaultValue":"8","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

The maximum number of children that a quadtree node can contain before it is split into sub-nodes.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ay_3l0wqBzbwlUIbuVTX6","name":"maxDepth","brief":"","access":"public","defaultValue":"4","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

The maximum number of levels that the quadtree will create.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QkeicF6VANx-rsxXDS5iL","name":"rayCast","brief":"","access":"public","examples":[{"caption":"","code":" // define a line accross the viewport\n let ray = new me.Line(\n // absolute position of the line\n 0, 0, [\n // starting point relative to the initial position\n new me.Vector2d(0, 0),\n // ending point\n new me.Vector2d(me.game.viewport.width, me.game.viewport.height)\n ]);\n\n // check for collition\n result = me.collision.rayCast(ray);\n\n if (result.length > 0) {\n // ...\n }"}],"scope":"instance","type":"MethodDoc","description":"

Checks for object colliding with the given line

","params":[{"identifier":"line","optional":false,"description":"

line to be tested for collision

","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}},{"identifier":"result","optional":true,"description":"

a user defined array that will be populated with intersecting physic objects.

","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

an array of intersecting physic objects

","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"XcK-LSEVTA6ekblYCh4Hp","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

device type and capabilities

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"u6EODXEEEeyUuJL7_0oIs","name":"platform","brief":"","readonly":true,"type":"NSDoc","description":"

The device platform type

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"niZK3ZhVy0YW04mBMwvSu","name":"android","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is an Android platform

"},{"id":"vxxW79SjkrGRJ7EJ1JJbe","name":"android2","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is an Android 2.x platform

"},{"id":"MDLxe2h3AFPOwsvANjuSC","name":"BlackBerry","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is a BlackBerry platform

"},{"id":"zeKDcfNxy10XhBwiBtZKv","name":"chromeOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is running on ChromeOS.

"},{"id":"G1UYvpQLFg0KvDoqFOPTM","name":"ejecta","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if running under Ejecta

"},{"id":"iQbBRpXgCdjhMayrTDWRP","name":"iOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is an iOS platform

"},{"id":"Z55QniULRCs1T-cG4CfDO","name":"isMobile","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if a mobile device

"},{"id":"qRKVirrvopIr064Lvh42y","name":"isWeixin","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if running under Wechat

"},{"id":"OlXQmO0VgD551RjKpqVl3","name":"Kindle","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is a Kindle platform

"},{"id":"dsCJRf3elMbxuPzeUZRa3","name":"linux","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is a Linux platform

"},{"id":"1A74JTYQ5d4vR7dax1v4-","name":"nodeJS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if running under node.js

"},{"id":"FKp16--rfD3mKAU8ruo8I","name":"ua","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

the user agent string for the current device

"},{"id":"4yT1j52usMXD_wEDdPf2o","name":"webApp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if running as a standalone web app

"},{"id":"ySg0ECPB9L9DNZce9-iMy","name":"wp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is a Windows Phone platform

"}]},{"id":"UDnL-mknvGGcT3ByY-vlC","name":"accelerationX","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

contains the g-force acceleration along the x-axis.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gV_B_IQFTX_T1JmMcjP1p","name":"accelerationY","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

contains the g-force acceleration along the y-axis.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LCSdyfMgbUeHHeKSjlMJN","name":"accelerationZ","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

contains the g-force acceleration along the z-axis.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p2Y9thgiEBbdQ-56iWffI","name":"alpha","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

Device orientation Alpha property. Gives angle based on the rotation of the phone around its z axis.\nThe z-axis is perpend...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xWoPTqUuYKz4oXE1b5upq","name":"autoFocus","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

Specify whether to automatically bring the window to the front

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eatmW5XSg6rWNi34sGj2s","name":"beta","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

Device orientation Beta property. Gives angle on tilting a portrait held phone forward or backward

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9IAXzmjdp0sZmhkcXh8kJ","name":"devicePixelRatio","brief":"","readonly":true,"type":"PropertyDoc","description":"

Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ontcbxaaeeLwSAKuvlrOv","name":"gamma","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

Device orientation Gamma property. Gives angle on tilting a portrait held phone left or right

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L7mssz6n7xKmtGXLwNyVN","name":"hasAccelerometer","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

Browser accelerometer capabilities

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"llXkJIbNuuvEKzx3kk2Ku","name":"hasDeviceOrientation","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

Browser device orientation

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cJ-Oom2fpxsoJkx0hsYsX","name":"hasFullscreenSupport","brief":"","readonly":true,"type":"PropertyDoc","description":"

Browser full screen support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H_qUtnqnz-0BXdxQlYvH1","name":"hasHTML5Audio","brief":"","readonly":true,"type":"PropertyDoc","description":"

Device HTML5Audio Support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TlP22y4UIBqGMPdSyP-FX","name":"hasPointerLockSupport","brief":"","readonly":true,"type":"PropertyDoc","description":"

Browser pointerlock api support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z5tQg3SqgDYE3TVxubXzA","name":"hasVideo","brief":"","readonly":true,"type":"PropertyDoc","description":"

Device Video Support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5cCn6p2jzTbtS_PmdHPGn","name":"hasWebAudio","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

Device WebAudio Support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mdI4TpYoBcXsilaURjNbS","name":"isMobile","brief":"","readonly":true,"type":"PropertyDoc","description":"

equals to true if a mobile device.\n(Android | iPhone | iPad | iPod | BlackBerry | Windows Phone | Kindle)

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kg5iR2pWzZdTFOIYFgsMk","name":"language","brief":"","readonly":true,"see":["http://www.w3schools.com/tags/ref_language_codes.asp"],"type":"PropertyDoc","description":"

a string representing the preferred language of the user, usually the language of the browser UI.\n(will default to "e...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bPUoLQhIIJUqUdpk9B5-t","name":"localStorage","brief":"","readonly":true,"type":"PropertyDoc","description":"

Browser Local Storage capabilities
\n(this flag will be set to false if cookies are blocked)

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_REu41gw6wvppicY4Pa9Y","name":"maxTouchPoints","brief":"","examples":[{"caption":"","code":"if (me.device.maxTouchPoints > 1) {\n // device supports multi-touch\n}"}],"readonly":true,"type":"PropertyDoc","description":"

the maximum number of simultaneous touch contact points are supported by the current device.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YGpX_5Vht2iRcQ8Prp6SB","name":"nativeBase64","brief":"","readonly":true,"type":"PropertyDoc","description":"

Browser Base64 decoding capability

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x6anzFEVymFOIg2vZoGcK","name":"offscreenCanvas","brief":"","readonly":true,"type":"PropertyDoc","description":"

equals to true if the device browser supports OffScreenCanvas.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KxBsOKCwrrWqke88pGp6H","name":"pauseOnBlur","brief":"","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.pauseOnBlur"],"type":"PropertyDoc","description":"

Specify whether to pause the game when losing focus

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JqXAf52RbK1zdB0qbyObk","name":"platform","brief":"","readonly":true,"type":"PropertyDoc","description":"

the device platform type

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-W84itN2DEIWJN3Kg3LtW","name":"pointerEvent","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

True if the browser supports Pointer Events

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1PkC44tP2Nzty09WMKyuo","name":"resumeOnFocus","brief":"","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.resumeOnFocus"],"type":"PropertyDoc","description":"

Specify whether to unpause the game when gaining focus

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Anui4Z9iKzEx0_E4Ak2H3","name":"screenOrientation","brief":"","readonly":true,"see":["https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange"],"type":"PropertyDoc","description":"

Supports the ScreenOrientation API

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ih5l_WrhzYNXDshG0YBgV","name":"sound","brief":"","readonly":true,"type":"PropertyDoc","description":"

Returns true if the browser/device has audio capabilities.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZHcsRhoivbmAzrumLlg-V","name":"stopOnBlur","brief":"","defaultValue":"false","deprecated":"since 15.4.0","see":["Application.stopOnBlur"],"type":"PropertyDoc","description":"

Specify whether to stop the game when losing focus or not.\nThe engine restarts on focus if this is enabled.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nf3_Q1sIMZKWitvLiNH-S","name":"touch","brief":"","readonly":true,"type":"PropertyDoc","description":"

Touch capabilities (support either Touch or Pointer events)

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F_SeAcwIZB4b7M4bzWSM3","name":"touchEvent","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

True if the browser supports Touch Events

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v3QzEs28nauvZrZZesT9M","name":"wheel","brief":"","readonly":true,"type":"PropertyDoc","description":"

W3C standard wheel events

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MopvTDQy6jvnmlRgvH2ZY","name":"enableSwipe","brief":"","type":"FunctionDoc","description":"

enable/disable swipe on WebView.

","params":[{"identifier":"enable","optional":true,"default":"true","description":"

enable or disable swipe.

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"esBLSfRZm-5rTHD0lwSAs","name":"exitFullscreen","brief":"","type":"FunctionDoc","description":"

Exit fullscreen mode. Requires fullscreen support from the browser/device.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N0BJ3k8WwHVaHQ-BbhlPg","name":"focus","brief":"","examples":[{"caption":"","code":"if (clicked) {\n me.device.focus();\n}"}],"type":"FunctionDoc","description":"

Makes a request to bring this device window to the front.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jQZa5lqfggAlVV78ilqOU","name":"getElement","brief":"","type":"FunctionDoc","description":"

return the DOM element for the given element name or HTMLElement object

","params":[{"identifier":"element","optional":false,"description":"

the parent element name or a HTMLElement object

","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

the corresponding DOM Element or null if not existing

","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dQRkNN_Fa_aZkiGBy7Ggq","name":"getElementBounds","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

returns the size of the given HTMLElement and its position relative to the viewport\n
an HTMLElement object

","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

the size and position of the element relatively to the viewport

","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9ON_ZqxTyPr6T3AZuxExN","name":"getParentBounds","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

returns the size of the given HTMLElement Parent and its position relative to the viewport\n
an HTMLElement object

","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

the size and position of the given element parent relative to the viewport

","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iYtRJyEDsw-sX6s7yHxWn","name":"getParentElement","brief":"","type":"FunctionDoc","description":"

return the parent DOM element for the given parent name or HTMLElement object

","params":[{"identifier":"element","optional":false,"description":"

the parent element name or a HTMLElement object

","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

the parent Element

","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vSgLQx5xvfTOZrcXOrMzU","name":"getScreenOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation"],"type":"FunctionDoc","description":"

Return a string representing the orientation of the device screen.\nIt can be "any", "natural", "l...","params":[],"returns":[{"description":"

the screen orientation

","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Q8MUvUGoFUCSpG20HraRF","name":"getStorage","brief":"","see":["save"],"type":"FunctionDoc","description":"

return the device storage

","params":[{"identifier":"type","optional":true,"default":"\"local\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

a reference to the device storage

","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"qVsV1jKHw3k1a22G55jjW","name":"hasVideoFormat","brief":"","type":"FunctionDoc","description":"

detect if the given video format is supported

","params":[{"identifier":"codec","optional":false,"description":"

the video format to check for support

","dataType":{"tokens":[{"value":"\"h264\" | \"h265\" | \"ogg\" | \"mp4\" | \"m4v\" | \"webm\" | \"vp9\" | \"hls\"","kind":"canonical"},{"value":"\"h264\"","kind":"canonical"},{"value":"\"h265\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"m4v\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"vp9\"","kind":"canonical"},{"value":"\"hls\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8"}}],"returns":[{"description":"

return true if the given video format is supported

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1VpnVwWuGCAHqqx9epVAB","name":"isFullscreen","brief":"","type":"FunctionDoc","description":"

Returns true if the browser/device is in full screen mode.

","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9Rcfq-69H8IXm8NN0R4kS","name":"isLandscape","brief":"","type":"FunctionDoc","description":"

return true if the device screen orientation is in Portrait mode

","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"soemyuyjVuO_L6lpCfY_X","name":"isPortrait","brief":"","type":"FunctionDoc","description":"

return true if the device screen orientation is in Portrait mode

","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qNKux51nNdr7imz5XbyrT","name":"isWebGLSupported","brief":"","type":"FunctionDoc","description":"

returns true if the device supports WebGL

","params":[{"identifier":"options","optional":true,"description":"

context creation options

","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.failIfMajorPerformanceCaveat","optional":true,"default":"true","description":"

If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than t...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

true if WebGL is supported

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DX0_0rZsl2ebhFvuuBLgX","name":"lockOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

locks the device screen into the specified orientation.
\nThis method only works for installed Web apps or for Web pages...","params":[{"identifier":"orientation","optional":false,"description":"

The orientation into which to lock the screen.

","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

true if the orientation was unsuccessfully locked

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"A7nwvXrxc8T7uw9bkUAAc","name":"onReady","brief":"","examples":[{"caption":"","code":" // small game skeleton\n let game = {\n // called by the me.device.onReady function\n onload = function () {\n // init video\n if (!me.video.init('screen', 640, 480, true)) {\n alert(\"Sorry but your browser does not support html 5 canvas.\");\n return;\n }\n\n // initialize the \"audio\"\n me.audio.init(\"mp3,ogg\");\n\n // set callback for ressources loaded event\n me.loader.onload = this.loaded.bind(this);\n\n // set all ressources to be loaded\n me.loader.preload(game.assets);\n\n // load everything & display a loading screen\n me.state.change(me.state.LOADING);\n };\n\n // callback when everything is loaded\n loaded = function () {\n // define stuff\n // ....\n\n // change to the menu screen\n me.state.change(me.state.PLAY);\n }\n }; // game\n\n // \"bootstrap\"\n me.device.onReady(function () {\n game.onload();\n });"}],"type":"FunctionDoc","description":"

specify a function to execute when the Device is fully loaded and ready

","params":[{"identifier":"fn","optional":false,"description":"

the function to be executed

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"W3pJx8ElnaIpGBUBy9nuJ","name":"requestFullscreen","brief":"","examples":[{"caption":"","code":"// add a keyboard shortcut to toggle Fullscreen mode on/off\nme.input.bindKey(me.input.KEY.F, \"toggleFullscreen\");\nme.event.on(me.event.KEYDOWN, function (action, keyCode, edge) {\n // toggle fullscreen on/off\n if (action === \"toggleFullscreen\") {\n me.device.requestFullscreen();\n } else {\n me.device.exitFullscreen();\n }\n});"}],"type":"FunctionDoc","description":"

Triggers a fullscreen request. Requires fullscreen support from the browser/device.

","params":[{"identifier":"element","optional":true,"description":"

the element to be set in full-screen mode.

","dataType":{"tokens":[{"value":"Element","kind":"canonical"},{"value":"Element","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lVa3vOdiZncxqcwWMdpa7","name":"unlockOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

unlocks the device screen into the specified orientation.
\nThis method only works for installed Web apps or for Web pag...","params":[],"returns":[{"description":"

true if the orientation was unsuccessfully unlocked

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UYLNsKdoUfUiMmaVCol6u","name":"unwatchAccelerometer","brief":"","type":"FunctionDoc","description":"

unwatch Accelerometor event

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x2Cms08uoTiA1wNM-aJzF","name":"unwatchDeviceOrientation","brief":"","type":"FunctionDoc","description":"

unwatch Device orientation event

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6G0n2R0rmrRZc4Lrq1U9o","name":"vibrate","brief":"","examples":[{"caption":"","code":"// vibrate for 1000 ms\nme.device.vibrate(1000);\n// or alternatively\nme.device.vibrate([1000]);\n// vibrate for 50 ms, be still for 100 ms, and then vibrate for 150 ms:\nme.device.vibrate([50, 100, 150]);\n// cancel any existing vibrations\nme.device.vibrate(0);"}],"type":"FunctionDoc","description":"

the vibrate method pulses the vibration hardware on the device,
\nIf the device doesn't support vibration, this method ...","params":[{"identifier":"pattern","optional":false,"description":"

pattern of vibration and pause intervals

","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"0QhmJvcpd9kKfT61a5q1H","name":"watchAccelerometer","brief":"","examples":[{"caption":"","code":"// try to enable device accelerometer event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchAccelerometer() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device accelerometer event\n }\n});"}],"see":["device.accelerationX","device.accelerationY","device.accelerationZ"],"type":"FunctionDoc","description":"

Enable monitor of the device accelerator to detect the amount of physical force of acceleration the device is receiving.\n(...","params":[],"returns":[{"description":"

false if not supported or permission not granted by the user

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"jqS_hgo9pst5DEMZJjDfK","name":"watchDeviceOrientation","brief":"","examples":[{"caption":"","code":"// try to enable device orientation event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchDeviceOrientation() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device orientation event\n }\n});"}],"see":["device.alpha","device.beta","device.gamma"],"type":"FunctionDoc","description":"

Enable monitor of the device orientation to detect the current orientation of the device as compared to the Earth coordina...","params":[],"returns":[{"description":"

false if not supported or permission not granted by the user

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"LItdNXSYuC12qIGxKG6Jq","name":"event","brief":"","type":"NSDoc","description":"

an event system based on nodeJS EventEmitter interface

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"08-TavDvm4ZLHNIlttVSS","name":"BLUR","brief":"","access":"public","defaultValue":"\"me.blur\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event generated when the main browser or window is losing focus

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dAqGHuEm8wosQVIZZMbrC","name":"BOOT","brief":"","access":"public","defaultValue":"\"me.boot\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event when the system is booting

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KRjYwbfWHVYUYssr4vjrR","name":"CANVAS_ONRESIZE","brief":"","access":"public","defaultValue":"\"canvas.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the canvas is resized
\n(this usually follows a WINDOW_ONRESIZE event).
\nData passed : {number} canva...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pftm92kOwVD-mz4ecvSEU","name":"DOM_READY","brief":"","access":"public","defaultValue":"\"dom_ready\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event when the DOM is Ready is booting

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Evy_f-U9JFO0HGAosPj3W","name":"DRAGEND","brief":"","access":"public","defaultValue":"\"me.game.dragend\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for dragend events on a Draggable entity
\nData passed:\n{object} the drag event
\n{object} the Draggable entit...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lOxSHGqlqBXPDDftHmDg8","name":"DRAGSTART","brief":"","access":"public","defaultValue":"\"me.game.dragstart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for dragstart events on a Draggable entity
\nData passed:\n{object} the drag event
\n{object} the Draggable ent...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6QYFqanBV7WcUBvCoiu9Z","name":"FOCUS","brief":"","access":"public","defaultValue":"\"me.focus\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event generated when the main browser or window is gaining back focus

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x17yLQspXNrWLPtuIINs6","name":"GAME_AFTER_DRAW","brief":"","access":"public","defaultValue":"\"me.game.afterDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for the start of the draw loop\nData passed : {number} time the current time stamp

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_fOEh_LIY7-tMQx2HU2T5","name":"GAME_AFTER_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.afterUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for the end of the update loop\nData passed : {number} time the current time stamp

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukAIhfUV7vcYY92xV3rr-","name":"GAME_BEFORE_DRAW","brief":"","access":"public","defaultValue":"\"me.game.beforeDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for the end of the draw loop\nData passed : {number} time the current time stamp

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qJKRUcWEKjeQ4itplxVK8","name":"GAME_BEFORE_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.beforeUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the engine is about to start a new game loop\nData passed : {number} time the current time stamp

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e9CTjqHJvQCAJmQqsh4uN","name":"GAME_INIT","brief":"","access":"public","defaultValue":"\"me.game.onInit\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the game manager is initialized
\nData passed : none

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iyDftGbfHQKvQDFY4UMRv","name":"GAME_RESET","brief":"","access":"public","defaultValue":"\"me.game.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the game manager is resetted
\nData passed : none

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mH1nDRgOMTPp8rMQOiguS","name":"GAME_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.onUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the game is updated (will be impacted by frame skip, frame interpolation and pause/resume state)
\nData ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4vy2pdDrIEvRQBPrUIbrY","name":"GAMEPAD_CONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.connected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when a gamepad is connected
\nData passed : {object} gamepad object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UNPynj6Ms0Duqp1p8XmZ_","name":"GAMEPAD_DISCONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.disconnected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when a gamepad is disconnected
\nData passed : {object} gamepad object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_EBbbTp_NLvrXbfi844cw","name":"GAMEPAD_UPDATE","brief":"","access":"public","defaultValue":"\"gamepad.update\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when gamepad button/axis state is updated
\nData passed : {number} index
\nData passed : {string} type : &...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CcxgNa-SrR552rPnrWHok","name":"KEYDOWN","brief":"","access":"public","defaultValue":"\"me.input.keydown\"","examples":[{"caption":"","code":" me.input.bindKey(me.input.KEY.X, \"jump\", true); // Edge-triggered\n me.input.bindKey(me.input.KEY.Z, \"shoot\"); // Level-triggered\n me.event.on(me.event.KEYDOWN, (action, keyCode, edge) => {\n // Checking bound keys\n if (action === \"jump\") {\n if (edge) {\n this.doJump();\n }\n\n // Make character fall slower when holding the jump key\n this.vel.y = this.body.gravity;\n }\n });"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for pressing a binded key
\nData passed : {string} user-defined action, {number} keyCode,\n{boolean} edge state {\n // Checking unbound keys\n if (keyCode == me.input.KEY.ESC) {\n if (me.state.isPaused()) {\n me.state.resume();\n }\n else {\n me.state.pause();\n }\n }\n});"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for releasing a binded key
\nData passed : {string} user-defined action, {number} keyCode

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bul6eN9MzrheHPsSkunuC","name":"LEVEL_LOADED","brief":"","access":"public","defaultValue":"\"me.game.onLevelLoaded\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when a level is loaded
\nData passed : {string} Level Name

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9irJNtwVXRLSsvfPaA2pn","name":"LOADER_COMPLETE","brief":"","access":"public","defaultValue":"\"me.loader.onload\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when everything has loaded
\nData passed : none

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-HZfAUBOYyzJSwZpRLqYL","name":"LOADER_ERROR","brief":"","access":"public","defaultValue":"\"me.loader.onError\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when an error occur during preloading
\nData passed : {Resource} resource object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eQ3lPPf0qNQL16WevMRs5","name":"LOADER_PROGRESS","brief":"","access":"public","defaultValue":"\"me.loader.onProgress\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for displaying a load progress indicator
\nData passed : {number} [0 .. 1], {Resource} resource object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4oNTWs-89bj5w583pImas","name":"ONCONTEXT_RESTORED","brief":"","access":"public","defaultValue":"\"renderer.contextrestored\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the current context is restored
\nData passed : {me.Renderer} the current renderer instance`

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iamMZD-U3tkEvRzEycYKO","name":"POINTERLOCKCHANGE","brief":"","access":"public","defaultValue":"\"me.event.pointerlockChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for onPointerLockChange event
\nData passed : {boolean} pointer lock status (true/false)

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PrWhVMl7GY5KEUh2-jWbC","name":"POINTERMOVE","brief":"","access":"public","defaultValue":"\"me.event.pointermove\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for pointermove events on the screen area
\nData passed : {me.Pointer} a Pointer object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U-yGXZEDSFJa1fJ21CvhC","name":"STAGE_RESET","brief":"","access":"public","defaultValue":"\"me.stage.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when a stage is resetted

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k6Z2swhJqQkLOz1gEFF4Q","name":"STATE_CHANGE","brief":"","access":"public","defaultValue":"\"me.state.onChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the changing to a different stage

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9sPavI0R6GLOgziR1uHFi","name":"STATE_PAUSE","brief":"","access":"public","defaultValue":"\"me.state.onPause\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event when the game is paused
\nData passed : none

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ECZDRANLD6GPiuYB6u7SN","name":"STATE_RESTART","brief":"","access":"public","defaultValue":"\"me.state.onRestart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the game is restarted
\nData passed : {number} time in ms the game was stopped

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HS2XPZlodUK3G4m-0TrxG","name":"STATE_RESUME","brief":"","access":"public","defaultValue":"\"me.state.onResume\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event for when the game is resumed
\nData passed : {number} time in ms the game was paused

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WNWGaVWRwymm-IdQovOwM","name":"STATE_STOP","brief":"","access":"public","defaultValue":"\"me.state.onStop\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event when the game is stopped
\nData passed : none

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"46bqj_jz6VbEzT021G3eT","name":"TICK","brief":"","access":"public","defaultValue":"\"me.tick\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

event generated when the system update the engine and the renderer by one step

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F01GItx3l4fDIBjXzxw87","name":"VIDEO_INIT","brief":"","access":"public","defaultValue":"\"me.video.onInit\"","readonly":true,"see":["video.init","event.on"],"type":"PropertyDoc","description":"

event for when the video is initialized
\nData passed : {Renderer} the renderer instance created

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3yb9MKiPK8JR95pRSZpIc","name":"VIEWPORT_ONCHANGE","brief":"","access":"public","defaultValue":"\"viewport.onchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the viewport position is updated
\nData passed : {me.Vector2d} viewport position vector

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2_63KEgbYPs7_moPzzWRJ","name":"VIEWPORT_ONRESIZE","brief":"","access":"public","defaultValue":"\"viewport.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the viewport is resized
\n(this usually follows a WINDOW_ONRESIZE event, when using the flexEvent for when the current context is lost
\nData passed : {me.Renderer} the current renderer instance

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uTwzOUsN7_K0jPh6KfOqA","name":"WINDOW_ONORIENTATION_CHANGE","brief":"","access":"public","defaultValue":"\"globalThis.orientationchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the device is rotated
\nData passed : {Event} Event object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hzsifKbZ5lcWEfFDCsu68","name":"WINDOW_ONRESIZE","brief":"","access":"public","defaultValue":"\"globalThis.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the (browser) window is resized
\nData passed : {Event} Event object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l7krgrTTX3nq9xHJ6U2mV","name":"WINDOW_ONSCROLL","brief":"","access":"public","defaultValue":"\"globalThis.onscroll\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the (browser) window is scrolled
\nData passed : {Event} Event object

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"id3u8TwVUB_oZAEM2HmFl","name":"WORLD_STEP","brief":"","access":"public","defaultValue":"\"me.world.step\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

Event for when the physic world is updated\nData passed : {number} time the current time stamp

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GiSn3YRLzBYipdPxpvRaD","name":"emit","brief":"","examples":[{"caption":"","code":"me.event.emit(\"event-name\", a, b, c);"}],"scope":"static","type":"FunctionDoc","description":"

calls each of the listeners registered for a given event.

","params":[{"identifier":"eventName","optional":false,"description":"

The event name.

","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"args","optional":true,"variadic":true,"description":"

arguments to be passed to all listeners

","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

true if the event had listeners, false otherwise.

","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"x_fPx44rSIS6sFmRZvvU3","name":"off","brief":"","access":"public","examples":[{"caption":"","code":"me.event.off(\"event-name\", myFunction);"}],"scope":"static","type":"FunctionDoc","description":"

remove the given listener for a given event.

","params":[{"identifier":"eventName","optional":false,"description":"

The event name.

","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

The listener function.

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

this.

","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q6BBetHtkbGjTZurGsI3p","name":"on","brief":"","access":"public","examples":[{"caption":"","code":"me.event.on(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

Add a listener for a given event.

","params":[{"identifier":"eventName","optional":false,"description":"

The event name.

","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

The listener function.

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

The context to invoke the listener with.

","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

this.

","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S-ebioEFJit4ipAXA4ciT","name":"once","brief":"","access":"public","examples":[{"caption":"","code":"me.event.once(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

Add a one-time listener for a given event.

","params":[{"identifier":"eventName","optional":false,"description":"

The event name.

","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

The listener function.

","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

The context to invoke the listener with.

","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

this.

","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"AhW9V62GMoUQP-Yqoh4nr","name":"game","brief":"","readonly":true,"see":["Application"],"type":"NSDoc","description":"

game is a default instance of a melonJS Application and represents your current game,\nit contains all the objects, tilemap...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jK6aK4G32Sxdn7vbPzCvE","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"FZrqCDCMNc-Eat72PWThj","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

Namespace for standard gamepad mapping constants

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"E4Fnwfuj30iq5W5h6qlm_","name":"AXES","brief":"","access":"public","scope":"static","see":["https://w3c.github.io/gamepad/#remapping"],"type":"EnumDoc","description":"

Standard gamepad mapping information for axes

\n
    \n
  • Left control stick: LX (horizontal), Standard gamepad mapping information for buttons

    \n
      \n
    • Face buttons: FACE_1, FACE_2standard keyboard constants

      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"aQSUCzV6I2PvA5giANwxi","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aCv0UB5bC-gI4pL9SpUpt","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rDLdAWOObPlg7_3weJUuA","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_4o5a-RwY3EozccK4jolh","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_kSDM1OOP_d_yQIxHl6lo","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iiuc4qoe6FcvibhpGYBbi","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Dvb1HMg2dR7nkCq8YuXv","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JJYorMQLC7dSNXKjSBDdp","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O71dlM-8bWxBXZW1TIN5f","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7wYvMcnSi4hNYRHvfoP8J","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FxwYhx8OL3gyr4xpryuQm","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0MWgPzRDRekPbBKXap7lo","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pm6aLeBSdhj2rElfZtZXC","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qh_H9jFVmTR7ow-5HxL80","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4hm515NMaY2Fet5C2Gs61","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N8nC-X0QL3YT4PtwtHG7n","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GW8_z-UIvQIxd--4jBpZ2","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l6_4u8rnVPagSAO9k6XOA","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zLIyOeD1JZFAInjh0BgW1","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_pocggUGnRRC4vyak0MGv","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-kxWKuglRfVbF5FGx7NTK","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5PeAIHx7rpm1n1y_0zJro","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RFi2xTEXRNCNkPZ2UGCZv","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3d548PCOLpGkNq2wAPyWM","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"blnVtcr4RoIdKJjNPHd-X","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K4hwj_v3TbxZ07T4_NJFB","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ybFEsK_gjsrL4C4iGDKYH","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JLhsVAozw146EWuED5kf_","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XB3KB74yWfr0eQzRaBY2G","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L0zVsImdFKsyW9uXz9Nou","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OLCUytoIGLeap3qy5Xso2","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iQKxMpAK-x6QRXBpzM8Oz","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DZQxs7TOsn7SKG0KAfuVe","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rK2kN8X5EA5-lzblHmJDZ","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GiOQQxPvnk4g_PfQua3_o","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7yMEMhnPl9KKuD0ellI7f","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wBSbLmGUe6F9-EubjHWqp","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rKskvdm7lT1TmRseqPTlp","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kxPhDysrrzbgd66Rlf0U6","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s3aF6fsVctGYXI58kzhO6","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wMAdAcjc-5415J8Rs87mE","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mQXaOaeGEEKynHm4zFt-r","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T2gKsOL3ywueMC7-zyBAM","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TMPOuLSkvUcWwuWL_idQo","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gyJ8-0Cf_8NB7zILoNiWR","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e5assGuVbt4mpEo9bujoS","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qu1ib75Rs3HYZn2I23S7y","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SXvzVfrOmIctg4dKReGJT","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Kce6I2Wq15lGyN6iubnvI","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jj1VUKOAbFewc1nDCusA1","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VDM7wc4ZBLjIPfXxyfxd-","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m98sHIvj25TkgDVOs8ELl","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_e5b6GsFOVqeBXYwWZuEF","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4dPvjhO5IxMU63dMuRheP","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4wLhsdikviwJoxxvyrCOH","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K4aEb41n-l1vo9TulOaHh","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ENwILpWY0ENUUmc2B0zuO","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7fKKC3HmvvFJQpg4pOqvh","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mP2T-g3DTRtYhzs6Nz3sd","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"noeat7vvBdSK_d_ijJik6","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q7iEXJrOyYjXalBs-dwA_","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xV33WQx3-31MkXeP20iaO","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kJMzI5thf1ToFwZzIAXq_","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Ur1Dp2QFh9b7TASTeLBi","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9_LHHWlLLuasRdVmzml97","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nnWpV1a2Up1H4PynfI9JQ","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dTOljLdbGiUAQfNQiEIJc","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wOfB2iRTCQRo4HqE5AUpp","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jf4sVPA-zsgNTwtrESDyy","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FlbNd_svr-1jYcNMLDSi7","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ctD9L6v5cbu8VQEZ5IzTP","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K3BQONdYVYVIEx5ZCZTAm","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vjyWq3CfaB-mvWhw9qK-Q","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N5yRPIeZIBQhOyG8chxX_","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"92skLuGgL1cn5C--4fsq5","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gmXc5mo_cHYw7gBgvf-As","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TuSRQI9Hv4WH4n9Bt4A5i","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Kaf85GIbL7XUp6bfOpnS","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R4fMpKqSdnmN3N2B8dIZJ","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O8hRXjyyW_YMe32_FXQBz","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ad9gs8X5_FQ95UMmq2X37","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dNK0A3HOCGktqt6OZfjLx","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mZMh9iuXjr3xpXanFgw5G","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"72eg7npSViJPKFpGPyL4r","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7CRn--FLesTtRUh5AVvxA","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fCkBP-HR7A20xlVgKx18u","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jcILludpXJKRG3uT6Q5e-","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AIeWIWy1BUAiKxpF7agvc","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lA_8sG9L-HKEyXVUZywlt","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fdBmSipowFI5kS6_Dl-K3","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9570mQmmxDcKcsodYDlN2","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w-mye27WZpbHcB09pPKqP","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b4VsVlXVer-I1Zq9p-0Hp","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NX7xV4r6y4E-0MWnudVd_","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1am9_g7Y8D9gLiX7TLUmQ","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9QIeDsQuxHu3crLAIeB6s","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H0u0-eoj3AqWTIT-kbfGa","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E5gFgdZoGUVz14sRs-nCv","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"QaM_CqyaE4aQI0fTLRi8h","name":"keyBoardEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

      the default target element for keyboard events (usually the window element in which the game is running)

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HEa9nGBwPj76JcnwTH7oc","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

      indicates if the pointer is currently locked

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WLH7i1ooggFG4xtay2ljM","name":"pointer","brief":"","access":"public","type":"PropertyDoc","description":"

      Pointer information (current position and size)

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYQJtYG93RaQAcwVSxOkX","name":"pointerEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

      the default target element for pointer events (usually the canvas element in which the game is rendered)

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CGbE8bpZDiJ6I53shJm-W","name":"preventDefault","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

      specify if melonJS should prevent all default browser action on registered events.

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y4Ardj9Fj0qHqIXzC6HUR","name":"setGamepadMapping","brief":"","access":"public","examples":[{"caption":"","code":" // A weird controller that has its axis mappings reversed\n me.input.setGamepadMapping(\"Generic USB Controller\", {\n \"axes\" : [ 3, 2, 1, 0 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ]\n });\n\n // Mapping extra axes to analog buttons\n me.input.setGamepadMapping(\"Generic Analog Controller\", {\n \"axes\" : [ 0, 1, 2, 3 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ],\n\n // Raw axis 4 is mapped to GAMEPAD.BUTTONS.FACE_1\n // Raw axis 5 is mapped to GAMEPAD.BUTTONS.FACE_2\n // etc...\n // Also maps left and right triggers\n \"analog\" : [ 4, 5, 6, 7, -1, -1, 8, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1 ],\n\n // Normalize the value of button L2: [-1.0..1.0] => [0.0..1.0]\n \"normalize_fn\" : function (value, axis, button) {\n return ((button === me.input.GAMEPAD.BUTTONS.L2) ? ((value + 1) / 2) : value) || 0;\n }\n });"}],"type":"PropertyDoc","description":"

      specify a custom mapping for a specific gamepad id
      \nsee below for the default mapping :

      \n
      Gamepad id string

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"mapping","description":"

      A hash table

      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"mapping.axes","description":"

      Standard analog control stick axis locations

      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.buttons","description":"

      Standard digital button locations

      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.analog","optional":true,"description":"

      Analog axis locations for buttons

      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.normalize_fn","optional":true,"description":"

      a function that returns a normalized value in range [-1.0..1.0] for the given value, axis and button

      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"XzWuLLq5n1aNACwu-KcEh","name":"throttlingInterval","brief":"","access":"public","type":"PropertyDoc","description":"

      time interval for event throttling in milliseconds
      \ndefault value : "1000/me.timer.maxfps" ms
      \nset to 0 ms...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xD1REJbtA12inGQkktBtG","name":"bindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n...\n// map the lower face button on the first gamepad to the X key\nme.input.bindGamepad(0, {type:\"buttons\", code: me.input.GAMEPAD.BUTTONS.FACE_1}, me.input.KEY.X);\n// map the left axis value on the first gamepad to the LEFT key\nme.input.bindGamepad(0, {type:\"axes\", code: me.input.GAMEPAD.AXES.LX, threshold: -0.5}, me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

      Associate a gamepad event to a keycode

      ","params":[{"identifier":"index","optional":false,"description":"

      Gamepad index

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

      Button/Axis definition

      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"button.type","description":"

      "buttons" or "axes"

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"button.code","description":"

      button or axis code id (See {@link input.GAMEPAD.BUTTONS}, {@link input.GAMEPAD.AXES})

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button.threshold","optional":true,"default":"1","description":"

      value indicating when the axis should trigger the keycode (e.g. -0.5 or 0.5)

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","optional":false,"description":"

      (See {@link input.KEY})

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xaUT-Gtgaz4K6uq8n1spv","name":"bindKey","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.LEFT, \"left\");\nme.input.bindKey(me.input.KEY.RIGHT, \"right\");\nme.input.bindKey(me.input.KEY.X, \"jump\", true);\nme.input.bindKey(me.input.KEY.F1, \"options\", true, true);"}],"type":"FunctionDoc","description":"

      associate a user defined action to a keycode

      ","params":[{"identifier":"keycode","optional":false,"description":"

      (See {@link input.KEY})

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"action","optional":false,"description":"

      user defined corresponding action

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"lock","optional":true,"default":"false","description":"

      cancel the keypress event once read

      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"preventDefault","optional":true,"default":"input.preventDefault","description":"

      prevent default browser action

      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"AUDZmNts7l47o9naszY5g","name":"bindPointer","brief":"","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n// map the left button click on the X key (default if the button is not specified)\nme.input.bindPointer(me.input.KEY.X);\n// map the right button click on the X key\nme.input.bindPointer(me.input.pointer.RIGHT, me.input.KEY.X);"}],"type":"FunctionDoc","description":"

      Associate a pointer event to a keycode
      \nLeft button – 0\nMiddle button – 1\nRight button – 2

      ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

      (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","dataType":{"tokens":[{"value":"input.KEY","kind":"canonical"},{"value":"input.KEY","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lWlZ8Qot_0TMmr4Y7bNOx","name":"exitPointerLock","brief":"","type":"FunctionDoc","description":"

      Initiates an exit from pointer lock state

      ","params":[],"returns":[{"description":"

      return true if the request was successfully submitted

      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SKw9wNu1m4U2TW_amyiiR","name":"getBindingKey","brief":"","access":"public","type":"FunctionDoc","description":"

      return the action associated with the given keycode

      ","params":[{"identifier":"keycode","optional":false,"description":"

      (See {@link input.KEY})

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

      user defined associated action

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"UEvprSCazuZwZ24Xe8_fk","name":"globalToLocal","brief":"","examples":[{"caption":"","code":"onMouseEvent : function (pointer) {\n // convert the given into local (viewport) relative coordinates\n let pos = me.input.globalToLocal(pointer.clientX, pointer.clientY);\n // do something with pos !\n};"}],"type":"FunctionDoc","description":"

      Translate the specified x and y values from the global (absolute)\ncoordinate to local (viewport) relative coordinate.

      ","params":[{"identifier":"x","optional":false,"description":"

      the global x coordinate to be translated.

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

      the global y coordinate to be translated.

      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

      an optional vector object where to set the translated coordinates

      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

      A vector object with the corresponding translated coordinates

      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SGl-8UX_UMtTeOA_Z3ujp","name":"hasActiveEvents","brief":"","type":"FunctionDoc","description":"

      return true if there are pending pointer events in the queue

      ","params":[],"returns":[{"description":"

      true if there are pending events

      "}],"extends":[],"implements":[]},{"id":"PgRlZmHTQIiQHPYhPwQYY","name":"hasRegisteredEvents","brief":"","see":["registerPointerEvent"],"type":"FunctionDoc","description":"

      return true if there are register pointer events

      ","params":[],"returns":[{"description":"

      true if there are pending events

      "}],"extends":[],"implements":[]},{"id":"9H_3GKbeb6vZDphM4H_K7","name":"isKeyPressed","brief":"","access":"public","examples":[{"caption":"","code":"if (me.input.isKeyPressed('left')) {\n //do something\n}\nelse if (me.input.isKeyPressed('right')) {\n //do something else...\n}"}],"type":"FunctionDoc","description":"

      return the key press status of the specified action

      ","params":[{"identifier":"action","optional":false,"description":"

      user defined corresponding action

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

      true if pressed

      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wmtAYB-7cpPf7oWz_q5SZ","name":"keyStatus","brief":"","access":"public","type":"FunctionDoc","description":"

      return the key status of the specified action

      ","params":[{"identifier":"action","optional":false,"description":"

      user defined corresponding action

      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

      down (true) or up(false)

      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KbE1gGmHua8Bpe_i3HasZ","name":"registerPointerEvent","brief":"","examples":[{"caption":"","code":" // onActivate function\n onActivateEvent: function () {\n // register on the 'pointerdown' event\n me.input.registerPointerEvent('pointerdown', this, (e) => this.pointerDown(e));\n },\n\n // pointerDown event callback\n pointerDown: function (pointer) {\n // do something\n ....\n // don\"t propagate the event to other objects\n return false;\n },"}],"see":["Pointer","{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

      allows registration of event listeners on the object target.
      \nmelonJS will pass a me.Pointer object to the defined cal...","params":[{"identifier":"eventType","optional":false,"description":"

      The event type for which the object is registering
      \nmelonJS currently supports:

      \n
        \n
      • \"pointermo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

        a shape representing the region to register on

        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":false,"description":"

        methods to be called when the event occurs.\nReturning false from the defined callback will prevent the event ...","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"GqnirneonlHQ5XW-m5-mN","name":"releaseAllPointerEvents","brief":"","examples":[{"caption":"","code":"// release all registered event on the\nme.input.releaseAllPointerEvents(this);"}],"type":"FunctionDoc","description":"

        allows the removal of all registered event listeners from the object target.

        ","params":[{"identifier":"region","optional":false,"description":"

        the registered region to release event from

        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"un3Sg4x4MRJcZW2EJz1hP","name":"releasePointerEvent","brief":"","examples":[{"caption":"","code":"// release the registered region on the 'pointerdown' event\nme.input.releasePointerEvent('pointerdown', this);"}],"see":["{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

        allows the removal of event listeners from the object target.

        ","params":[{"identifier":"eventType","optional":false,"description":"

        The event type for which the object was registered. See {@link input.registerPointerEvent}

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

        the registered region to release for this event

        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":true,"default":"\"all\"","description":"

        if specified unregister the event only for the specific callback

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"Win7Am1A1tX8MLgpuBpuK","name":"requestPointerLock","brief":"","examples":[{"caption":"","code":"// register on the pointer lock change event\nevent.on(event.POINTERLOCKCHANGE, (locked)=> {\n console.log(\"pointer lock: \" + locked);\n});\n// request for pointer lock\nme.input.requestPointerLock();"}],"type":"FunctionDoc","description":"

        request for the pointer to be locked on the parent DOM element.\n(Must be called in a click event or an event that requires...","params":[],"returns":[{"description":"

        return true if the request was successfully submitted

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PTOMlR_Zr3HawziJxhYQD","name":"setGamepadDeadzone","brief":"","access":"public","type":"FunctionDoc","description":"

        Set deadzone for analog gamepad inputs
        \nThe default deadzone is 0.1 (10%) Analog values less than this will be ignored

        ","params":[{"identifier":"value","optional":false,"description":"

        Deadzone value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Wc47htHPau4mK8P1tpjbj","name":"setTouchAction","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action"],"type":"FunctionDoc","description":"

        enable/disable all gestures on the given element.
        \nby default melonJS will disable browser handling of all panning and ...","params":[{"identifier":"element","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"value","optional":true,"default":"\"none\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"l9akghO64SR97it8SWcXz","name":"triggerKeyEvent","brief":"","access":"public","examples":[{"caption":"","code":"// trigger a key press\nme.input.triggerKeyEvent(me.input.KEY.LEFT, true);"}],"type":"FunctionDoc","description":"

        trigger the specified key (simulated) event

        ","params":[{"identifier":"keycode","optional":false,"description":"

        (See {@link input.KEY})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"status","optional":true,"default":"false","description":"

        true to trigger a key down event, or false for key up event

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mouseButton","optional":true,"description":"

        the mouse button to trigger

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YGVtAOIEd-AgP85V9z3AO","name":"unbindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindGamepad(0, me.input.GAMEPAD.BUTTONS.FACE_1);"}],"type":"FunctionDoc","description":"

        unbind the defined keycode

        ","params":[{"identifier":"index","optional":false,"description":"

        Gamepad index

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

        (See {@link input.GAMEPAD.BUTTONS})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SdYBJGtMD9sGC_Y4WKC6p","name":"unbindKey","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindKey(me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

        unbind the defined keycode

        ","params":[{"identifier":"keycode","optional":false,"description":"

        (See {@link input.KEY})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IVAwR9DzJ1ssZVKAll1iu","name":"unbindPointer","brief":"","examples":[{"caption":"","code":"me.input.unbindPointer(me.input.pointer.LEFT);"}],"type":"FunctionDoc","description":"

        unbind the defined keycode

        ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

        (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZHfIXdkzkS3psgJsXKxKk","name":"unlockKey","brief":"","access":"public","examples":[{"caption":"","code":"// Unlock jump when touching the ground\nif (!this.falling && !this.jumping) {\n me.input.unlockKey(\"jump\");\n}"}],"type":"FunctionDoc","description":"

        unlock a key manually

        ","params":[{"identifier":"action","optional":false,"description":"

        user defined corresponding action

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"nYV-eUSAF3igXDuUC4xfr","name":"level","brief":"","type":"NSDoc","description":"

        a level manager. once ressources loaded, the level manager contains all references of defined levels.

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"i_CuP-AwVRV5pORaaR1HQ","name":"add","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        add a level into the game manager (usually called by the preloader)

        ","params":[{"identifier":"format","optional":false,"description":"

        level format (only "tmx" supported)

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"levelId","optional":false,"description":"

        the level id (or name)

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"callback","optional":true,"description":"

        a function to be called once the level is loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

        true if the level was loaded

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CHlRXcSjoSj7yUgbujpVe","name":"getCurrentLevel","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return the current level definition.\nfor a reference to the live instantiated level,\nrather use the container in which it ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZepK2JaWAwMbNG59uWLLI","name":"getCurrentLevelId","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return the current level id

        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"iPiEC86SZXWv79WtAK8IG","name":"levelCount","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return the amount of level preloaded

        ","params":[],"returns":[{"description":"

        the amount of level preloaded

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qFlANvsWehqKEqFSTocmf","name":"load","brief":"","access":"public","examples":[{"caption":"","code":" // the game assets to be be preloaded\n // TMX maps\n let resources = [\n {name: \"a4_level1\", type: \"tmx\", src: \"data/level/a4_level1.tmx\"},\n {name: \"a4_level2\", type: \"tmx\", src: \"data/level/a4_level2.tmx\"},\n {name: \"a4_level3\", type: \"tmx\", src: \"data/level/a4_level3.tmx\"},\n // ...\n ];\n\n // ...\n\n // load a level into the game world\n me.level.load(\"a4_level1\");\n ...\n ...\n // load a level into a specific container\n let levelContainer = new me.Container();\n me.level.load(\"a4_level2\", {container:levelContainer});\n // add a simple transformation\n levelContainer.currentTransform.translate(levelContainer.width / 2, levelContainer.height / 2 );\n levelContainer.currentTransform.rotate(0.05);\n levelContainer.currentTransform.translate(-levelContainer.width / 2, -levelContainer.height / 2 );\n // add it to the game world\n me.game.world.addChild(levelContainer);"}],"scope":"instance","type":"MethodDoc","description":"

        load a level into the game manager
        \n(will also create all level defined entities, etc..)

        ","params":[{"identifier":"levelId","optional":false,"description":"

        level id

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options","optional":true,"description":"

        additional optional parameters

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

        container in which to load the specified level

        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

        callback for when the level is fully loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

        if true, flatten all objects into the given container

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.setViewportBounds","optional":true,"default":"true","description":"

        if true, set the viewport bounds to the map size

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

        true if the level was successfully loaded

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cOTsRfquLE-gA0UebmqWe","name":"next","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        load the next level

        ","params":[{"identifier":"options","optional":true,"description":"

        additional optional parameters

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

        container in which to load the specified level

        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

        callback for when the level is fully loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

        if true, flatten all objects into the given container

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

        true if the next level was successfully loaded

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"loCj61rrxFrq6cDs0akVt","name":"previous","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        load the previous level

        ","params":[{"identifier":"options","optional":true,"description":"

        additional optional parameters

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

        container in which to load the specified level

        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

        callback for when the level is fully loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

        if true, flatten all objects into the given container

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

        true if the previous level was successfully loaded

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2XoxRq0Hjc4sOol48GHpL","name":"reload","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        reload the current level

        ","params":[{"identifier":"options","optional":true,"description":"

        additional optional parameters

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

        container in which to load the specified level

        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

        callback for when the level is fully loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

        if true, flatten all objects into the given container

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

        the current level

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"uXDwpMlJXV2z-vqJmarxn","name":"loader","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

        a small class to manage loading of stuff and manage resources

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"iNUvQrteDCMb96dwnvn7e","name":"Asset","brief":"","examples":[{"caption":"","code":"// PNG tileset\n{name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"}\n// PNG packed texture\n{name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n// PNG base64 encoded image\n{name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n// TSX file\n{name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"}\n// TMX level (XML & JSON)\n{name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"}\n{name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"}\n{name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}}\n{name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}}\n// audio resources\n{name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"}\n{name: \"cling\", type: \"audio\", src: \"data/audio/\"}\n// base64 encoded audio resources\n{name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"}\n// binary file\n{name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"}\n// JSON file (used for texturePacker)\n{name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"}\n// JavaScript file\n{name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"}\n// Font Face\n{ name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\" }\n// video resources\n{name: \"intro\", type: \"video\", src: \"data/video/\"}"}],"scope":"static","see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

        an asset definition to be used with the loader

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jCDdYtWndghDE-1503kWF","name":"autoplay","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Set to true to automatically start playing audio or video when loaded or added to a scene (using autoplay might require us..."},{"id":"qAdn1-yPgPOSEjsmwbunE","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        TMX data if not provided through a src url

        "},{"id":"1ajCKwEvE19uAOMEYJgSK","name":"loop","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Set to true to automatically loop the audio or video when playing

        "},{"id":"LhKtIo6Aa6p8ezqyUqW6t","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        name of the asset

        "},{"id":"36QfQzmuyBH3HOPx-3EWu","name":"src","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        path and/or file name of the resource (for audio assets only the path is required)

        "},{"id":"pOmHF4wbtRKWAIeaiAlt_","name":"stream","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Set to true to not to wait for large audio or video file to be downloaded before playing.

        "},{"id":"UZ5W5d_ggCYfHygbuDc1n","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"d53TolMaEDKzjqqlnkhV_","name":"crossOrigin","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":" // allow for cross-origin texture loading\n me.loader.crossOrigin = \"anonymous\";\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["loader.setOptions","https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"],"type":"PropertyDoc","description":"

        crossOrigin attribute to configure the CORS requests for Image and Video data element.\nBy default (that is, when the attri...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0i9clh4a5D952c1fKIzbF","name":"onError","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for error notification\nme.loader.onError = this.loaderError.bind(this);"}],"type":"PropertyDoc","description":"

        onError callback
        \neach time a resource loading is failed, the loader will fire the specified function giving the actual...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yQe24CdTvA-4UQ2lUGrO0","name":"onload","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback when everything is loaded\nme.loader.onload = this.loaded.bind(this);"}],"type":"PropertyDoc","description":"

        onload callback

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nfpc73c9fsxTqKZRsrq4L","name":"onProgress","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for progress notification\nme.loader.onProgress = this.updateProgress.bind(this);"}],"type":"PropertyDoc","description":"

        onProgress callback
        \neach time a resource is loaded, the loader will fire the specified function,\ngiving the actual pro...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vkl4BwyvV41d44Kquvf1Z","name":"withCredentials","brief":"","access":"public","defaultValue":"false","examples":[{"caption":"","code":" // enable withCredentials\n me.loader.withCredentials = true;\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["loader.setOptions","https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials"],"type":"PropertyDoc","description":"

        indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies,\nauthorizatio...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gfrHnpqJk3_0ccaFSleAW","name":"getBinary","brief":"","type":"FunctionDoc","description":"

        return the specified Binary object

        ","params":[{"identifier":"elt","optional":false,"description":"

        name of the binary object ("ymTrack");

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        requested element or null if not found

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"NRZ1riv5yZruzcDJwX6S_","name":"getFont","brief":"","type":"FunctionDoc","description":"

        return the specified FontFace Object

        ","params":[{"identifier":"elt","optional":false,"description":"

        name of the font file

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"FontFace","kind":"canonical"},{"value":"FontFace","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eIbohN4pbkqykoHMIG7vz","name":"getImage","brief":"","type":"FunctionDoc","description":"

        return the specified Image Object

        ","params":[{"identifier":"image","optional":false,"description":"

        name of the Image element ("tileset-platformer");

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        requested element or null if not found

        ","dataType":{"tokens":[{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OLAPyly_DNuBLLNb5zT2U","name":"getJSON","brief":"","type":"FunctionDoc","description":"

        return the specified JSON Object

        ","params":[{"identifier":"elt","optional":false,"description":"

        name of the json file

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"JSON","kind":"canonical"},{"value":"JSON","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZI_afWC2vSMWGCupuD5dk","name":"getTMX","brief":"","type":"FunctionDoc","description":"

        return the specified TMX/TSX object

        ","params":[{"identifier":"elt","optional":false,"description":"

        name of the tmx/tsx element ("map1");

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        requested element or null if not found

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"8zjAE6SIrkabjALZdokKX","name":"getVideo","brief":"","type":"FunctionDoc","description":"

        return the specified Video Object

        ","params":[{"identifier":"elt","optional":false,"description":"

        name of the video file

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zbq2YWMOwnzKZZffbP4Dl","name":"load","brief":"","examples":[{"caption":"","code":"// load an image asset\nme.loader.load({name: \"avatar\", type:\"image\", src: \"data/avatar.png\"}, () => this.onload(), () => this.onerror());\n// load a base64 image asset\n me.loader.load({name: \"avatar\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"};\n // load a base64 video asset\n me.loader.load({\n name: \"avatar\",\n type:\"video\",\n src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ..\"\n };\n// start loading music\nme.loader.load({\n name : \"bgmusic\",\n type : \"audio\",\n src : \"data/audio/\"\n}, function () {\n me.audio.play(\"bgmusic\");\n});"}],"type":"FunctionDoc","description":"

        Load a single asset (to be used if you need to load additional asset(s) during the game)

        ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onload","optional":true,"description":"

        function to be called when the asset is loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerror","optional":true,"description":"

        function to be called in case of error

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

        the amount of corresponding resource to be preloaded

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-QKRl3GJUwN1ejT4hSHHh","name":"preload","brief":"","examples":[{"caption":"","code":"game.assets = [\n // PNG tileset\n {name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"},\n // PNG packed texture\n {name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n // PNG base64 encoded image\n {name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n // TSX file\n {name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"},\n // TMX level (XML & JSON)\n {name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"},\n {name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"},\n {name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}},\n {name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}},\n // audio resources\n {name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"},\n {name: \"cling\", type: \"audio\", src: \"data/audio/\"},\n // base64 encoded audio resources\n {name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"},\n // binary file\n {name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"},\n // JSON file (used for texturePacker)\n {name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"},\n // JavaScript file\n {name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"},\n // Font Face\n {name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\"},\n // video resources\n {name: \"intro\", type: \"video\", src: \"data/video/\"},\n // base64 encoded video asset\n me.loader.load({name: \"avatar\", type:\"video\", src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ...\"};\n];\n...\n// set all resources to be loaded\nme.loader.preload(game.assets, () => this.loaded());"}],"type":"FunctionDoc","description":"

        set all the specified game assets to be preloaded.

        ","params":[{"identifier":"assets","optional":false,"description":"

        list of assets to load

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1<%2>"}},{"identifier":"onloadcb","optional":true,"default":"loader.onload","description":"

        function to be called when all resources are loaded

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"switchToLoadState","optional":true,"default":"true","description":"

        automatically switch to the loading screen

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"QU_-nypZPXLsikxnWyhaA","name":"reload","brief":"","examples":[{"caption":"","code":"event.on(\n event.LOADER_ERROR,\n (res) => {\n // custom function\n showErrorNotification({\n text: `Error during loading content: ${res.name}`,\n done: loader.reload(res.src);\n })\n }\n);"}],"type":"FunctionDoc","description":"

        retry loading assets after a loading failure

        ","params":[{"identifier":"src","optional":false,"description":"

        src of asset to reload

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"3IpoRwB2dmG1nCODeadlk","name":"setBaseURL","brief":"","access":"public","examples":[{"caption":"","code":"// change the base URL relative address for audio assets\nme.loader.setBaseURL(\"audio\", \"data/audio/\");\n// change the base URL absolute address for all object types\nme.loader.setBaseURL(\"*\", \"http://myurl.com/\")"}],"type":"FunctionDoc","description":"

        change the default baseURL for the given asset type.
        \n(this will prepend the asset URL and must finish with a '/')

        ","params":[{"identifier":"type","optional":false,"description":"

        "*", "audio", "video", "binary", "image", "json", "js&quo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"url","optional":true,"default":"\"./\"","description":"

        default base URL

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"9ARg-WoH989RotvXvC3lR","name":"setOptions","brief":"","examples":[{"caption":"","code":" // Set the crossOrigin attribute to \"anonymous\"\n me.loader.setOptions({ crossOrigin: \"anonymous\" });\n\n // Enable the nocache mechanism\n me.loader.setOptions({ nocache: true });\n\n // Enable withCredentials\n me.loader.setOptions({ withCredentials: true });"}],"type":"FunctionDoc","description":"

        Sets the options for the loader.

        ","params":[{"identifier":"options","optional":false,"description":"

        The options to set.

        ","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}},{"identifier":"options.crossOrigin","optional":true,"description":"

        The crossOrigin attribute to configure the CORS requests for Image and Video data element.

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options.nocache","optional":true,"description":"

        Enable or disable the nocache mechanism.

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.withCredentials","optional":true,"description":"

        Indicates whether or not cross-site Access-Control requests should be made using credentials.

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"P4t5jhPn80_FwrXxSDryV","name":"setParser","brief":"","examples":[{"caption":"","code":"// specify a custom function for \"abc\" format\nfunction customAbcParser(data, onload, onerror) {\n // preload and do something with the data\n let parsedData = doSomething(data);\n // when done, call the onload callback with the parsed data\n onload(parsedData);\n // in case of error, call the onerror callback\n onerror();\n // return the amount of asset parsed\n return 1\n}\n// set the parser for the custom format\nloader.setParser(\"abc\", customAbcParser);"}],"see":["loader.Asset.type"],"type":"FunctionDoc","description":"

        specify a parser/preload function for the given asset type

        ","params":[{"identifier":"type","optional":false,"description":"

        asset type

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"parserFn","optional":false,"description":"

        parser function

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"eYqLDivNi_dhXMsQWZBCW","name":"unload","brief":"","examples":[{"caption":"","code":"me.loader.unload({name: \"avatar\", type:\"image\"});"}],"type":"FunctionDoc","description":"

        unload the specified asset to free memory

        ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

        true if unloaded

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mfTtTFm7xKOR9xeTsToNE","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.loader.unloadAll();"}],"type":"FunctionDoc","description":"

        unload all resources to free memory

        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"dhBx-jmrlS_6E4LS6p_6F","name":"Math","brief":"","type":"NSDoc","description":"

        a collection of math utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"gUfXYcQFCm_bGHYCpSQWW","name":"DEG_TO_RAD","brief":"","readonly":true,"type":"PropertyDoc","description":"

        constant to convert from degrees to radians

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iJ84y80VNBPw61L9RQxUI","name":"EPSILON","brief":"","defaultValue":"0.000001","readonly":true,"type":"PropertyDoc","description":"

        the difference between 1 and the smallest floating point number greater than 1

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W-_Uy2uufqlxLqi95P8Cy","name":"ETA","brief":"","readonly":true,"type":"PropertyDoc","description":"

        constant equals to half pi

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PF1Y4IJ2h97CVLewtoObM","name":"RAD_TO_DEG","brief":"","readonly":true,"type":"PropertyDoc","description":"

        constant to convert from radians to degrees

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AUMo_Z31U4D669G6XVmf-","name":"TAU","brief":"","readonly":true,"type":"PropertyDoc","description":"

        constant equals to 2 times pi

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fhPx-DH2omW4JR8LcqpHC","name":"clamp","brief":"","type":"FunctionDoc","description":"

        clamp the given value

        ","params":[{"identifier":"val","optional":false,"description":"

        the value to clamp

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"low","optional":false,"description":"

        lower limit

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"description":"

        higher limit

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        clamped value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IYxkFZEiR1fpnO3rxHhuV","name":"degToRad","brief":"","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.degToRad(60); // return 1.0471..."}],"type":"FunctionDoc","description":"

        Converts an angle in degrees to an angle in radians

        ","params":[{"identifier":"angle","optional":false,"description":"

        angle in degrees

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        corresponding angle in radians

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DHSO9vJeveB-Jcu8jTcjC","name":"isPowerOfFour","brief":"","type":"FunctionDoc","description":"

        returns true if the given value is a power of four

        ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zY0-7jHI75RTUq1_upanq","name":"isPowerOfTwo","brief":"","type":"FunctionDoc","description":"

        returns true if the given value is a power of two

        ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vtVn4dLdBeJETcOCNAZE1","name":"nextPowerOfTwo","brief":"","type":"FunctionDoc","description":"

        returns the next power of two for the given value

        ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MKGoo9yYxyprD46B7vLGS","name":"pow","brief":"","type":"FunctionDoc","description":"

        Calculates the power of a number.

        ","params":[{"identifier":"n","optional":false,"description":"

        The number to be raised to the power of 2.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        The result of raising the number to the power of 2.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zu8ek6Rh9E4hwV--ITWZu","name":"radToDeg","brief":"","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.radToDeg(1.0471975511965976); // return 60"}],"type":"FunctionDoc","description":"

        Converts an angle in radians to an angle in degrees.

        ","params":[{"identifier":"radians","optional":false,"description":"

        angle in radians

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        corresponding angle in degrees

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tMhWzL4IdvmRARc8pAwdU","name":"random","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.random(5, 10) );"}],"type":"FunctionDoc","description":"

        return a random integer between min (included) and max (excluded)

        ","params":[{"identifier":"min","optional":false,"description":"

        minimum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

        maximum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        random value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a732sEyi7JgzpKH7TtI_r","name":"randomFloat","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.randomFloat(5, 10) );"}],"type":"FunctionDoc","description":"

        return a random float between min, max (exclusive)

        ","params":[{"identifier":"min","optional":false,"description":"

        minimum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

        maximum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        random value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RxLkOYCJO-y-q01NrtL1q","name":"round","brief":"","examples":[{"caption":"","code":"// round a specific value to 2 digits\nme.Math.round(10.33333, 2); // return 10.33"}],"type":"FunctionDoc","description":"

        round a value to the specified number of digit

        ","params":[{"identifier":"num","optional":false,"description":"

        value to be rounded.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dec","optional":true,"default":"0","description":"

        number of decimal digit to be rounded to.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        rounded value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xdwiwqZbpD9OMhnCgp3YQ","name":"toBeCloseTo","brief":"","examples":[{"caption":"","code":"// test if the given value is close to 10\nif (me.Math.toBeCloseTo(10, value)) {\n // do something\n}"}],"type":"FunctionDoc","description":"

        check if the given value is close to the expected one

        ","params":[{"identifier":"expected","optional":false,"description":"

        value to be compared with.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"actual","optional":false,"description":"

        actual value to compare

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"precision","optional":true,"default":"2","description":"

        float precision for the comparison

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        if close to

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uUeDzAKO9uYWHdQaKfvxR","name":"weightedRandom","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.weightedRandom(5, 10) );"}],"type":"FunctionDoc","description":"

        return a weighted random between min, max (exclusive)

        ","params":[{"identifier":"min","optional":false,"description":"

        minimum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

        maximum value.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        random value

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"-fA93uOJxdt8qBZiJJzOE","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

        ParticleEmitterSettings contains the default settings for ParticleEmitter

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"yI6sk0Qd5u_OaD1jRISvT","name":"angle","brief":"","access":"public","defaultValue":"Math.PI / 2","scope":"static","type":"PropertyDoc","description":"

        Start angle for particle launch in Radians

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6B8aUpvX-krer1A9sHkb2","name":"angleVariation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        letiation in the start angle for particle launch in Radians.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tteWilwVSzkqbkcoxCZ_l","name":"blendMode","brief":"","access":"public","defaultValue":"normal","scope":"static","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

        the blend mode to be applied when rendering particles.\n(note: this will superseed the textureAdditive setting...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h8VBIQYZWdxVQx9i6TyBn","name":"duration","brief":"","access":"public","defaultValue":"Infinity","scope":"static","type":"PropertyDoc","description":"

        Duration that the emitter releases particles in ms (used only if emitter is Stream).\nAfter this period, the emitter stop t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AfF-vvfI5mPYmzEZNwzbT","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Render particles in screen space.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zKTE-9WuUWGoeWm-DoHEM","name":"followTrajectory","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Update the rotation of particle in accordance the particle trajectory.
        \nThe particle sprite should aim at zero angle (d...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aDhgKUKDsq8oWUs-38l29","name":"framesToSkip","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Skip n frames after updating the particle system once.\nThis can be used to reduce the performance impact of emitters with ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8H2Cl9-VaYOQAWPb3ZryH","name":"frequency","brief":"","access":"public","defaultValue":"100","scope":"static","type":"PropertyDoc","description":"

        How often a particle is emitted in ms (used only if emitter is a Stream).

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B_Lhi3kVMddA1lYy38oBB","name":"gravity","brief":"","access":"public","defaultValue":"0","scope":"static","see":["game.world.gravity"],"type":"PropertyDoc","description":"

        Vertical force (Gravity) for each particle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"smKT-bZTmSmLXcQefJ5q6","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        Height of the particle spawn area

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q9oisVOek_8AGmzYt9jlB","name":"image","brief":"","access":"public","defaultValue":"undefined","scope":"static","see":["ParticleEmitterSettings.textureSize"],"type":"PropertyDoc","description":"

        image used for particles texture\n(by default melonJS will create an white 8x8 texture image)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4d0mP13a5yzokg3vPq2Er","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Maximum end scale ratio for particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xy26It2xDdpG2BooQHRT-","name":"maxLife","brief":"","access":"public","defaultValue":"3000","scope":"static","type":"PropertyDoc","description":"

        Maximum time each particle lives once it is emitted in ms.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0RRkvI8dcLH9y1ZBBEPBE","name":"maxParticles","brief":"","access":"public","defaultValue":"10","scope":"static","type":"PropertyDoc","description":"

        Maximum number of particles launched each time in this emitter (used only if emitter is Stream).

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"06nJ7_ismXAhPQIWX4Nb-","name":"maxRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Maximum start rotation for particles sprites in Radians

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BBVEHzPBdnFCi8Q4RuYWx","name":"maxStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        Maximum start scale ratio for particles (1 = no scaling)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"92kI8yqlDq7XK4epPkKER","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Minimum end scale ratio for particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GuuQ1TntJ62vJE8vy1IF_","name":"minLife","brief":"","access":"public","defaultValue":"1000","scope":"static","type":"PropertyDoc","description":"

        Minimum time each particle lives once it is emitted in ms.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"84It-N-A9QsbdUwup4zv4","name":"minRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Minimum start rotation for particles sprites in Radians

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XFnf3uXPbAgoV8S8vrwUC","name":"minStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        Minimum start scale ratio for particles (1 = no scaling)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QZH9KnYWmO8EGreM0Wgbg","name":"onlyInViewport","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

        Update particles only in the viewport, remove it when out of viewport.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l43Ytmwzzd3cZMtrmRl1M","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

        Start speed of particles.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RwVgWFMatm1tEcPYO8WhD","name":"speedVariation","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        letiation in the start speed of particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8EBqpZ8PWRmYNgRK6kroR","name":"textureAdditive","brief":"","access":"public","defaultValue":"false","scope":"static","see":["ParticleEmitterSettings.blendMode"],"type":"PropertyDoc","description":"

        Enable the Texture Additive by composite operation ("additive" blendMode)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TNqrf42Eq9gdC1ImVMjB5","name":"textureSize","brief":"","access":"public","defaultValue":"8","scope":"static","see":["ParticleEmitterSettings.image"],"type":"PropertyDoc","description":"

        default texture size used for particles if no image is specified\n(by default melonJS will create an white 8x8 texture imag...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dp883JY0dvdg8ETpZrk7w","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

        tint to be applied to particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PWes32hneGhbMvNmdeAz_","name":"totalParticles","brief":"","access":"public","defaultValue":"50","scope":"static","type":"PropertyDoc","description":"

        Total number of particles in the emitter

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AuYxHRSdvaMTIJLHvN4pw","name":"width","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        Width of the particle spawn area.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ghPxrbvPvuK2GcIFX0t2","name":"wind","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Horizontal force (like a Wind) for each particle

        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"g2uVGXn2oCfjS-V-xapsW","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"frWDNz7HIDAKM8_XnhR5k","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"BtuwTgLQJnUymFcVgURjM","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

        a reference to the app/game that registered this plugin

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m4OMnjoDvPkoHwkLga0R9","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

        define the minimum required version of melonJS
        \nthis can be overridden by the plugin

        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"bkdquO2VLQhS7XSgW9xOm","name":"BasePlugin","brief":"","type":"ClassDoc","description":"

        a base Object class for plugin\n(plugin must be installed using the register function)

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"liNoFTus0-vWZEeUCSq7e","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

        a reference to the app/game that registered this plugin

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jo-TYQzpGa8XCiHHmFsmx","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

        define the minimum required version of melonJS
        \nthis can be overridden by the plugin

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AU5QINZ8_cWXZzf2guPz-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"app","optional":true,"description":"

        a reference to the app/game that registered this plugin

        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"hjt3mDaF6CDnE1AApqUv1","name":"cache","brief":"","type":"PropertyDoc","description":"

        Contains all registered plugins.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_XYz8nkkDmxn8tIPMmWHn","name":"get","brief":"","type":"FunctionDoc","description":"

        returns the the plugin instance with the specified class type or registered name

        ","params":[{"identifier":"classType","optional":false,"description":"

        the Class Object or registered name of the plugin to retreive

        ","dataType":{"tokens":[{"value":"object | string","kind":"canonical"}],"template":"object | string"}}],"returns":[{"description":"

        a plugin instance or undefined

        ","dataType":{"tokens":[{"value":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9zdvMf1iI2b39XaDw3MRj","name":"patch","brief":"","examples":[{"caption":"","code":"// redefine the me.game.update function with a new one\nme.plugin.patch(me.game, \"update\", function () {\n // display something in the console\n console.log(\"duh\");\n // call the original me.game.update function\n this._patched();\n});"}],"type":"FunctionDoc","description":"

        patch a melonJS function

        ","params":[{"identifier":"proto","optional":false,"description":"

        target object

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

        target function

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fn","optional":false,"description":"

        replacement function

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"C6WOus-CVUjuD6yz7H1zZ","name":"register","brief":"","examples":[{"caption":"","code":"// register a new plugin\nme.plugin.register(TestPlugin, \"testPlugin\");\n// the `testPlugin` class instance can also be accessed through me.plugin.cache\nme.plugin.cache.testPlugin.myfunction ();"}],"type":"FunctionDoc","description":"

        Register a plugin.

        ","params":[{"identifier":"plugin","optional":false,"description":"

        Plugin object to instantiate and register

        ","dataType":{"tokens":[{"value":"plugin.BasePlugin","kind":"canonical"},{"value":"plugin.BasePlugin","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":true,"default":"plugin.constructor.name","description":"

        a unique name for this plugin

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"args","optional":true,"description":"

        all extra parameters will be passed to the plugin constructor

        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"fqT6zatf-tYQ-dqK9I2c4","name":"pool","brief":"","examples":[{"caption":"","code":"// register our bullet object into the object pool\npool.register(\"bullet\", BulletEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = pool.pull(\"bullet\", x, y, direction, velocity);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\ngame.world.removeChild(bullet);"}],"see":["ObjectPool"],"type":"NSDoc","description":"

        a default global ObjectPool instance

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CSV3iqJIs6BfHk0rVqH5Z","name":"save","brief":"","examples":[{"caption":"","code":" // Initialize \"score\" and \"lives\" with default values\n // This loads the properties from localStorage if they exist, else it sets the given defaults\n me.save.add({ score : 0, lives : 3 });\n\n // Print all\n // On first load, this prints { score : 0, lives : 3 }\n // On further reloads, it prints { score : 31337, lives : 3, complexObject : ... }\n // Because the following changes will be saved to localStorage\n console.log(JSON.stringify(me.save));\n\n // Save score\n me.save.score = 31337;\n\n // Also supports complex objects thanks to the JSON backend\n me.save.add({ complexObject : {} })\n me.save.complexObject = { a : \"b\", c : [ 1, 2, 3, \"d\" ], e : { f : [{}] } };\n\n // WARNING: Do not set any child properties of complex objects directly!\n // Changes made that way will not save. Always set the entire object value at once.\n // If you cannot live with this limitation, there's a workaround:\n me.save.complexObject.c.push(\"foo\"); // Modify a child property\n me.save.complexObject = me.save.complexObject; // Save the entire object!\n\n // Remove \"lives\" from localStorage\n me.save.remove(\"lives\");"}],"type":"NSDoc","description":"

        allow to access and manage the device localStorage

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"NFDj2dbYunMLNP8w75Rwu","name":"add","brief":"","examples":[{"caption":"","code":"// Initialize \"score\" and \"lives\" with default values\nme.save.add({ score : 0, lives : 3 });\n// get or set the value through me.save\nme.save.score = 1000;"}],"scope":"instance","type":"MethodDoc","description":"

        Add new keys to localStorage and set them to the given default values if they do not exist

        ","params":[{"identifier":"props","optional":false,"description":"

        key and corresponding values

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"qktZYwM7QO61UgcU6zpq3","name":"remove","brief":"","examples":[{"caption":"","code":"// Remove the \"score\" key from localStorage\nme.save.remove(\"score\");"}],"scope":"instance","type":"MethodDoc","description":"

        Remove a key from localStorage

        ","params":[{"identifier":"key","optional":false,"description":"

        key to be removed

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DZ46TMTuxRwsOMG6BwGq7","name":"state","brief":"","type":"NSDoc","description":"

        a State Manager (state machine)

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"X5IKfSFNFK1CDyP1l-B9b","name":"CREDITS","brief":"","defaultValue":"7","scope":"static","type":"PropertyDoc","description":"

        default state ID for Credits Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fVRHQLv0I0JeREolsouVD","name":"DEFAULT","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","description":"

        default state ID for the default Stage\n(the default stage is the one running as soon as melonJS is started)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8pgMi0KLgDEuaI2u4P44Z","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

        default state ID for Game End Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cwxUsUEK2z1waFaymhS8T","name":"GAMEOVER","brief":"","defaultValue":"4","scope":"static","type":"PropertyDoc","description":"

        default state ID for Game Over Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vrj_t8ceBuxhyTDaxEDMY","name":"LOADING","brief":"","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        default state ID for Loading Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E12zbD4nA7vgrBIXrvu3r","name":"MENU","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        default state ID for Menu Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xl3K7_rcqg-NW3U8V0eYp","name":"PLAY","brief":"","defaultValue":"3","scope":"static","type":"PropertyDoc","description":"

        default state ID for Play Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NWPZAlDY345Seo1cavJWr","name":"READY","brief":"","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

        default state ID for "Ready" Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PL-v3LQdeTM0Ue_9_oG6t","name":"SCORE","brief":"","defaultValue":"6","scope":"static","type":"PropertyDoc","description":"

        default state ID for High Score Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kMHKGg8ujrkYYH-RCK_gi","name":"SETTINGS","brief":"","defaultValue":"8","scope":"static","type":"PropertyDoc","description":"

        default state ID for Settings Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5t-iNGIlTeobcKObtvvyD","name":"USER","brief":"","defaultValue":"100","examples":[{"caption":"","code":"let STATE_INFO = me.state.USER + 0;\nlet STATE_WARN = me.state.USER + 1;\nlet STATE_ERROR = me.state.USER + 2;\nlet STATE_CUTSCENE = me.state.USER + 3;"}],"scope":"static","type":"PropertyDoc","description":"

        default state ID for user defined constants

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"np5s2cU4uNmxsOLoAO07q","name":"change","brief":"","access":"public","examples":[{"caption":"","code":"// The onResetEvent method on the play screen will receive two args:\n// \"level_1\" and the number 3\nme.state.change(me.state.PLAY, \"level_1\", 3);"}],"scope":"instance","type":"MethodDoc","description":"

        change the game/app state

        ","params":[{"identifier":"state","optional":false,"description":"

        State ID (see constants)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"forceChange","optional":false,"description":"

        if true the state will be changed immediately

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":true,"description":"

        extra arguments to be passed to the reset functions

        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]},{"id":"W43t3Ocr-Y044-Cg0pr-v","name":"current","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return a reference to the current stage
        \nuseful to call a object specific method

        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1eSF-X5Kea-7MFuvnPVnI","name":"isCurrent","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return true if the specified state is the current one

        ","params":[{"identifier":"state","optional":false,"description":"

        State ID (see constants)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        true if the specified state is the current one

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"il2rPohEwFPaYNAyYncPY","name":"isPaused","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        Return the pause state of the state manager

        ","params":[],"returns":[{"description":"

        true if the game is paused

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tAUEs7Pe00FcU8hPUY5lj","name":"isRunning","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        return the running state of the state manager

        ","params":[],"returns":[{"description":"

        true if a "process is running"

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zS1NpT1cP1mQAnCrvdHLc","name":"pause","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        pause the current stage

        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

        pause current music track on screen pause

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7Wnik_e-DANYUjICrb1w2","name":"restart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        Restart the current stage from a full stop.

        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

        resume current music track on screen resume

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"NR8yeAqqRAjCzm4XgTh5l","name":"resume","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        resume the current stage

        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

        resume current music track on screen resume

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"0RKZND_ouNdYEMr_KBNsS","name":"set","brief":"","access":"public","examples":[{"caption":"","code":" class MenuButton extends me.GUI_Object {\n onClick() {\n // Change to the PLAY state when the button is clicked\n me.state.change(me.state.PLAY);\n return true;\n }\n };\n\n class MenuScreen extends me.Stage {\n onResetEvent() {\n // Load background image\n me.game.world.addChild(\n new me.ImageLayer(0, 0, {\n image : \"bg\",\n z: 0 // z-index\n }\n );\n\n // Add a button\n me.game.world.addChild(\n new MenuButton(350, 200, { \"image\" : \"start\" }),\n 1 // z-index\n );\n\n // Play music\n me.audio.playTrack(\"menu\");\n }\n\n onDestroyEvent() {\n // Stop music\n me.audio.stopTrack();\n }\n };\n\n me.state.set(me.state.MENU, new MenuScreen());"}],"scope":"instance","type":"MethodDoc","description":"

        associate the specified state with a Stage

        ","params":[{"identifier":"state","optional":false,"description":"

        State ID (see constants)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"stage","optional":false,"description":"

        Instantiated Stage to associate with state ID

        ","dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}},{"identifier":"start ","optional":true,"default":" false","description":"

        if true the state will be changed immediately after adding it.

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_4_sgYZnb7uSRZJTs9oIw","name":"set","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        returns the stage associated with the specified state\n(or the current one if none is specified)

        ","params":[{"identifier":"state","optional":true,"description":"

        State ID (see constants)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dr-m85CP2rNLzB5wGQRPj","name":"setTransition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        enable/disable the transition to a particular state (by default enabled for all)

        ","params":[{"identifier":"state","optional":false,"description":"

        State ID (see constants)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"GjDt0vfe-khD1gpNKozQl","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        Stop the current stage.

        ","params":[{"identifier":"pauseTrack","optional":true,"default":"false","description":"

        pause current track on screen stop.

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"M-yrYe6JwG0APbV4Q5m-I","name":"transition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

        specify a global transition effect

        ","params":[{"identifier":"effect","optional":false,"description":"

        (only "fade" is supported for now)

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

        a CSS color value

        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

        expressed in milliseconds

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"owxZrWE5LuMsvcm7VHPwD","name":"timer","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\ntimer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setTimeout(myFunction, 1000, true, param1, param2);\n// set a timer to call \"myFunction\" every 1000ms\ntimer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setInterval(myFunction, 1000, true, param1, param2);"}],"see":["Timer"],"type":"NSDoc","description":"

        the default global Timer instance

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mmcxo0URbAVdJTxtOGqi_","name":"TMXUtils","brief":"","type":"NSDoc","description":"

        a collection of utility functions for parsing TMX maps

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"MQlrORgD0AVytN3QmRMtO","name":"applyTMXProperties","brief":"","type":"FunctionDoc","description":"

        Apply TMX Properties to the given object

        ","params":[{"identifier":"obj","optional":false,"description":"

        object to apply the properties to

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

        TMX data object

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

        obj

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"o4ZqpQEB0JhKD-xYs_-Qy","name":"decode","brief":"","type":"FunctionDoc","description":"

        Decode a encoded array into a binary array

        ","params":[{"identifier":"data","optional":false,"description":"

        data to be decoded

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"encoding","optional":true,"default":"\"none\"","description":"

        data encoding ("csv", "base64", "xml")

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        Decoded data

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"xmr1NPM4FtdVvt-M0AHzU","name":"decodeBase64AsArray","brief":"","type":"FunctionDoc","description":"

        Decode a base64 encoded string into a byte array

        ","params":[{"identifier":"input","optional":false,"description":"

        Base64 encoded data

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"bytes","optional":true,"default":"1","description":"

        number of bytes per array entry

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        Decoded data

        ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2FGOH_mbpwy_tJsJBMYWJ","name":"decodeCSV","brief":"","type":"FunctionDoc","description":"

        Decode a CSV encoded array into a binary array

        ","params":[{"identifier":"input-","optional":false,"description":"

        CSV formatted data (only numbers, everything else will be converted to NaN)

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        Decoded data

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Q1qVPIgBW4dfRlOR0Q-pv","name":"decompress","brief":"","type":"FunctionDoc","description":"

        decompress and decode zlib/gzip data

        ","params":[{"identifier":"input","optional":false,"description":"

        Base64 encoded and compressed data

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"format","optional":false,"description":"

        compressed data format ("gzip","zlib", "zstd")

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        Decoded and decompress data

        ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d_CQ10XwVRKvmV1vufvQC","name":"parse","brief":"","type":"FunctionDoc","description":"

        Parse a XML TMX object and returns the corresponding javascript object

        ","params":[{"identifier":"xml","optional":false,"description":"

        XML TMX object

        ","dataType":{"tokens":[{"value":"Document","kind":"canonical"},{"value":"Document","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        Javascript object

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"Dl08B8pJDJcF9BWCuutlW","name":"setInflateFunction","brief":"","type":"FunctionDoc","description":"

        set the function used to inflate gzip/zlib data

        ","params":[{"identifier":"fn","optional":false,"description":"

        inflate function

        ","dataType":{"tokens":[{"value":"Func","kind":"canonical"},{"value":"Func","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Dhyf02TXEtyJnxiTOGk8H","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

        a collection of utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"qSHHfA2kawbM3K-Kidvcq","name":"agent","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of utility functons to ease porting between different user agents.

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ZAtqu5O75JbHZvru3gOfK","name":"prefixed","brief":"","access":"public","type":"FunctionDoc","description":"

        Get a vendor-prefixed property

        ","params":[{"identifier":"name","optional":false,"description":"

        Property name

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

        Object or element reference to access

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

        Value of property

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"OxdxJfpnz0Wib_SSaaz12","name":"setPrefixed","brief":"","access":"public","type":"FunctionDoc","description":"

        Set a vendor-prefixed property

        ","params":[{"identifier":"name","optional":false,"description":"

        Property name

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

        Property value

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

        Object or element reference to access

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

        true if one of the vendor-prefixed property was found

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"CHmwM6GTI6I-bwqwFRs5t","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of array utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"U0vkqb7AbWFSnWYDkNBek","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Select a random array element\nlet arr = [ \"foo\", \"bar\", \"baz\" ];\nconsole.log(me.utils.array.random(arr));"}],"type":"FunctionDoc","description":"

        return a random array element

        ","params":[{"identifier":"arr","optional":false,"description":"

        array to pick a element

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

        random member of array

        ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]},{"id":"_v-yF7VbhO0l4TbYpYpFI","name":"remove","brief":"","access":"public","type":"FunctionDoc","description":"

        Remove the specified object from the given Array

        ","params":[{"identifier":"arr","optional":false,"description":"

        array from which to remove an object

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}},{"identifier":"obj","optional":false,"description":"

        to be removed

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

        the modified Array\nlet arr = [ "foo", "bar", "baz" ];\n// remove "foo" from the arr...","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"extends":[],"implements":[]},{"id":"Vl5qyXOL6LWtM6MsFPu50","name":"weightedRandom","brief":"","access":"public","type":"FunctionDoc","description":"

        return a weighted random array element, favoring the earlier entries

        ","params":[{"identifier":"arr","optional":false,"description":"

        array to pick a element

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

        random member of array

        ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]}]},{"id":"h7VBxtSrmmns7QMOSIne_","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

        a collection of file utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"BzucGDExWhbhcPOG3SPWD","name":"getBasename","brief":"","access":"public","type":"FunctionDoc","description":"

        return the base name of the file without path info

        ","params":[{"identifier":"path","optional":false,"description":"

        path containing the basename to extract

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        the base name without path information.

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"pIcgcYP2WOq4KrrCRPvM-","name":"getExtension","brief":"","access":"public","type":"FunctionDoc","description":"

        return the extension of the file in the given path

        ","params":[{"identifier":"path","optional":false,"description":"

        path containing the filename and extension to extract

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        filename extension.

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"NTTLwqCQCH6eXxnQf9CYl","name":"getPath","brief":"","access":"public","type":"FunctionDoc","description":"

        return the path of the file

        ","params":[{"identifier":"path","optional":false,"description":"

        the copmplete file path to extract the path from

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        the extracted path

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"ooxLyyOq54yNB-W8eF8Gj","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"fzFwc4J__sq-de3R8P3Zc","name":"defer","brief":"","access":"public","examples":[{"caption":"","code":"// execute myFunc() when the stack is empty,\n// with the current context and [1, 2, 3] as parameter\nme.utils.function.defer(myFunc, this, 1, 2, 3);"}],"type":"FunctionDoc","description":"

        Executes a function as soon as the interpreter is idle (stack empty).

        ","params":[{"identifier":"func","optional":false,"description":"

        The function to be deferred.

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":false,"description":"

        The value to be passed as the this parameter to the target function when the deferred function is called

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"args","optional":false,"variadic":true,"description":"

        Optional additional arguments to carry for the function.

        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

        id that can be used to clear the deferred function using\nclearTimeout

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4kNk2RYPW7XuuFp_V_AX1","name":"throttle","brief":"","access":"public","type":"FunctionDoc","description":"

        returns a function that, when invoked will only be triggered at most once during a given window of time

        ","params":[{"identifier":"fn","optional":false,"description":"

        the function to be throttled.

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

        The delay in ms

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"no_trailing","optional":false,"description":"

        disable the execution on the trailing edge

        ","dataType":{"tokens":[{"value":"no_trailing","kind":"canonical"},{"value":"no_trailing","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        the function that will be throttled

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"extends":[],"implements":[]}]},{"id":"EaYaVxg23GzEaoeAP2xXZ","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of string utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"382AZee7XjkUk1k_Bet7z","name":"capitalize","brief":"","access":"public","type":"FunctionDoc","description":"

        converts the first character of the given string to uppercase

        ","params":[{"identifier":"str","optional":false,"description":"

        the string to be capitalized

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        the capitalized string

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"G4xuMzAJ9uydyAr0RWNuo","name":"isBoolean","brief":"","access":"public","type":"FunctionDoc","description":"

        returns true if the given string contains a true or false

        ","params":[{"identifier":"str","optional":false,"description":"

        the string to be tested

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        true if the string is either true or false

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TOMUgLw03Yvnq2sck_MzS","name":"isDataUrl","brief":"","access":"public","type":"FunctionDoc","description":"

        returns true if the given string is a data url in the data:[<mediatype>][;base64],<data> format.\n...","params":[{"identifier":"str","optional":false,"description":"

        the string (url) to be tested

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        true if the string is a data url

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kLB7Sc62ABVl_kkl6XCud","name":"isNumeric","brief":"","access":"public","type":"FunctionDoc","description":"

        returns true if the given string contains a numeric integer or float value

        ","params":[{"identifier":"str","optional":false,"description":"

        the string to be tested

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        true if string contains only digits

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tsgN3S2jzACjjjnrzMaZO","name":"toHex","brief":"","access":"public","type":"FunctionDoc","description":"

        convert a string to the corresponding hexadecimal value

        ","params":[{"identifier":"str","optional":false,"description":"

        the string to be converted

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        the converted hexadecimal value

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"ocywWkPEU_axmypAl84jq","name":"checkVersion","brief":"","access":"public","examples":[{"caption":"","code":"if (me.utils.checkVersion(\"7.0.0\") > 0) {\n console.error(\n \"melonJS is too old. Expected: 7.0.0, Got: 6.3.0\"\n );\n}"}],"type":"FunctionDoc","description":"

        Compare two version strings

        ","params":[{"identifier":"v1","optional":false,"description":"

        First version string to compare

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"v2","optional":false,"description":"

        second version string to compare

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        Return 0 if v1 == v2, or 1 if v1 is greater, or -1 if v2 is greater

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nMBOAWQVaNPIEcO4jb9jG","name":"getUriFragment","brief":"","access":"public","examples":[{"caption":"","code":"// http://www.example.com/index.html#debug&hitbox=true&mytag=value\nlet UriFragment = me.utils.getUriFragment();\nconsole.log(UriFragment[\"mytag\"]); //> \"value\""}],"type":"FunctionDoc","description":"

        parse the fragment (hash) from a URL and returns them into

        ","params":[{"identifier":"url","optional":true,"default":"document.location","description":"

        an optional params string or URL containing fragment (hash) params to be parsed

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        an object representing the deserialized params string.

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[],"members":[{"id":"4y0IoZGEw2Q1VSmZWXQ3W","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        display the debug panel (if preloaded)

        "},{"id":"54KiecKYZc0m9z6IsFy1_","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

        show/hide the debug panel (if preloaded)

        "},{"id":"tEK53pHwV5gPOu1uVu7K8","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        draw the hitbox in the debug panel (if enabled)

        "},{"id":"FMsMwrkjt3GE31nGj2kDy","name":"quadtree","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        draw the quadtree in the debug panel (if enabled)

        "},{"id":"Ie-MpCtN506an7xyzDAbf","name":"velocity","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        draw the entities velocity in the debug panel (if enabled)

        "},{"id":"J2lqraswLyjFdhHf35-wm","name":"webgl","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        force the renderer to WebGL

        "}]}]},{"id":"sAOYnHu37QpiejeoPd_aj","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"yYhEv9aNsLEqUkJOqXzHL","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

        A reference to the active Canvas or WebGL active renderer renderer

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VG4YDNLhNDQaWgXIr04au","name":"createCanvas","brief":"","type":"FunctionDoc","description":"

        Create and return a new Canvas element

        ","params":[{"identifier":"width","optional":false,"description":"

        width

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

        height

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"returnOffscreenCanvas","optional":true,"default":"false","description":"

        will return an OffscreenCanvas if supported

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

        a new Canvas element of the given size

        ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"eIqLALHypi-c4jsFEkEaN","name":"getParent","brief":"","type":"FunctionDoc","description":"

        return a reference to the parent DOM element holding the main canvas

        ","params":[],"returns":[{"description":"

        the HTML parent element

        ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0Wrm5q9Dz_n4Fw6UO0bK2","name":"init","brief":"","examples":[{"caption":"","code":"// init the video with a 640x480 canvas\nme.video.init(640, 480, {\n parent : \"screen\",\n renderer : me.video.AUTO,\n scale : \"auto\",\n scaleMethod : \"fit\"\n});"}],"type":"FunctionDoc","description":"

        Initialize the "video" system (create a canvas based on the given arguments, and the related renderer).

        ","params":[{"identifier":"width","optional":false,"description":"

        The width of the canvas viewport

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

        The height of the canvas viewport

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

        optional parameters for the renderer

        ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

        false if initialization failed (canvas not supported)

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"q6n_gZtwxkQrrxp1lggIt","name":"Application","brief":"","see":["game"],"type":"ClassDoc","description":"

        An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object statu...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"h8nJcSiCQl6TpXZ1QJgBE","name":"Settings","brief":"","see":["Application"],"type":"TypedefDoc","description":"

        Application & Renderer Settings definition.

        ","params":[{"identifier":"options.zoomX","optional":true,"default":"width","description":"

        The actual width of the canvas with scaling applied

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.zoomY","optional":true,"default":"height","description":"

        The actual height of the canvas with scaling applied

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.compositor","optional":true,"description":"

        a custom compositor class (WebGL only)

        ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"option.physic","optional":true,"default":"\"builtin\"","description":"

        the physic system to use (default: "builtin", or "none" to disable builtin physic)

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[],"members":[{"id":"lb6IPbvzjWHRBM_HvzAzT","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        whether to enable or not video scaling interpolation

        "},{"id":"LJc5cA43YTfQ-MuIhdMw_","name":"canvas","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given par..."},{"id":"sTyS3c-3d_a_d5dKD7ThS","name":"consoleHeader","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

        whether to display melonJS version and basic device information in the console

        "},{"id":"WZpbs5L2a1qWr_8NHu8-f","name":"depthTest","brief":"","access":"public","defaultValue":"\"sorting\"","scope":"static","type":"PropertyDoc","description":"

        ~Experimental~ the default method to sort object on the z axis in WebGL

        "},{"id":"_muoyk_Sc0u_GEn18rP8y","name":"parent","brief":"","access":"public","defaultValue":"document.body","scope":"static","type":"PropertyDoc","description":"

        the DOM parent element to hold the canvas in the HTML file

        "},{"id":"_l-lA21Hkf48EqjGHubw3","name":"powerPreference","brief":"","access":"public","defaultValue":"\"default\"","scope":"static","type":"PropertyDoc","description":"

        a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari a..."},{"id":"CqzhpS8HHkFirwCyYLNOa","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        if true the renderer will only use WebGL 1

        "},{"id":"vI0O8zpeJPigB0FkqpYCB","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

        renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

        "},{"id":"uSQzU6hU5ZaDosSly9-On","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

        enable scaling of the canvas ('auto' for automatic scaling)

        "},{"id":"z5OF58GoYtma7PpB65l76","name":"scaleMethod","brief":"","access":"public","defaultValue":"\"fit\"","scope":"static","type":"PropertyDoc","description":"

        screen scaling modes :

        \n
          \n
        • fit : Letterboxed; content is scaled to design aspect ..."},{"id":"okyT-Bmt7A-fiiU4oXtd7","name":"scaleTarget","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent c..."},{"id":"oUmHdR_Bc5MqfEmX3q0__","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          whether to allow transparent pixels in the front buffer (screen).

          "}]},{"id":"4qlDOWxN5tfM9QG3zTrY4","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          true when this app instance has been initialized

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Lm2zPkxObFeoHiTIVADK","name":"lastUpdate","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          Last time the game update loop was executed.
          \nUse this value to implement frame prediction in drawing events,\nfor crea...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YPxn1ya7MmtrMOu01io5A","name":"mergeGroup","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          when true, all objects will be added under the root world container.
          \nWhen false, a me.Container object wi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9-Vbxb8FS0QvJihEQb6M1","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the parent HTML element holding the main canvas of this application

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rM2FfCHPtPV3RyYsRPyJD","name":"pauseOnBlur","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// keep the default game instance running even when loosing focus\nme.game.pauseOnBlur = false;"}],"scope":"instance","type":"PropertyDoc","description":"

          Specify whether to pause this app when losing focus

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-AvCUYxe4Mc8sQOhR5iRo","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

          a reference to the active Canvas or WebGL active renderer renderer

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oNIvdtjwD_nMHUmaOjNRI","name":"resumeOnFocus","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          Specify whether to unpause this app when gaining back focus

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bjXsyg7KIvzsK_Ruj9ts3","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the given settings used when creating this application

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YbmJxCaa9GU0PPbregVdT","name":"sortOn","brief":"","scope":"instance","see":["World.sortOn"],"type":"PropertyDoc","description":"

          Specify the property to be used when sorting renderables for this application game world.\nAccepted values : "x",...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6tauJid2EzrERYiVLCGzV","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Specify whether to stop this app when losing focus

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-nm9B2fr5zKmM6Ae_c4bN","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the active stage "default" camera

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NLySoDiz6Hp2yM5Jyg6OG","name":"world","brief":"","scope":"instance","type":"PropertyDoc","description":"

          a reference to the game world,
          \na world is a virtual environment containing all the game objects

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p0NEaN_uHZBwDUR7lZ0sa","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

          The width of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The height of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

          The optional parameters for the application and default renderer

          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nOFyKayRxb0WlQlLlYc31","name":"draw","brief":"

          draw the active scene/stage associated to this game

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8oAIYKGXDtHlHCM7m2qox","name":"getParentElement","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns the parent HTML Element holding the main canvas of this application

          ","params":[],"returns":[{"description":"

          the parent HTML element

          ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aMDlhogEgrPiGMtC2rZ4R","name":"init","brief":"","scope":"instance","type":"MethodDoc","description":"

          init the game instance (create a physic world, update starting time, etc..)

          ","params":[{"identifier":"width","optional":false,"description":"

          The width of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The height of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

          The optional parameters for the application and default renderer

          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"COUkECGit_pOFYTk6HmhD","name":"onLevelLoaded","brief":"","examples":[{"caption":"","code":"// call myFunction () everytime a level is loaded\nme.game.onLevelLoaded = this.myFunction.bind(this);"}],"scope":"instance","type":"MethodDoc","description":"

          Fired when a level is fully loaded and all renderable instantiated.
          \nAdditionnaly the level id will also be passed to ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dvBL9JvCwtwOqDUwSOAQ4","name":"repaint","brief":"

          force the redraw (not update) of all objects

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DULeAfZUH_jmxEHR9eONP","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

          reset the game Object manager\ndestroy all current objects

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UMyU6SfMNiAkOlC_TpBey","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

          update all objects related to this game active scene/stage

          ","params":[{"identifier":"time","optional":false,"description":"

          current timestamp as provided by the RAF callback

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dXmZoJS3RNfIXdnxP8KGY","name":"updateFrameRate","brief":"","scope":"instance","see":["timer.maxfps","World.fps"],"type":"MethodDoc","description":"

          Update the renderer framerate using the system config variables.

          ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"JgVc9LZgVwxtb_0Y-nNyD","name":"BitmapText","brief":"","type":"ClassDoc","description":"

          a bitmap font object

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"7Wm9gAz8M0UX4gPmg_yme","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

          Define the renderable opacity
          \nSet to zero if you do not wish an object to be drawn

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yMz6C-cyATED-9wJcPX99","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether the renderable object will always update, even when outside of the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xZOiXOC8KsVpSnW0aUtZw","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          a reference to the parent object that contains this renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dr2t_Bee8TZjbLaC291Bi","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

          The anchor point is used for attachment behavior, and/or when applying transformations.
          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"90QaY09Mll4Q023GLaA2c","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M_3IlsOG-UvN7tNEePnBk","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EIzKAcj1PO-6UYzonZANC","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

          the renderable physic body

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SOQv_IRiONMnG1gudCZcg","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c8upa51Hk18mpuHLH8g2v","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tc3YwnAQmsAMZ7NVh8l2_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kiBKDeIMSjDwZFqkHclzP","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MD0U5sra_0aUO5L2BWjZn","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gGBJNRS5FSw7B0EFfG_1R","name":"fillStyle","brief":"","access":"public","scope":"instance","see":["Renderable#tint"],"type":"PropertyDoc","description":"

          defines the color used to tint the bitmap text

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r9Nw5DqpLeL0iP_vfFJgm","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I-34LliMaHstJ4ZblGGzr","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

          (G)ame (U)nique (Id)entifier"
          \na GUID will be allocated for any renderable object added
          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n3vj-IvPuTB_Gmx_TiJvQ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"orWU2gcNMqMJdH7Q0t301","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether the renderable object is visible and within the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aTdqK0AHox3AYJ-NLMUAU","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          when true the renderable will be redrawn during the next update cycle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y_0WSUb5mE7H4pUmHHH1M","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

          returns true if this renderable is flipped on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XnxJhx5HnsgBokXbXYyDa","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

          returns true if this renderable is flipped on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"11d8s0UamRPf-TbJumbtE","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k-bUatgDBx7jel23429C4","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          If true then physic collision and input events will not impact this renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RIMPf-bUnGRyPVlePcplZ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sY4UhS8rn4jL-9P-dNF3d","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cbMjBx8ZUMazmjd9TlU3I","name":"lineHeight","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

          Set the line spacing height (when displaying multi-line strings).
          \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tRgSi1DlH-PSk458Nmze2","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z5gRQUNR9JXhp6Bre8W1w","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T6f_yxj6LHy6ieegZV-Y5","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

          an event handler that is called when the renderable leave or enter a camera viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lpFB5rzI4iuf60W8LI1M2","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

          returns the parent application (or game) to which this renderable is attached to

          ","params":[],"returns":[{"description":"

          the parent application or undefined if not attached to any container/app

          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QUnWdMUru3bFHrE1kLVt6","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Array of points defining the Polygon
          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AlX_4mHtT5lRJaBd6J1By","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3SGnn_yOF_TYCzyKLHr-q","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bmD_FXI_x_hyd1b839BCX","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c_gpYwfZcdyBwmxzeVhf4","name":"textAlign","brief":"","access":"public","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

          Set the default text alignment (or justification),
          \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eSNvgKCH3m-k1rHn5ossf","name":"textBaseline","brief":"","access":"public","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

          Set the text baseline (e.g. the Y-coordinate for the draw operation),
          \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3pPgq3kRU7StppK74XFZu","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NEH-7T0SD2kTlVxJkUnmb","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6D6LQf9s-KlF-U6fBZYh1","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B3z5oVQB1BC6MsvcXxqco","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether to update this object when the game is paused.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GtHLyQFwt0EFadfTPlcsO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ntmobDzAmivnHTF3njpL5","name":"wordWrapWidth","brief":"","access":"public","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

          the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OJQ_7T93ulcYktLbqZQQd","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          the text to be displayed

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6QSqzjhv1TBHV-nsjJT9Q","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          font data

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0u5Svjbsw-Rw9iSDO4Hnp","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          font image

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xol_pIsKtUsmCtgH6YJka","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          scaled font size

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B82Ba4E3T-zaXx-mtVDoc","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the angle to the specified target

          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z8gZ7hPN5DWg5uOhFBgiN","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

          center the rectangle position around the given coordinates

          ","params":[{"identifier":"x","optional":false,"description":"

          the x coordinate around which to center this rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the y coordinate around which to center this rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KIgHdPWBsihr3Bm_LeCAG","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

          clone this rectangle

          ","params":[],"returns":[{"description":"

          new rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nwWt3q4dglfHJkNbbRTz_","name":"constructor","brief":"","examples":[{"caption":"","code":"// Use me.loader.preload or me.loader.load to load assets\nme.loader.preload([\n { name: \"arial\", type: \"binary\" src: \"data/font/arial.fnt\" },\n { name: \"arial\", type: \"image\" src: \"data/font/arial.png\" },\n])\n// Then create an instance of your bitmap font:\nlet myFont = new me.BitmapText(x, y, {font:\"arial\", text:\"Hello\"});\n// two possibilities for using \"myFont\"\n// either call the draw function from your Renderable draw function\nmyFont.draw(renderer, \"Hello!\", 0, 0);\n// or just add it to the word container\nme.game.world.addChild(myFont);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

          position of the text object

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          position of the text object

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

          the text configuration

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

          a font name to identify the corresponing source image

          ","dataType":{"tokens":[{"value":"string | Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"string | %1"}},{"identifier":"settings.fontData","optional":true,"default":"settings.font","description":"

          the bitmap font data corresponding name, or the bitmap font data itself

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"description":"

          size a scaling ratio

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.fillStyle","optional":true,"description":"

          a CSS color value used to tint the bitmapText (@see BitmapText.tint)

          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"1","description":"

          line width, in pixels, when drawing stroke

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

          horizontal text alignment

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

          the text baseline

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

          line spacing height

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

          anchor point to draw the text at

          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

          the maximum length in CSS pixel for a single segment of text

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

          a string, or an array of strings

          ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4QzBmt6d7BYpUZCGKuXM7","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

          Returns true if the rectangle contains the given point or rectangle

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point, or a rectangle to test

          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

          y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          True if the rectangle contain the given point or rectangle, otherwise false

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k4WSceH-xWXcaM9KRLTtk","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

          copy the position and size of the given rectangle into this one

          ","params":[{"identifier":"rect","optional":false,"description":"

          Source rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          new rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nb_rWG2ZKVF--3wNl9ssC","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the distance to the specified target

          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          distance

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UP8cAaPlhcaBnfLMPAaQH","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

          draw the bitmap font

          ","params":[{"identifier":"renderer","optional":false,"description":"

          Reference to the destination renderer instance

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VUjvXcY9xdtygbMqWgnsl","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if this rectangle is identical to the specified one

          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          true if equals

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fCihpNGvEJIfFJemr0R7Y","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

          flip the renderable on the horizontal axis (around the center of the renderable)

          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

          true to flip this renderable.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UhkzfuAJOOxmKOtVQwWBr","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

          flip the renderable on the vertical axis (around the center of the renderable)

          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

          true to flip this renderable.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KnuQihUA7xppK2PFpzG2d","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the renderable absolute position in the game world

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PbZcRdGp3khsHyV4h222E","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns the bounding box for this renderable

          ","params":[],"returns":[{"description":"

          bounding box Rectangle object

          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5kIphcJaVTmdhxaMi8o0r","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns a list of indices for all triangles defined in this polygon

          ","params":[],"returns":[{"description":"

          an array of vertex indices for all triangles forming this polygon.

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"5v9ZS3Er47jdjsgyTFnlR","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

          get the renderable alpha channel value

          ","params":[],"returns":[{"description":"

          current opacity value between 0 and 1

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lgqkQz5o6DyEgco4EzGda","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

          ","params":[],"returns":[{"description":"

          true if the vertices are convex, false if not, null if not computable

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m4qjhWAn0dnA0o7tE1CNP","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

          determines whether all coordinates of this rectangle are finite numbers.

          ","params":[],"returns":[{"description":"

          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6YlaWV2Vzl_y3PEeXPnpX","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

          Rotate this renderable towards the given target.

          ","params":[{"identifier":"target","optional":false,"description":"

          the renderable or position to look at

          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cRiI5cJB3BL6TRbs6nfRQ","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

          measure the given text size in pixels

          ","params":[{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          a TextMetrics object with two properties: width and height, defining the output dimensions

          ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LbhoglEEke44M0NGmTv3r","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

          ","params":[{"identifier":"response","optional":false,"description":"

          the collision response object

          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

          the other renderable touching this one (a reference to response.a or response.b)

          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

          true if the object should respond to the collision (its position and velocity will be corrected)

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cGyZwo_uFDY5rIEjUjGb9","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"twofzx8auuN69gcl2Ufv1","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if this rectangle is intersecting with the specified one

          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          true if overlaps

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XckGV7pauAxpvY7QC5Tyk","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

          restore the rendering context after drawing (automatically called by melonJS).

          ","params":[{"identifier":"renderer","optional":false,"description":"

          a renderer object

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"m2Um4l9Dr3dnARAQS9OZ0","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

          a renderer object

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"26OuY1zyvzluHyVVsWytu","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HelU6sAKLRYFu-BgZKHjc","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

          change the font display size

          ","params":[{"identifier":"scale","optional":false,"description":"

          ratio

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this object for chaining

          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lKW9aSdv7P_CJsa1abF0B","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

          Rotate this renderable by the specified angle (in radians).

          ","params":[{"identifier":"angle","optional":false,"description":"

          The angle to rotate (in radians)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

          an optional point to rotate around

          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vgBb8jNG1PvLLPy7qXxoz","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

          a number representing the abscissa of the scaling vector.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

          a number representing the ordinate of the scaling vector.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QYWRzFpDgY784jOz1VVrB","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

          scale the renderable around his anchor point

          ","params":[{"identifier":"v","optional":false,"description":"

          scaling vector

          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U729-OdUz37_dIibLwYpl","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

          change the font settings

          ","params":[{"identifier":"textAlign","optional":false,"description":"

          ("left", "center", "right")

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"scale","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this object for chaining

          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wf8AAjhpQY2aw1QibVtGN","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the renderable alpha channel value

          ","params":[{"identifier":"alpha","optional":false,"description":"

          opacity value between 0.0 and 1.0

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sPjoU_Z7B4jrEssqFTdm_","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

          set new value to the rectangle shape

          ","params":[{"identifier":"x","optional":false,"description":"

          position of the Rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          position of the Rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

          width of the rectangle, or an array of vector defining the rectangle

          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

          height of the rectangle, if a numeral width parameter is specified

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PrBGdnWvRidHCDsoIMxh_","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

          change the text to be displayed

          ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

          a string, or an array of strings

          ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

          this object for chaining

          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ms4ASbvps7KbyiDuau_1Y","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the vertices defining this Polygon

          ","params":[{"identifier":"vertices","optional":false,"description":"

          array of vector or vertice defining the Polygon

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

          this instance for objecf chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rw1X3Le7U9cHAsmz7QbYC","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          Shifts the Polygon to the given position vector.

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point to shift to

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"a436d4cCe55n5vYt1bo4T","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

          apply a 2d projection to this shapen

          ","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JzZdAtkDtVwO75ul6PdNR","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

          apply an isometric projection to this shape

          ","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XhHyJi4GdMiGPBgzvhVz_","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns a polygon whose edges are the same as this box.

          ","params":[],"returns":[{"description":"

          a new Polygon that represents this rectangle.

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lw-XuUupsB5RJ_kvG1R5-","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

          multiply the renderable currentTransform with the given matrix

          ","params":[{"identifier":"m","optional":false,"description":"

          the transformation matrix

          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MK8ciyAEYBeFjH8Lldfsm","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          translate the Polygon by the specified offset

          ","params":[{"identifier":"x","description":"

          x offset or a vector point to translate by

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

          y offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H70zcQHrDuPCWAN26UHr6","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

          merge this rectangle with another one

          ","params":[{"identifier":"rect","optional":false,"description":"

          other rectangle to union with

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          the union(ed) rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S81fPc8ZGlGWOY-qBYFaN","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

          update function (automatically called by melonJS).

          ","params":[{"identifier":"dt","optional":false,"description":"

          time since the last update in milliseconds.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          true if the renderable is dirty

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iu5Ekx2OuSS9n0GNX7v9F","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          update the bounding box for this Bitmap Text.

          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

          update the bounds size and position in (world) absolute coordinates

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          this Bitmap Text bounding box Rectangle object

          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MV07yo3woxMYoUqUrkFtj","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

          called when the anchor point value is changed

          ","params":[{"identifier":"x","optional":false,"description":"

          the new X value to be set for the anchor

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the new Y value to be set for the anchor

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"58HqQZiVjdCeUIPeiAGhx","name":"Body","brief":"","see":["Renderable.body"],"type":"ClassDoc","description":"

          a Generic Physic Body Object with some physic properties and behavior functionality, to add as a member of a Renderable.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"i5oITrk_9wOo8yTgWauvv","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          a reference to the parent object that contains this body,\nor undefined if it has not been added to one.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oBb3e_OiHpa2jpCaTVQE_","name":"bounce","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          the body bouciness level when colliding with other solid bodies :\na value of 0 will not bounce, a value of 1 will fully re...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i_OgfoaG90QiADRvWNqb1","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The AABB bounds box reprensenting this body

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u3bBMUA4RYPGFIRCiS3NS","name":"collisionType","brief":"","access":"public","defaultValue":"collision.types.ENEMY_OBJECT","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"PropertyDoc","description":"

          define the collision type of the body for collision filtering

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_WoDm1uZnR74yay6raMSK","name":"falling","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

          falling state of the body
          \ntrue if the object is falling
          \nfalse if the object is standing on something

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0RlURyzDGRHNtRIXPdTh1","name":"force","brief":"","access":"public","defaultValue":"<0,0>","examples":[{"caption":"","code":" // define a default maximum acceleration, initial force and friction\n this.body.force.set(1, 0);\n this.body.friction.set(0.4, 0);\n this.body.setMaxVelocity(3, 15);\n\n // apply a postive or negative force when pressing left of right key\n update(dt) {\n if (me.input.isKeyPressed(\"left\")) {\n this.body.force.x = -this.body.maxVel.x;\n } else if (me.input.isKeyPressed(\"right\")) {\n this.body.force.x = this.body.maxVel.x;\n }\n }"}],"scope":"instance","see":["Body.setMaxVelocity"],"type":"PropertyDoc","description":"

          body force to apply to this the body in the current step.\n(any positive or negative force will be cancelled after every wo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DSz4J7DTheHm9uNlY3eaK","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

          body friction

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3sMSzhEY-8m6R9Y-Rx1E-","name":"gravityScale","brief":"","access":"public","defaultValue":"1.0","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

          The degree to which this body is affected by the world gravity

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3S80BKK52tMiRjhpGOuHj","name":"ignoreGravity","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

          If true this body won't be affected by the world gravity

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UDhc6FDo48-D5bL2oze5d","name":"isStatic","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

          Either this body is a static body or not.\nA static body is completely fixed and can never change position or angle.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cCfopZTgUJrlvzsPzhd7O","name":"jumping","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

          jumping state of the body
          \nequal true if the body is jumping

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aOqjEuy6kwEZCm7LagDAF","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

          the body mass

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dViL6bGYftvsE9qNuEfuv","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

          max velocity (to limit body velocity)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bgpuCQ1ykaYZ9-Dd6olH3","name":"vel","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","see":["Body.force"],"type":"PropertyDoc","description":"

          The current velocity of the body.\nSee to apply a force if you need to modify a body velocity

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nYm5djVrOBLLEgq9Aj9cz","name":"addShape","brief":"","examples":[{"caption":"","code":"// add a rectangle shape\nthis.body.addShape(new me.Rect(0, 0, image.width, image.height));\n// add a shape from a JSON object\nthis.body.addShape(me.loader.getJSON(\"shapesdef\").banana);"}],"scope":"instance","type":"MethodDoc","description":"

          add a collision shape to this body
          \n(note: me.Rect objects will be converted to me.Polygon before being added)

          ","params":[{"identifier":"shape","optional":false,"description":"

          a shape or JSON object

          ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse | Point | Array | Bounds | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6<%7> | %8 | object"}}],"returns":[{"description":"

          the shape array length

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6_9T9SY3b3rU4urWEqf6u","name":"addVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

          add the given vertices to the body shape

          ","params":[{"identifier":"vertices","optional":false,"description":"

          an array of me.Vector2d points defining a convex hull

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

          the shape object for which to set the vertices

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4a2ZF-tIaTu3ccRIG4sD5","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

          the parent object this body is attached to

          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"shapes","optional":true,"description":"

          a initial shape, list of shapes, or JSON object defining the body

          ","dataType":{"tokens":[{"value":"Rect | Array | Polygon | Array | Line | Array | Ellipse | Array | Point | Array | Bounds | Array | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1 | %3<%2> | %4 | %5<%6> | %7 | %8<%9> | %10 | %11<%12> | %13 | %14<%15> | %16 | %17<%18> | object"}},{"identifier":"onBodyUpdate","optional":true,"description":"

          callback for when the body is updated (e.g. add/remove shapes)

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"_xFQ1Ob6kuOaxuxPpZzTa","name":"contains","brief":"","examples":[{"caption":"","code":"if (mySprite.body.contains(10, 10)) {\n // do something\n}\n// or\nif (mySprite.body.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

          Returns true if the any of the shape composing the body contains the given point.

          ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

          x coordinate or a vector point to check

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

          y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          true if contains

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"f9rdNcjsRhSlIeGhDWtLk","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all shapes of the physic body\nmySprite.body.forEach((shape) => {\n shape.doSomething();\n});\nmySprite.body.forEach((shape, index) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

          The forEach() method executes a provided function once per body shape element.
          \nthe callback function is invoked with ...","params":[{"identifier":"callback","optional":false,"description":"

          fnction to execute on each element

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

          value to use as this(i.e reference Object) when executing callback.

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Jz5ZmdG9f7LRUZMZYSnqN","name":"fromJSON","brief":"","examples":[{"caption":"","code":"// define the body based on the banana shape\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\").banana);\n// or ...\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\"), \"banana\");"}],"scope":"instance","see":["https://www.codeandweb.com/physicseditor"],"type":"MethodDoc","description":"

          add collision mesh based on a JSON object\n(this will also apply any physic properties defined in the given JSON file)

          ","params":[{"identifier":"json","optional":false,"description":"

          a JSON object as exported from a Physics Editor tool

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"id","optional":true,"description":"

          an optional shape identifier within the given the json object

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          how many shapes were added to the body

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"482vKs3MRD6GJeGGAnqTo","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns the AABB bounding box for this body

          ","params":[],"returns":[{"description":"

          bounding box Rectangle object

          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ejku1el-QSuF3AEY3xbys","name":"getShape","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the collision shape at the given index

          ","params":[{"identifier":"index","optional":true,"default":"0","description":"

          the shape object at the specified index

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          shape a shape object if defined

          ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"extends":[],"implements":[]},{"id":"7JszHftpEpJTRTo7iM9hT","name":"removeShape","brief":"","scope":"instance","type":"MethodDoc","description":"

          remove the specified shape from the body shape list

          ","params":[{"identifier":"shape","optional":false,"description":"

          a shape object

          ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          the shape array length

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t9fL0gOtVBBM1gqP2AKmx","name":"removeShapeAt","brief":"","scope":"instance","type":"MethodDoc","description":"

          remove the shape at the given index from the body shape list

          ","params":[{"identifier":"index","optional":false,"description":"

          the shape object at the specified index

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          the shape array length

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L_XF3HBdQ8onhBx3fBZmk","name":"respondToCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

          the built-in function to solve the collision response

          ","params":[{"identifier":"response","optional":false,"description":"

          the collision response object (see {@link ResponseObject})

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"xacCA83IC2ZX_iGrakKho","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

          Rotate this body (counter-clockwise) by the specified angle (in radians).\nUnless specified the body will be rotated around...","params":[{"identifier":"angle","optional":false,"description":"

          The angle to rotate (in radians)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"default":"Body.getBounds().center","description":"

          an optional point to rotate around

          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a7_fFcMD1EaZ5cIGRDCjR","name":"setCollisionMask","brief":"","examples":[{"caption":"","code":"// filter collision detection with collision shapes, enemies and collectables\nbody.setCollisionMask(me.collision.types.WORLD_SHAPE | me.collision.types.ENEMY_OBJECT | me.collision.types.COLLECTABLE_OBJECT);\n...\n// disable collision detection with all other objects\nbody.setCollisionMask(me.collision.types.NO_OBJECT);"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

          By default all physic bodies are able to collide with all other bodies,
          \nbut it's also possible to specify 'collision ...","params":[{"identifier":"bitmask ","optional":true,"default":" collision.types.ALL_OBJECT","description":"

          the collision mask

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R_zwOTS_iSiPeTGQGq43K","name":"setCollisionType","brief":"","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

          define the collision type of the body for collision filtering

          ","params":[{"identifier":"type","optional":false,"description":"

          the collision type

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sHMv_nj9H4kIdY2fAVlDX","name":"setFriction","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the body default friction

          ","params":[{"identifier":"x","optional":false,"default":"0","description":"

          horizontal friction

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

          vertical friction

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Aruw23Sub1IdursNuHowm","name":"setMaxVelocity","brief":"","scope":"instance","type":"MethodDoc","description":"

          cap the body velocity (body.maxVel property) to the specified value

          ","params":[{"identifier":"x","optional":false,"description":"

          max velocity on x axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          max velocity on y axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wOqeThL5ZGDLOJ-fMqKNE","name":"setStatic","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the body as a static body\nstatic body do not move automatically and do not check againt collision with others

          ","params":[{"identifier":"isStatic","optional":true,"default":"true","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"h2KBvq_UDtef7cl-U0P_3","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the body vertices to the given one

          ","params":[{"identifier":"vertices","optional":false,"description":"

          an array of me.Vector2d points defining a convex hull

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

          the shape object for which to set the vertices

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"true","description":"

          either to reset the body definition before adding the new vertices

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_IbFy1cL5a3FJD0hA-bR3","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

          Updates the parent's position as well as computes the new body's velocity based\non the values of force/friction. Velocity...","params":[{"identifier":"dt","optional":false,"description":"

          time since the last update in milliseconds.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          true if resulting velocity is different than 0

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"MMFCKHfUEMx4FCePq6uzm","name":"Bounds","brief":"","type":"ClassDoc","description":"

          a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"JpxhqvcaknQBL_qKOLaG-","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZxPBRO4jLkQ1nliP0Np-m","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

          return the center position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kqtOdkmSnFuLEDcDWwhwV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the x axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SjaypRXxz7sUudpCt7LxG","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the y axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XsY6XCiqiBBFtrvHcpubn","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oMxvyTfCHG0a36coMzBzx","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8307LG3jDyzyjx85zI8ig","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1zMc0gJUqQA8mMXfFV2ln","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ljQcovyl9J5oJ7kkhOilO","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

          the object type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"koYs2YGreR4CDtc2wSyjI","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"32mDa19nxiIM-Y7fQlFQd","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

          x position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FPjOlpyOL256O_ub9AJMT","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

          y position of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwhb06siytjfm2Iauk3Bc","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

          add the given vertices to the bounds definition.

          ","params":[{"identifier":"vertices","optional":false,"description":"

          an array of Vector2d or Point

          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

          either to reset the bounds before adding the new vertices

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"k5JpSMUqeJ6vX94G5LiF8","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          add the given bounds to the bounds definition.

          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

          either to reset the bounds before adding the new vertices

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"H9Q10DGkCDcW4JTuOhd6y","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

          add the given quad coordinates to this bound definition, multiplied by the given matrix

          ","params":[{"identifier":"x0","optional":false,"description":"

          left X coordinates of the quad

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

          top Y coordinates of the quad

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

          right X coordinates of the quad

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

          bottom y coordinates of the quad

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

          an optional transform to apply to the given frame coordinates

          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"avz9cMujqdbk4Ktl0olYl","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

          add the given point to the bounds definition.

          ","params":[{"identifier":"point","optional":false,"description":"

          the vector or point to be added to the bounds

          ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

          an optional transform to apply to the given point (if the given point is a Vector2d)

          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"M-2i0DNy-1x3fbl2FAlvY","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

          center the bounds position around the given coordinates

          ","params":[{"identifier":"x","optional":false,"description":"

          the x coordinate around which to center this bounds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the y coordinate around which to center this bounds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PtVOa_5XMGPGDShNEIgG9","name":"clear","brief":"

          reset the bound

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vYfp0dJUsX-BE80eoQjs1","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

          clone this bounds

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FjQIKauaT7_R6rj0zYAQv","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"vertices","optional":true,"description":"

          an array of Vector2d or Point

          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"-7icY3tVe-vk-lEEGzzIM","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

          Returns true if the bounds contains the given point.

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point to check

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

          y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          True if the bounds contain the point, otherwise false

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pQML4YpnNrXsjxtGMwxVu","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

          determines whether all coordinates of this bounds are finite numbers.

          ","params":[],"returns":[{"description":"

          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"y6aFYKE0yD0Idp_Dmma4v","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns true if the two bounds intersect.

          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

          True if the bounds overlap, otherwise false

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kCMZlTXSRJMtuWWegGtOT","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

          sets the bounds to the given min and max value

          ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"P2pn6ffLF8rVyRNmqI3gb","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          Shifts the bounds to the given x, y position.

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point to shift to

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XnK9suWEJLzAtls7M_hEo","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns a polygon whose edges are the same as this bounds.

          ","params":[],"returns":[{"description":"

          a new Polygon that represents this bounds.

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YtySO3NkBqF3X8KAUzat5","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          Translates the bounds by the given point

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point to translate by

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SwrUTi8AUzS17LBchmc7d","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

          Updates bounds using the given vertices

          ","params":[{"identifier":"vertices","optional":false,"description":"

          an array of Vector2d or Point

          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"PkkOy03IdokzZoUZsdVPy","name":"Camera2d","brief":"","type":"ClassDoc","description":"

          a 2D orthographic camera

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"r0ceeC1UPcMClSCjE1T7v","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

          Axis definition

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"6rtvfNEyjDzAB4IqGgoEb","name":"BOTH","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          both axis

          "},{"id":"8UvZF5p5oH6ci_7S5I8NY","name":"HORIZONTAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          horizontal axis only

          "},{"id":"vEaZ3sZso-KYnT39kAyOg","name":"NONE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          no axis

          "},{"id":"YyfZku-mqYJ3A7HYRZ6LA","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          vertical axis only

          "}]},{"id":"9Q3dk0L2PYT2FBdCMq7Jh","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

          Define the renderable opacity
          \nSet to zero if you do not wish an object to be drawn

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"71U3gy6GDx1vD8eF5o_Gf","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether the renderable object will always update, even when outside of the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4_5O5cVnAc3U9k-YofmmU","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          a reference to the parent object that contains this renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JeZCPVP011z-2uBSyLDtY","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

          The anchor point is used for attachment behavior, and/or when applying transformations.
          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_OC8YgJOs3TFiq3OgNWs2","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PXQPZVrzC4XmmyYafe8vP","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yli2HDKtrgGLrKU5sech6","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

          the renderable physic body

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7c_mOSqhHSWiFH8aS1LTs","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A6ueBgwT-tmpiqQPaT89h","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Camera bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o8uJRCpXKBF4DKStnniFI","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yNF568XBAtQNg-xN9M5j0","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3w6HtoxZ08EKMG-c0ycCx","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J16CjLX6rcSLPv8oa6qi8","name":"damping","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

          Camera damping for smooth transition [0 .. 1].\n1 being the maximum value and will snap the camera to the target position

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"twSpVAHGMn4YzHBzalitw","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SuwAyMHIqPGyM3leQmdG4","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

          the furthest point relative to the camera.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mmxFuisVyboCSbRdVe2o0","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"so0iG1cbMKPgCx3fA2Fqw","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

          (G)ame (U)nique (Id)entifier"
          \na GUID will be allocated for any renderable object added
          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g4AZogTXrJRSjow4bzbAD","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x3i9R25xILYhjoDhBbi-R","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether the renderable object is visible and within the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"544U1pLjh0As_j1uH4YAE","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          when true the renderable will be redrawn during the next update cycle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VzRHxqT47pjzIdDwplAQw","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

          returns true if this renderable is flipped on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TWM39Gw2cfqW1J3eWCHL0","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

          returns true if this renderable is flipped on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gNZMhsDuy9chZw0Q4ZK5p","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FdcXX6CT97NPldPHgblGw","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          If true then physic collision and input events will not impact this renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rbCBWL3GB1_xgvUtyDBnz","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LxS1v0knYO3rlYM9CBgpT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zup1cdrgeiWARwv9S6aI4","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bSKU0dPlmH5EFZPoVkqE6","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b5KelXLUE-1-gjMfbM4h-","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

          the closest point relative to the camera

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CrJcOxAmnbIYa5NA11iYj","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

          an event handler that is called when the renderable leave or enter a camera viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gk-r4wUeOzq1gYMXmIjJv","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

          returns the parent application (or game) to which this renderable is attached to

          ","params":[],"returns":[{"description":"

          the parent application or undefined if not attached to any container/app

          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R1BY6_M8AuFRWw0X37bCu","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Array of points defining the Polygon
          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yd2hGVlHM7F0JCBr_uKIV","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LiEgkdi6IomdEywos3DDm","name":"projectionMatrix","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the default camera projection matrix\n(2d cameras use an orthographic projection by default).

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cmQRNdMETbv0xW90nS7Hq","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1dMgMSJivaQbRQmQ-aDKV","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z3uWrbmZejV3xCnxsTPyR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mz_2W9dskIReVlwk658qX","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aCb-NsDMFn7wTHowlaPv0","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YFbveFZXusvaDGe1IO3ZU","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          Whether to update this object when the game is paused.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9svHcGkAerbQidKbLmWG4","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lRcyyBeANA3eR6yWa1PvL","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          enable or disable damping

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z7THqu4xUh6FG_uDjMHpz","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the angle to the specified target

          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-LZmm1r5ZSmGBFAwR4l_A","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

          center the rectangle position around the given coordinates

          ","params":[{"identifier":"x","optional":false,"description":"

          the x coordinate around which to center this rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the y coordinate around which to center this rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eONEfjMRxJ8f7iLnbrUhP","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

          clone this rectangle

          ","params":[],"returns":[{"description":"

          new rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_faURET-ql4RAzJCR_64X","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"minX","optional":false,"description":"

          start x offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"description":"

          start y offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"description":"

          end x offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"description":"

          end y offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eD31fFAW3hgrDGrYplI0P","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

          Returns true if the rectangle contains the given point or rectangle

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point, or a rectangle to test

          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

          y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          True if the rectangle contain the given point or rectangle, otherwise false

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gpFaJf13BH4B4Hc7IQRJ0","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

          copy the position and size of the given rectangle into this one

          ","params":[{"identifier":"rect","optional":false,"description":"

          Source rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          new rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XG3C_fri-EMvEQ3qB0Old","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the distance to the specified target

          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          distance

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"63-Z6UidNNyS-2WS4TWax","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

          Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

          a renderer instance

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

          the viewport to (re)draw

          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KuobmxeKINFdYE42JwU2A","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if this rectangle is identical to the specified one

          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          true if equals

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uuL4Q-3kcV0XzpPdzThxM","name":"fadeIn","brief":"","examples":[{"caption":"","code":"// flash the camera to white for 75ms\nme.game.viewport.fadeIn(\"#FFFFFF\", 75);"}],"scope":"instance","type":"MethodDoc","description":"

          fadeIn effect

          \nfade to the specified color

          ","params":[{"identifier":"color","optional":false,"description":"

          a CSS color value

          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

          expressed in milliseconds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

          callback once effect is over

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"X3a4wVbth7zj_XA9yx0wK","name":"fadeOut","brief":"","examples":[{"caption":"","code":"// fade the camera to white upon dying, reload the level, and then fade out back\nme.game.viewport.fadeIn(\"#fff\", 150, function() {\n me.audio.play(\"die\", false);\n me.level.reload();\n me.game.viewport.fadeOut(\"#fff\", 150);\n});"}],"scope":"instance","type":"MethodDoc","description":"

          fadeOut(flash) effect

          \nscreen is filled with the specified color and slowly goes back to normal

          ","params":[{"identifier":"color","optional":false,"description":"

          a CSS color value

          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

          expressed in milliseconds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

          callback once effect is over

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"TqOVZ4CIEqdd51ffI5cFo","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

          flip the renderable on the horizontal axis (around the center of the renderable)

          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

          true to flip this renderable.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nIPFWzpxtwexWD3CzFUtP","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

          flip the renderable on the vertical axis (around the center of the renderable)

          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

          true to flip this renderable.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"piDvoKLu4NnvpuK-pc4WO","name":"focusOn","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the camera position around the specified object

          ","params":[{"identifier":"target","optional":false,"description":"

          the renderable to focus the camera on

          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"JdAUjiXPQxNIY3-e7ISYt","name":"follow","brief":"","examples":[{"caption":"","code":"// set the camera to follow this renderable on both axis, and enable damping\nme.game.viewport.follow(this, me.game.viewport.AXIS.BOTH, 0.1);"}],"scope":"instance","type":"MethodDoc","description":"

          set the camera to follow the specified renderable.
          \n(this will put the camera center around the given target)

          ","params":[{"identifier":"target","optional":false,"description":"

          renderable or position vector to follow

          ","dataType":{"tokens":[{"value":"Renderable | Vector2d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

          Which axis to follow (see {@link Camera2d.AXIS})

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"damping","optional":true,"default":"1","description":"

          default damping value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_kijihpj59xAY21yGj2QQ","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the renderable absolute position in the game world

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k3zwPJhc8Wrv89JSOPWuO","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns the bounding box for this renderable

          ","params":[],"returns":[{"description":"

          bounding box Rectangle object

          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V6oym3Ul5LMpHXiQZQrwU","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns a list of indices for all triangles defined in this polygon

          ","params":[],"returns":[{"description":"

          an array of vertex indices for all triangles forming this polygon.

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"E_SfpVNb47Ba9poyKx2mm","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

          get the renderable alpha channel value

          ","params":[],"returns":[{"description":"

          current opacity value between 0 and 1

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0PQiP8W1g6L0IrBy1UjIO","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

          ","params":[],"returns":[{"description":"

          true if the vertices are convex, false if not, null if not computable

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"g-HXZ2l7MiROj4o9t1LDa","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

          determines whether all coordinates of this rectangle are finite numbers.

          ","params":[],"returns":[{"description":"

          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AQuPa6KA3aOFnXpdZ--O5","name":"isVisible","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if the specified renderable is in the camera

          ","params":[{"identifier":"obj","optional":false,"description":"

          to be checked against

          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"floating ","optional":true,"default":" obj.floating","description":"

          if visibility check should be done against screen coordinates

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          true if within the viewport

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0jTwZ0QGe92UgDXjDan-s","name":"localToWorld","brief":"","scope":"instance","type":"MethodDoc","description":"

          convert the given "local" (screen) coordinates into world coordinates

          ","params":[{"identifier":"x","optional":false,"description":"

          the x coordinate of the local point to be converted

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the y coordinate of the local point to be converted

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

          an optional vector object where to set the converted value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uvHOm5h708h794uc5Psqg","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

          Rotate this renderable towards the given target.

          ","params":[{"identifier":"target","optional":false,"description":"

          the renderable or position to look at

          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dC4ZUW_4xxxebjVCWjziR","name":"move","brief":"","examples":[{"caption":"","code":"// Move the camera up by four pixels\nme.game.viewport.move(0, -4);"}],"scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

          move the camera upper-left position by the specified offset.

          ","params":[{"identifier":"x","optional":false,"description":"

          horizontal offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          vertical offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"b6wONhZbO2banqlWUmoUK","name":"moveTo","brief":"","scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

          move the camera upper-left position to the specified coordinates

          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"njdQ-pDuM6AS-kFk3s8Db","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

          ","params":[{"identifier":"response","optional":false,"description":"

          the collision response object

          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

          the other renderable touching this one (a reference to response.a or response.b)

          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

          true if the object should respond to the collision (its position and velocity will be corrected)

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4yNoUVqelwwF8FOa9Pjg8","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zkYuxhGwjiTvInUKsJDNp","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if this rectangle is intersecting with the specified one

          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          true if overlaps

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NdlTj9HtEDffnaswxJq0J","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

          restore the rendering context after drawing (automatically called by melonJS).

          ","params":[{"identifier":"renderer","optional":false,"description":"

          a renderer object

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"pXXWWLKgTRlAq3kNepIQQ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

          a renderer object

          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"K8BT95Z9k9pmaAQOhmgD-","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NVYbmBCzMg9ocNlW6YzmY","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

          reset the camera position to specified coordinates

          ","params":[{"identifier":"x","optional":true,"default":"0","description":"

          initial position of the camera on the x axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

          initial position of the camera on the y axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"upxK3bM5HFV2-2oXsJmnK","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

          resize the camera

          ","params":[{"identifier":"w","optional":false,"description":"

          new width of the camera

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

          new height of the camera

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this camera

          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"keWZj9pWVm_P10eHAZQCc","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

          Rotate this renderable by the specified angle (in radians).

          ","params":[{"identifier":"angle","optional":false,"description":"

          The angle to rotate (in radians)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

          an optional point to rotate around

          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hOFHkd82FegbshD8UnFxs","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

          a number representing the abscissa of the scaling vector.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

          a number representing the ordinate of the scaling vector.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KsF-eKwBrSv-pzGsNn-GP","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

          scale the renderable around his anchor point

          ","params":[{"identifier":"v","optional":false,"description":"

          scaling vector

          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TksMoQtcX_M_IA5harVEu","name":"setBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the camera boundaries (set to the world limit by default).\nthe camera is bound to the given coordinates and cannot mov...","params":[{"identifier":"x","optional":false,"description":"

          world left limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          world top limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

          world width limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

          world height limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0zDdthPUNzo3o7qyoz7ki","name":"setDeadzone","brief":"","scope":"instance","see":["Camera2d.follow"],"type":"MethodDoc","description":"

          change the deadzone settings.\nthe "deadzone" defines an area within the current camera in which\nthe followed ren...","params":[{"identifier":"w","optional":false,"description":"

          deadzone width

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

          deadzone height

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9nPOkayQGR6Utz-QHBJQj","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the renderable alpha channel value

          ","params":[{"identifier":"alpha","optional":false,"description":"

          opacity value between 0.0 and 1.0

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sNJqPYMhzBdcf5oPv8SdA","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

          set new value to the rectangle shape

          ","params":[{"identifier":"x","optional":false,"description":"

          position of the Rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          position of the Rectangle

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

          width of the rectangle, or an array of vector defining the rectangle

          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

          height of the rectangle, if a numeral width parameter is specified

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          this rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SAI5-sKagaBVA1q8ILJVn","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

          set the vertices defining this Polygon

          ","params":[{"identifier":"vertices","optional":false,"description":"

          array of vector or vertice defining the Polygon

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

          this instance for objecf chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RetC2_-JN1FRLtNjC8hpS","name":"shake","brief":"","examples":[{"caption":"","code":"// shake it baby !\nme.game.viewport.shake(10, 500, me.game.viewport.AXIS.BOTH);"}],"scope":"instance","type":"MethodDoc","description":"

          shake the camera

          ","params":[{"identifier":"intensity","optional":false,"description":"

          maximum offset that the screen can be moved\nwhile shaking

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

          expressed in milliseconds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

          specify on which axis to apply the shake effect (see {@link Camera2d.AXIS})

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

          callback once shaking effect is over

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"force","optional":true,"description":"

          if true this will override the current effect

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7L51Z_o2AW9f3ULQXnycF","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          Shifts the Polygon to the given position vector.

          ","params":[{"identifier":"x","description":"

          x coordinate or a vector point to shift to

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5QVoH83dVSrtByxC0hULf","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

          apply a 2d projection to this shapen

          ","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lIqGrvJnKLtxcRuVejjSP","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

          apply an isometric projection to this shape

          ","params":[],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TXrMhS9VNDjrQWlrytotb","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

          Returns a polygon whose edges are the same as this box.

          ","params":[],"returns":[{"description":"

          a new Polygon that represents this rectangle.

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zRyA6P52FUPYH-BUsBEiF","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

          multiply the renderable currentTransform with the given matrix

          ","params":[{"identifier":"m","optional":false,"description":"

          the transformation matrix

          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XYgsKwW4IGbYLMs9S2UJ_","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

          translate the Polygon by the specified offset

          ","params":[{"identifier":"x","description":"

          x offset or a vector point to translate by

          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

          y offset

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Reference to this object for method chaining

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LCZD3zGRhi6UpUCmG1x74","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

          unfollow the current target

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2QWtQIAY7lWh38VaHfg1T","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

          merge this rectangle with another one

          ","params":[{"identifier":"rect","optional":false,"description":"

          other rectangle to union with

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          the union(ed) rectangle

          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s9xAYgIwSQp9VccbByF9P","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

          update function (automatically called by melonJS).

          ","params":[{"identifier":"dt","optional":false,"description":"

          time since the last update in milliseconds.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          true if the renderable is dirty

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"i5MPTids8L9NAAmjquW0q","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

          update the bounding box for this shape.

          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

          update the bounds size and position in (world) absolute coordinates

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          this shape bounding box Rectangle object

          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wc1XIIVbpH8jaONt-mJHg","name":"worldToLocal","brief":"","scope":"instance","type":"MethodDoc","description":"

          convert the given world coordinates into "local" (screen) coordinates

          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

          an optional vector object where to set the converted value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          a vector with the converted local coordinates

          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qjq-I5rRuwsXnTfExmSG0","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

          called when the anchor point value is changed

          ","params":[{"identifier":"x","optional":false,"description":"

          the new X value to be set for the anchor

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          the new Y value to be set for the anchor

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"BEJHHSX6dzuWGDLRS4KZj","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

          a canvas renderer object

          ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"ICyVcRQcDfLW1mnFb8rRV","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

          the default method to sort object ("sorting", "z-buffer")

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cn0nxhtfIZarKD9KEfSWb","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the requested video size ratio

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"obTEY4BQQlMcRY0ezR3We","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          return the height of the canvas which this renderer draws to

          ","params":[],"returns":[{"description":"

          height of the system Canvas

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"giRBkvq0BPAM4bKE0zAKx","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          true if the current rendering context is valid

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VcAtywdDX0_wFw_ngjlCQ","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The Path2D instance used by the renderer to draw primitives

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nfaOzUyURuVFIBaXfsgM8","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The renderer renderTarget

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FnMkWyxILWLhO6KOjOv8g","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

          the scaling ratio to be applied to the main canvas

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-NZmcfpXlKp0Se8jDc1DM","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The given constructor options

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tfqpMpfVO3GAXUI1U9yd2","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

          The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UZzGTvycC138ZA-nYqASo","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          return the width of the canvas which this renderer draws to

          ","params":[],"returns":[{"description":"

          width of the system Canvas

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_SuSddbIMHQ11oZuV9fOJ","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

          starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LkjP1S6Oce2PnO2BYc4jJ","name":"clear","brief":"

          prepare the framebuffer for drawing a new frame

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m0DbYjbrNFkag26xADd2X","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

          Clears the main framebuffer with the given color

          ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

          CSS color.

          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

          Allow transparency [default] or clear the surface completely [true]

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"82VKbI89O3CRHmH4NUmM-","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

          disable (remove) the rendering mask set through setMask.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IqHXe6qTkSAW5SwVxP_XD","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

          Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

          ","params":[{"identifier":"x","optional":false,"description":"

          x axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          y axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

          The rectangle's width.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The rectangle's height.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Bmjlx34XTtdaXjmBcL7Jt","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

          clear the rendering tint set through setTint.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qvZhplJB08SYSPPfORD6T","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

          clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1ltsm62aTG8b7mtmU_jaj","name":"closePath","brief":"

          add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kVRFL9vz68lioMMs71o-5","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

          optional parameters for the renderer

          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DyELeAK_8BofFeQ2LSXrs","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

          Create a pattern with the specified repetition

          ","params":[{"identifier":"image","optional":false,"description":"

          Source image to be used as the pattern's image

          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

          Define how the pattern should be repeated

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cRmYt0KaADuCBnFlhN-go","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

          Draw an image onto the main using the canvas api

          ","params":[{"identifier":"image","optional":false,"description":"

          An element to draw into the context.

          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

          The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

          The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

          The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

          The height of the sub-rectangle of the source image to draw into the destination context.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

          The X coordinate in the destination canvas at which to place the top-left corner of the source image.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

          The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

          The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

          The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"44PmEDkJNunexGdWyrJG5","name":"drawPattern","brief":"","scope":"instance","see":["CanvasRenderer#createPattern"],"type":"MethodDoc","description":"

          Draw a pattern within the given rectangle.

          ","params":[{"identifier":"pattern","optional":false,"description":"

          Pattern object

          ","dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aWZtjSGKaFJ--1JQNI4Rq","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

          fill the given shape or the current defined path

          ","params":[{"identifier":"shape","optional":true,"description":"

          a shape object to fill

          ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"XzEZwmACiC3wFC6FyqbvO","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

          Fill an arc at the specified coordinates with given radius, start and end points

          ","params":[{"identifier":"x","optional":false,"description":"

          arc center point x-axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          arc center point y-axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

          start angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

          end angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

          draw arc anti-clockwise

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"pm3WBJ1zwek5_XK7GDp5H","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

          Fill an ellipse at the specified coordinates with given radius

          ","params":[{"identifier":"x","optional":false,"description":"

          ellipse center point x-axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          ellipse center point y-axis

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

          horizontal radius of the ellipse

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

          vertical radius of the ellipse

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_yT-Ocn4NrWVfY3w93LWE","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

          Fill a line of the given two points

          ","params":[{"identifier":"startX","optional":false,"description":"

          the start x coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

          the start y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

          the end x coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

          the end y coordinate

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iEpH0FTLGiUfZryBlHXiX","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

          Draw a a point at the specified coordinates

          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NfP8R1pi7ghA7v0B-gOwz","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

          Fill the given me.Polygon on the screen

          ","params":[{"identifier":"poly","optional":false,"description":"

          the shape to draw

          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c0rY8Us56RhM_fYTnSo3q","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

          Draw a filled rectangle at the specified coordinates

          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fF5ulQHKwJebp2nOXC81R","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

          Draw a rounded filled rectangle at the specified coordinates

          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R9tyo19Lr25Q7wZPiJwdf","name":"flush","brief":"

          render the main framebuffer on screen

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mDAjyVrz-mt3FeFjIkpVt","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

          returns the current blend mode for this renderer

          ","params":[],"returns":[{"description":"

          blend mode

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"bekoKRNLhuMLk2EKNM-OA","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

          return a reference to the current render target corresponding canvas which this renderer draws to

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ClfLs4laGd0XZzGQinR3h","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

          get the current fill & stroke style color.

          ","params":[],"returns":[{"description":"

          current global color

          ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v7KiRG766yvYue6tzq4GQ","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

          return a reference to the current render target corresponding Context

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"bC3LqGVyI6Tr9I8m5snPg","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

          Return the global alpha

          ","params":[],"returns":[{"description":"

          global alpha value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ySZmvyeua9fBnulyVei97","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

          return a reference to the screen canvas

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Veh_gNsVBL45A9u9Myygl","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

          return a reference to the screen canvas corresponding 2d Context
          \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"daGPClBoBM2_sT9t_urcR","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

          return the current global alpha

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a5t3KtoJObGYD_6UIOXYP","name":"lineTo","brief":"

          adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

          ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"mKP5lmkFwba4Pxp3rkmfH","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

          begins a new sub-path at the point specified by the given (x, y) coordinates.

          ","params":[{"identifier":"x","optional":false,"description":"

          The x axis of the point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          The y axis of the point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZAC-_Qffw0n_hJngnl01T","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

          check if the given rect or bounds overlaps with the renderer screen coordinates

          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

          true if overlaps

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tpLBKCSReqtIDPCqQgRjY","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

          creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

          ","params":[{"identifier":"x","optional":false,"description":"

          The x axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          The y axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

          The rectangle's width.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The rectangle's height.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4PC9w405ZTxPdoFu59a91","name":"reset","brief":"

          Reset context state

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"btdcVGUKwBbPGHnCKD97d","name":"resetTransform","brief":"

          Reset the canvas transform to identity

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gk4BWlh2fa4saBS8VFcEF","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

          resizes the system canvas

          ","params":[{"identifier":"width","optional":false,"description":"

          new width of the canvas

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          new height of the canvas

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lErlbpma0Jn_YTfyJx8xv","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

          restores the most recently saved renderer state by popping the top entry in the drawing state stack

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HEFPqaZ9oS4mFIsgskjIz","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

          adds a rotation to the transformation matrix.

          ","params":[{"identifier":"angle","optional":false,"description":"

          the rotation angle, clockwise in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"I1NYauI6acTkAX_o67oXH","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

          adds a rounded rectangle to the current path.

          ","params":[{"identifier":"x","optional":false,"description":"

          The x axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          The y axis of the coordinate for the rectangle starting point.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

          The rectangle's width.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The rectangle's height.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

          The corner radius.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VMZ5ouNiHyhHco5WyICSM","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

          saves the entire state of the renderer by pushing the current state onto a stack.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AnqsIaFDVWPjgqocmjqY8","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

          adds a scaling transformation to the renderer units horizontally and/or vertically

          ","params":[{"identifier":"x","optional":false,"description":"

          Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

          Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X_SJwtSOa6ER7CmrGpVCB","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

          enable/disable image smoothing (scaling interpolation) for the current render target

          ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6_th_bWJeq8GeVyjyexxt","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

          set a blend mode for the given context.
          \nSupported blend mode between Canvas and WebGL remderer :

          \n
            \n
          • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

            blend mode : "normal", "multiply", "lighter, "additive", "screen"

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vWXszpIzChaEqbE8TzYnD","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

            ","params":[{"identifier":"color","optional":false,"description":"

            css color value

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"trGbo-8gMub47LTDTlRRv","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

            Set the global alpha

            ","params":[{"identifier":"alpha","optional":false,"description":"

            0.0 to 1.0 values accepted.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yKCRGxejEyiWzqhXFcwNk","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

            Set the line width on the context

            ","params":[{"identifier":"width","optional":false,"description":"

            Line width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Xr7X0zzipxzbUvmEEVCVX","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

            the shape defining the mask to be applied

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

            either the given shape should define what is visible (default) or the opposite

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"YxZ5WeKf4WpxG_H4hVA0i","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

            set/change the current projection matrix (WebGL only)

            ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"95iSIq_85Mdlm3UzxKXo-","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

            set a coloring tint for sprite based renderables

            ","params":[{"identifier":"tint","optional":false,"description":"

            the tint color

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

            an alpha value to be applied to the tint

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pcTY6Ykl9lbUa2jC34OS5","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

            Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

            ","params":[{"identifier":"a","optional":false,"description":"

            a matrix2d to transform by, or a the a component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

            the b component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

            the c component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

            the d component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

            the e component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

            the f component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vwti9nbqMjilSD_zQDQB7","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

            stroke the given shape or the current defined path

            ","params":[{"identifier":"shape","optional":true,"description":"

            a shape object to stroke

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

            fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Wkc-cL_gty3dtpUY0yFyn","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke an arc at the specified coordinates with given radius, start and end points

            ","params":[{"identifier":"x","optional":false,"description":"

            arc center point x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            arc center point y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

            start angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

            end angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

            draw arc anti-clockwise

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

            also fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"TtNNoz5WZjOXzZco85OIy","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke an ellipse at the specified coordinates with given radius

            ","params":[{"identifier":"x","optional":false,"description":"

            ellipse center point x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            ellipse center point y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            horizontal radius of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            vertical radius of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

            also fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"HY-8V51d0gPnsNzuwKhqr","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke a line of the given two points

            ","params":[{"identifier":"startX","optional":false,"description":"

            the start x coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

            the start y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

            the end x coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

            the end y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iFV9Uv5_PDu0BdeFILMy9","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke a Point at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-6OzZD7e96a1KAj31-Hkk","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke the given me.Polygon on the screen

            ","params":[{"identifier":"poly","optional":false,"description":"

            the shape to draw

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

            also fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"QColvVrFDODO_AROGmHak","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke a rectangle at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

            also fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6c0LjVa5Dlj7O59oa3ELs","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            Stroke a rounded rectangle at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

            also fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"eeH4WTywPHVW_MBjz3Lgn","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

            tint the given image or canvas using the given color

            ","params":[{"identifier":"src","optional":false,"description":"

            the source image to be tinted

            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

            the color that will be used to tint the image

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

            the composition mode used to tint the image

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            a new canvas or offscreencanvas (if supported) element representing the tinted image

            ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"fSJZoxu3hiHOk9x8nMMo1","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

            creates a Blob object representing the last rendered frame

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a Blob object representing the last rendered frame

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pXWk7bvsUtsEP4IoD3z6I","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

            returns a data URL containing a representation of the last frame rendered

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a string containing the requested data URL.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ohu0smPZEXyIHZUb5eNyH","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

            creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning an ImageBitmap.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZVspU1PYXGSiBlyGHnDAL","name":"transform","brief":"","scope":"instance","see":["{@link CanvasRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

            Multiply given matrix into the renderer tranformation matrix

            ","params":[{"identifier":"a","optional":false,"description":"

            a matrix2d to transform by, or a the a component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

            the b component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

            the c component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

            the d component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

            the e component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

            the f component to multiply the current matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"91AxyupMsPoHwKBWqtb2V","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a translation transformation to the current matrix.

            ","params":[{"identifier":"x","optional":false,"description":"

            Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            Distance to move in the vertical direction. Positive values are down, and negative are up.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DTzQLMRE7U8oENrg0dZK5","name":"CanvasRenderTarget","brief":"

            CanvasRenderTarget is 2D render target which exposes a Canvas interface.

            ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1UMlOrWAVPxDG8WYjXeXW","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The height of this canvas texture in pixels

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dp9RgKNYMnY3rjGv2RRd0","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The width of this canvas texture in pixels

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VphVs6N2cJXdZuvByRWQ4","name":"clear","brief":"

            Clears the content of the canvas texture

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mv4awYs62vK0AD8WuPgV_","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

            the desired width of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the desired height of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

            The attributes to create both the canvas and context

            ","dataType":{"tokens":[{"value":"Settings","kind":"canonical"},{"value":"Settings","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

            the context type to be created ("2d", "webgl")

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.preferWebGL1","optional":true,"default":"false","description":"

            set to true for force using WebGL1 instead of WebGL2 (if supported)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.transparent","optional":true,"default":"false","description":"

            specify if the canvas contains an alpha channel

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

            will create an offscreenCanvas if true instead of a standard canvas

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

            Indicates whether or not a lot of read-back operations are planned

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

            Whether to enable anti-aliasing, use false (default) for a pixelated effect.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"sNI_h3ZaD6KtjJh2w3rpl","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

            The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            The ImageData extracted from this CanvasRenderTarget.

            ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f478v1DfrRDf5KHSJ1rEX","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

            invalidate the current CanvasRenderTarget, and force a reupload of the corresponding texture\n(call this if you modify the ...","params":[{"identifier":"renderer","optional":false,"description":"

            the renderer to which this canvas texture is attached

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"jUTBrhGkhEu68TOcKcG4m","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            Resizes the canvas texture to the given width and height.

            ","params":[{"identifier":"width","optional":false,"description":"

            the desired width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the desired height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NyPxms25nyDn1qpx0JAsf","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

            enable/disable image smoothing (scaling interpolation)

            ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

            whether to enable or not image smoothing (scaling interpolation)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6b5FCnNHTNHuoI2nVSTn4","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderTarget.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

            creates a Blob object representing the image contained in this canvas texture

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a Blob object representing the image contained in this canvas texture

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6UreinxWYkCW3xSO4ghg3","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

            returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a string containing the requested data URL.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FnNlTXqVV-Ys8zCOtpuu3","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderTarget.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

            creates an ImageBitmap object from the most recently rendered image of this canvas texture

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning an ImageBitmap.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"HsEAr_Ihyv59TG9JU9Swm","name":"CanvasTexture","brief":"","deprecated":"since 17.1.0","see":["CanvasRenderTarget"],"type":"ClassDoc","params":[],"returns":[],"extends":["CanvasRenderTarget"],"implements":[],"members":[{"id":"ex_7LQ8--wO0rGYpq6XV3","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The height of this canvas texture in pixels

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9BevrQvNqPF6ZJmeO_l6M","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The width of this canvas texture in pixels

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"arosDKfFLR-kB3udeX1Qu","name":"clear","brief":"

            Clears the content of the canvas texture

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0C4NXScbgCL_IWW3izQSZ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

            the desired width of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the desired height of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

            The attributes to create both the canvas and context

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

            the context type to be created ("2d", "webgl", "webgl2")

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

            will create an offscreenCanvas if true instead of a standard canvas

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

            Indicates whether or not a lot of read-back operations are planned

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

            Whether to enable anti-aliasing, use false (default) for a pixelated effect.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"TsS_lbkFFXQqwhva8ECJ3","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

            The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            The ImageData extracted from this CanvasRenderTarget.

            ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jT_OSTub7Vqz32ImJxwt7","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

            invalidate the current CanvasRenderTarget, and force a reupload of the corresponding texture\n(call this if you modify the ...","params":[{"identifier":"renderer","optional":false,"description":"

            the renderer to which this canvas texture is attached

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"1t3h8WQvEjb1-y8e5yWcW","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            Resizes the canvas texture to the given width and height.

            ","params":[{"identifier":"width","optional":false,"description":"

            the desired width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the desired height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VioWqNmndArh86CL1ge3M","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

            enable/disable image smoothing (scaling interpolation)

            ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

            whether to enable or not image smoothing (scaling interpolation)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"5AXqBDFHIOHHgc0QXf454","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderTarget.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

            creates a Blob object representing the image contained in this canvas texture

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a Blob object representing the image contained in this canvas texture

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jdJS4ZQC1LgLUJEBoL0Cl","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

            returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a string containing the requested data URL.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RGW95n9jL30c65WiAWKrg","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderTarget.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

            creates an ImageBitmap object from the most recently rendered image of this canvas texture

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning an ImageBitmap.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"7IAihFZNjRza2DhnB9hgQ","name":"Collectable","brief":"","type":"ClassDoc","description":"

            a basic collectable helper class for immovable object (e.g. a coin)

            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"qLcRZXB875rMIoSmpZR2x","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-JeXee_erMykKDSfl9gGt","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NkncZXoogQRCvjXyQq9Dm","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"370UEENd-EORl_lhPX31d","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0Qp2yk64VJGCSds1wClxc","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7tar7gJAThtNFBwciV3cP","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"63ITLtPrNEnp1cPTxY01p","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vCQU-HzS8VdIezIskSdv7","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wZSo9Z3AinXRgor9aURan","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5n751BEOANFFhUusT5lbJ","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPZTvI6DS4pZ8FwHeNJkm","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-rPsziqknac4mNf1F9N-7","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lzPW-co2sqTeeBzROBYn1","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wmf5N_cYosPBMT2UvV_s8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WXY19rgvG6Ee6N039aTAe","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iPGxpWn32g4L_vcCZgd7x","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JSlFN5Xj5l23GxANQXsq4","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8oWGvlaUNKyaqKrotsgj3","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OKSKnxGx9jNSCLSazuE0a","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oagGff03p5nm9FoNmiCVF","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g6xERKB72DpaxDjwd5wXW","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6xtaIikh1Ru-pli3csboy","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z5cV3C50D_IjFj-TbeLwl","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hYnBOLGngoiWec5T1aaCz","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dLwaQX4XjX7lqhwLQ-VwW","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4R7T6f6QArxqB8F-doLRO","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"48JsRnRwQsHCR0jUR9rN7","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xz7Jf06jaiFCClMWsz8yM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bl5e0fT3I_nBBTlrJ40B8","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

            global offset for the position to draw from on the source image.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bdsgBWSS98wOaabRCgJ-q","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ksShqPzU3dLNpoCj5c-sV","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LwGuv47k4Uzmt_dnp7JXn","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zq8lPTPtPIOwvjXRh-dEU","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XBhV3ANeXf4_voJW85cPF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V7lzC8xSuFeUrxtW0n4Ht","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RQ3bzXZNYboeqdcJXwA0p","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6cYjB4wrNPPAHktXERUvR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aZwGk6y1wsVtzRtbIFS_6","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DUqs-2xclB78HDmXcIORz","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zSya7gu5WzGsd07Dbe8Aq","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3OpvDb1wxxTV_5o1wnHLO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wP9Dy8zER5EZuuRclLTrV","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            add an animation
            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

            cycling speed for animation in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            frame amount of frame added to the animation (delay between each frame).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7oyslXLYPGbES1wKeveZW","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XaEtLLhoZaXrE9xnRRVN2","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2IDDyxyeQNz13bL7AZvdH","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RY1s-oEQYbV562HdfqI1t","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the collectable

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the collectable

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            See {@link Sprite}

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"rYkMPyDqz3n_4ZV421zBw","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"52eF1t0W6JzkAyNYAFJdf","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pq7nNvvVFmiaSHkCo7K0s","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4YgmPcI6N66wPEeYZWMGp","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gITs-BHeg8wicuZop4ylw","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            make the object flicker

            ","params":[{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

            Function to call when flickering ends

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9wkvB76Z_Kby9IcO0fhfu","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pnylOiLfmpB4hMD_ctxdq","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RBubm2Mg50nbwM3e1s01I","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4N_zVAsBEf3ZmIetFTLOx","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PuIAlTKnlTT8UmHFKgaMn","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current animation frame index.

            ","params":[],"returns":[{"description":"

            current animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-KdQgy3ktG3QyBauZGAUh","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"pXIFY7neZesFjingeF0y1","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"azxk44VViFujFJsR2fFPp","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cVs5QQjKmA3sZ2iLhG9cY","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

            return true if the specified animation is the current one.

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7_Uvpoo52EFj_Z2F5OOAk","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xD7CFeERZsfEWKJWJLHoy","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the flickering state of the object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QemhTw7koohCkdgVkK6UJ","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vm0_2Xew3M4WimZ9O4DwQ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2j0uwPvnwyE6DuMnjo1MD","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bfhHd77fVoEVZxEk3ZDmj","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eMoGoRSeT1b1fi5H3LeVH","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qBQDmnBS_sc61P_krKoPz","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3TTkyKK8rFVYll0QY1ItB","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"b5W8TaSCTKQoF2S7lX19L","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"pmRVpuUE9ErIqy19mjAbo","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R0tnDYsI9GWmNIVU142Ed","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1utJ5vtDkeamaiLjCFU0J","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            reverse the given or current animation if none is specified

            ","params":[{"identifier":"name","optional":true,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"efI_vZ0syMzkrZBpr0GBd","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AYSfUqyyL4nN_EIPu-oth","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vC5A9FB_7TVR9nSvHcGY_","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zLEdQ5ehMEGhNjBMNvojk","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

            force the current animation frame index.

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5DUHZN4oVYWdwuuzG6Z8k","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

            set the current animation\nthis will always change the animation & set the frame to zero

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

            animation id to switch to when complete, or callback

            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

            if false will reset the elapsed time counter since last frame

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YoQH_UkxVF-pB_gWSGFzT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UR9kJP9uERHrBAL3FJCz6","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

            change the current texture atlas region for this sprite

            ","params":[{"identifier":"region","optional":false,"description":"

            typically returned through me.Texture.getRegion()

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S0uZCSK-B3CKCMR2qJw7y","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P9vZsm2ZJEJ0D1nyL-P9y","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pcxh4KV7NSIewF_Wq4c8W","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sDCAmse-5-q7N1tYpzSNV","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UpPRLl2bw17zoSAELKUXM","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"erc0aVoFOZS1e8pzlZZjq","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AOXtUmK4OEAgtDQtXgkIp","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_W9jwyWWlCiuaQVKY5J37","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mk_Isd9Brm2byrVWDYkY4","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"utPlYJAD18gu7LEAy_mV2","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nhx_uDJBWcfEh3SP_DLlD","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this srite (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tACnIit8ECgdYcSc6cV3b","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            update function.
            \nautomatically called by the game manager {@link game}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Sprite is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ch_JgLFY7R8fHu5lnhjTQ","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"3ZMWy7D8KdGgGY96cpY-0","name":"Color","brief":"","type":"ClassDoc","description":"

            A color manipulation object.

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"3nu26kL6WYhYJXgzDZGzh","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Color Alpha Component [0.0 .. 1.0]

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QsjgoWP_DkPqZTaMxH3OL","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Color Blue Component [0 .. 255]

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G0pdRsQemR-AUMXRKSD7x","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Color Green Component [0 .. 255]

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z-6TbtQOtPsmp_RKnOmE0","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Color Red Component [0 .. 255]

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WiHU0cnYkPF67wbWbInLp","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            Blend this color with the given one using addition.

            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gfc-fAmEODvGrfw_uS7f1","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            Create a new copy of this color object.

            ","params":[],"returns":[{"description":"

            Reference to the newly cloned object

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sZNhpoeZng-K5NBCTW3on","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"r","optional":true,"default":"0","description":"

            red component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","description":"

            green component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":true,"default":"0","description":"

            blue component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

            alpha value [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cp0U9EkmE7NSMtYM4ASOV","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copy a color object or CSS color into this one.

            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-LQ2MpSaW3VIWxVD52vXX","name":"darken","brief":"","scope":"instance","type":"MethodDoc","description":"

            Darken this color value by 0..1

            ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8gZjbuzMcDhWWZq1TIClG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            Return true if the r,g,b,a values of this color are equal with the\ngiven one.

            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"T5_tian9U-GCRPB0YZ-TP","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Linearly interpolate between this color and the given one.

            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

            with alpha = 0 being this color, and alpha = 1 being the given one.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z-44tr7LO9bBcskT8eCXe","name":"lighten","brief":"","scope":"instance","type":"MethodDoc","description":"

            Lighten this color value by 0..1

            ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aM-pyDVXUisKD_f04sWNY","name":"parseCSS","brief":"","scope":"instance","type":"MethodDoc","description":"

            Parse a CSS color string and set this color to the corresponding\nr,g,b values

            ","params":[{"identifier":"cssColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RIQMUqKCtng3WKoZ2Q83X","name":"parseHex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Parse a Hex color ("#RGB", "#RGBA" or "#RRGGBB", "#RRGGBBAA" format) and set this ...","params":[{"identifier":"hexColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"argb ","optional":true,"default":" false","description":"

            true if format is #ARGB, or #AARRGGBB (as opposed to #RGBA or #RGGBBAA)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jOtNuX5kqy1RYoTlpKXOq","name":"parseRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

            Parse an RGB or RGBA CSS color string

            ","params":[{"identifier":"rgbColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c3qx_gb1MT4BaniiXOHyU","name":"random","brief":"","scope":"instance","type":"MethodDoc","description":"

            Generate random r,g,b values for this color object

            ","params":[{"identifier":"min","optional":true,"default":"0","description":"

            minimum value for the random range

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":true,"default":"255","description":"

            maxmium value for the random range

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nfipfv_xt0hHV40t7RXcq","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Set this color to the specified value.

            ","params":[{"identifier":"r","optional":false,"description":"

            red component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

            green component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

            blue component [0 .. 255]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

            alpha value [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y5IAU1W72k3OgJ18TAkwx","name":"setFloat","brief":"","scope":"instance","type":"MethodDoc","description":"

            set this color to the specified normalized float values

            ","params":[{"identifier":"r","optional":false,"description":"

            red component [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

            green component [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

            blue component [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

            alpha value [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eg8-1MLCGNjlhJqeEPTIf","name":"setHSL","brief":"","scope":"instance","type":"MethodDoc","description":"

            set this color to the specified HSL value

            ","params":[{"identifier":"h","optional":false,"description":"

            hue (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

            saturation (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"l","optional":false,"description":"

            lightness (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gQLOL6jLM9OagiSNHonlx","name":"setHSV","brief":"","scope":"instance","type":"MethodDoc","description":"

            set this color to the specified HSV value

            ","params":[{"identifier":"h","optional":false,"description":"

            hue (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

            saturation (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

            value (a value from 0 to 1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sXQ8d2c3nYAAlBv0WkDO9","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

            return an Float Array representation of this object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HGanYC2RzurSqisCDHZ_3","name":"toHex","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the color in "#RRGGBB" format

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"OWZlXDgSM5Cy97yruQF1E","name":"toHex8","brief":"","scope":"instance","type":"MethodDoc","description":"

            Get the color in "#RRGGBBAA" format

            ","params":[{"identifier":"alpha","optional":false}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"avU0ShYVhwfgfgnRDLWLf","name":"toRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

            Get the color in "rgb(R,G,B)" format

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"m4l3z3gV7wO0IijiZB7hb","name":"toRGBA","brief":"","scope":"instance","type":"MethodDoc","description":"

            Get the color in "rgba(R,G,B,A)" format

            ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

            alpha value [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"g5WeDJsUu-_4tm8-FZzH9","name":"toUint32","brief":"","scope":"instance","type":"MethodDoc","description":"

            Pack this color RGB components into a Uint32 ARGB representation

            ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

            alpha value [0.0 .. 1.0]

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"eEi3J0UBF7iZm-HuLc5pv","name":"ColorLayer","brief":"","type":"ClassDoc","description":"

            a generic Color Layer Object. Fills the entire Canvas with the color not just the container the object belongs to.

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"pNFAYEd60HQQ6fGUoV6aW","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCAA9FkLjdH6bx7_62u0X","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JJESVn7vUrro-mlZNNwCE","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwVzm-MCBZ7XGR7yg_UnI","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sFhetCp_zysf5qxI85DsD","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GofsjtbAjO9f5OmR00FU2","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Uh-NFNBsD2qh6vmhezEX","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oOXemDmZMce2P0VfauwEX","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"llp9LLTCr29IIWW1J_bZm","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wXFonQrCM7GKUurbrVfYy","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d19gCSMyz__MBEzkmRjmi","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the layer color component

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GdjCM1FQdF2bdvHXRez2U","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j_gmr2E51HY0w7NpoHWT-","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"17MZWjMJah_geKugwbCSn","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"66FQ2t1jHv4DehHioeWb5","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LmAmUiwUpdkRPyKKN9Q06","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8rt3HySahdj1AEctnK8Ic","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"04w3U5hbgT8JuIYKsHfrw","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hRu9Vkp1aqv4JcFTsB94_","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"go-lsnbZAlZimuU00LMaU","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BnGoljaPLIUwsCjRLqRSX","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9fFh_xsV_EWBrbxegJNco","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bJQ64rvDymfK21ugmwovP","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gsp3JwmdiebXawGZOYtTg","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i7CCpfh5HkI8xBDllOE9M","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J_Wnd6jprBU40drDLiTXh","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FQp8ZaxspBb45K9z0m5xS","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wqCIOK9nYZEEMCe6CJyYq","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"257lJAlIi6c-x2yw1rIRc","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qWzOgkl_sEUvaaUQ7WMwE","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HGV1w0dIbUSwrF7t8yX2w","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rkiFsq4TCTW5KyeW4E8hW","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HkBPE1nZ8re3jPs1Jlz1W","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t9DTK3LvJiOQL1Q-BhEht","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U_dpiK75HHYaQZcfzY3JT","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KH1iydla-umMS7cineUje","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXfAIiNoVEUSHy3KLjDBP","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9zd4m6GxcvB1TKw5Ty9QE","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3Ivwuceg8oxcRZ6tpPkXQ","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_zfl-QBrP9fHYqzjB9kdC","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"98qvn7RRFBnPN98OubSuL","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"name","optional":false,"description":"

            Layer name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

            CSS color

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"z ","optional":true,"default":" 0","description":"

            z-index position

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yKr68fmU7uPFsIiMn5xDy","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"j6vjy7U36TjamiwaRzVD5","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vDwNU1PyqP5bDUk5L_EQJ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g8LbscdVVTP8et8aZInzk","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Yw30ythnxBqhrD6L3m_c6","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UO9oDh9GYwspnF_HDWK9v","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UTiNKsooJZsn9bzR0j1K6","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u3rWu2Pgo3lRL50IwogZD","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JrfoU0F2hy_j4LALveo7_","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"3F-ws1_Sd0hnvsbgg-9Ij","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lGJ5VjvMoFXIHyjJwzk3h","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2tOaPa62fujLLNlnm_T3m","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZNcECJcHKnyQa1QYPuwql","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4YpvtPZr05zYhGm6BsFuV","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Eu3AXplk-pRiP9dx-8MFS","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d7PxyYHnQqCsLwON-dIMs","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ghncvvSKc_a_ergGpZH6k","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"h9Hs-e_9kOezEQRq7tbIQ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"C-kSFQikAWnOxGWwQuHmQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Il3ZYaU2rqndnerbxY-V_","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ayye31Axnuqc8ytN48sPs","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XNqAdEvwk0l1mDTGwDO6W","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nQUjCrg6MF9pft82bPgor","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vM0X4O1dEzhleznY-uNhN","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jSrBto5yBzJlzfpuOT420","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2FcEGCCU6X2xv_HfHsVtZ","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D0OxFKnlfC1l2k4ul8dJk","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YcLc8ICyAxfhcdXBR8e91","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wOv0IJEOL_-uPjTxN3It5","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FqGngBTYz-AY-ROnTYpqt","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kvxdkuSWWDjbDDjBDvhDD","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qqXQLuCtHvccnyOJT9b8M","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jR6Y8Xz7iQ5CYO6_4wLlj","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xb7u5paUEmwv8fm7eZ90j","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4J7oUCA5Qumt4Ws8x7kan","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UBPdrxgofziQihu7QtgDS","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this color layer (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"g4T6YjY2WqrbYxLWd8THU","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"80V8TIBcawcc17bsD9-7F","name":"Compositor","brief":"","type":"ClassDoc","description":"

            A base Compositor object.

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"vNqRylqrr6dZ-1T7tbALb","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            an array of vertex attribute properties

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"si30D6Xm34tqo2rFn23KS","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the shader currently used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tNJqLOroF2_RfCIo4N87f","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the default shader created by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5QVBgMgBE8T_mfao3lbY7","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZnNFL3gx3jNlbwMDp0xe4","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3WHRKYkdEbG2KbwAZ6kLL","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            the vertex data buffer used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6qj7R7RVYi0DDNJR01txZ","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OkjWIO-SO1UAIlIbwrkuk","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

            add vertex attribute property definition to the compositor

            ","params":[{"identifier":"name","optional":false,"description":"

            name of the attribute in the vertex shader

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

            number of components per vertex attribute. Must be 1, 2, 3, or 4.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

            data type of each component in the array

            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

            whether integer data values should be normalized into a certain range when being cast to a float

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

            offset in bytes of the first component in the vertex attribute array

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eB-PlOIoF7OlibQ4sBM7F","name":"bind","brief":"

            called by the WebGL renderer when a compositor become the current one

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HFxU5qL-A5F99KbaPrSYR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"renderer","optional":false,"description":"

            the current WebGL renderer session

            ","dataType":{"tokens":[{"value":"WebGLRenderer","kind":"canonical"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            additional settings to initialize this compositors

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.attribute","description":"

            an array of attributes definition

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.name","description":"

            name of the attribute in the vertex shader

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.attribute.size","description":"

            number of components per vertex attribute. Must be 1, 2, 3, or 4.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.type","description":"

            data type of each component in the array

            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.normalized","description":"

            whether integer data values should be normalized into a certain range when being cast to a float

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.attribute.offset","description":"

            offset in bytes of the first component in the vertex attribute array

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shader","description":"

            an array of attributes definition

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.shader.vertex","description":"

            a string containing the GLSL source code to set

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.shader.fragment","description":"

            a string containing the GLSL source code to set

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"d0YFAYzwpYCElzE-t1QjR","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

            Flush batched vertex data to the GPU

            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

            the GL drawing mode

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jjz1dZLcUsva6bMq0qsIa","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

            set/change the current projection matrix

            ","params":[{"identifier":"matrix","optional":false,"description":"

            the new projection matrix

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R0R3dceh6G5BEXw0KSrDL","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

            Select the shader to use for compositing

            ","params":[{"identifier":"shader","optional":false,"description":"

            a reference to a GLShader instance

            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"P2NLSX81ENxVbBaB-pTEh","name":"Container","brief":"","type":"ClassDoc","description":"

            Container represents a collection of child objects

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"ScGZfig_5NCCGVdEkgc9L","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g2nNwEBsm4ZmZ6vP02mak","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MQ1KYpw2_WlQ8KT7-NcB2","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H_1oGpA9A34MR0dv6USdJ","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3b0GUWWsViRkUwOcLvBGA","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            Specify if the children z index should automatically be managed by the parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cU6YnLcSNqLeABtp5tFxT","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            Specify if the children list should be automatically sorted when adding a new child

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Puz7oRByNQcJs2kAuKGa-","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RcLNGAoCsam87hJkebPsC","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a background color for this container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lJgktEMGLphhF0tDDnquO","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SyaOETKGzcOodxxyL28pN","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DbUN90TSnUEBm7zbSgD3H","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVaVpn014-IjmbQTgPbL2","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VAqY3849IqcLP-pSsug_b","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jOWwZs0wykGxoQh7VABnK","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Specify if the container draw operation should clip his children to its own bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z4YV0neu5ukBozshFy-e3","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KbCcl3RN1F4BEf0QTIdOO","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ei6tX-h-bLd5GMYlFyBFA","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5928XrZ2-vup5skfb8P_0","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9KOfRt29kDpDiv2wi8exJ","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K-vv2r1Aq_iIuThkAIr1V","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"79P_QuKeYSmS5zkO3DpaW","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JiN2XlEXUOmrtd1jfDWI8","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dds8VZLE44EA1EepmDNZ3","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r3oVz8RHqym_vmutfrqXV","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z90hUoLRnVssclCeksP2z","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wGbnuuM14If7c0q6lQxCs","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Lf6fTzvc0YhKDRBVSovIi","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"499MenSLoSZBYo38jrwKG","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_hKUHoj2hlgvgMIfPmMuf","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LeXX8gnoJ7MjhIMOA6okC","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8o83YVFQY-Xn8TVvFrqBE","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YtJVmQ5DiT-zwudOZxY4N","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wgk2cUsL1myV8uUvUDpZl","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HVd4raoezPZTvYleU4WxN","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xp5ZRYT5nMbz7F4ZPmG8l","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fCLd2z7ChQuawtSVEAHp-","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            whether the container is the root of the scene

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c-dbDNlBmBvuFIHctNSem","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sTzDJ6VvuNLQ4M8F8A34-","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

            The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9UomFkbfeM2YC0HAulsHn","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OXm1nAMYk0XYD7V5wmCKD","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vHpMJhGboP_a6Cm6by99J","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C1IW9hvDr91v437Fx_KY2","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"55IS4q8NDeR2-PSvh_643","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rovSWk-JwjlMdaNqIUEnq","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add a child to the container
            \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

            forces the z index of the child to the specified value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the added child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lyFktOV1uQNiv9Pr4EQLk","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add a child to the container at the specified index
            \n(the list won't be sorted after insertion)

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

            The index at which to insert the child

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the added child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pclr4sNSm2mnqj2D8I6Y-","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s-KKpcbjEX8fnWOB3gsJX","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KQGpBVL_nGUq-K48_NTud","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kEvSW6P8aUqGLiIZnG5nP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

            position of the container (accessible via the inherited pos.x property)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

            position of the container (accessible via the inherited pos.y property)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

            width of the container

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

            height of the container

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ukt3KduHZw-9qF12ndDh1","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vw24Z6GlsoWB-dPYkH7VT","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kX69hABT-0w1m181wYtXx","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pHynxbINAGEVI9X6kHdQB","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bGKoPx2LPARKtvS9Wwa_5","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UoZX1_wKMjJYvo6aTuAHZ","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FnpiAx0maw1XeAp5TBazB","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

            The forEach() method executes a provided function once per child element.
            \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

            fnction to execute on each element

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

            value to use as this(i.e reference Object) when executing callback.

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"k6VqSdmPk4IQRxI32GzOm","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nfqv2dl5ADoe6FK_2hBux","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z4Wwg3us8R4HVVKHSVSQP","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the Child at the specified index

            ","params":[{"identifier":"index","optional":false,"description":"

            The index of the child

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the child at the specified index

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DsHTEXEczo7VscqlZuk0V","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the child corresponding to the specified GUID
            \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

            child GUID

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            corresponding child or null

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XvHgjrLYodCpqemUD4IK4","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the list of childs with the specified name
            \nas defined in Tiled (Name field of the Object Properties)
            \nnote ...","params":[{"identifier":"name","optional":false,"description":"

            child name

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            Array of children

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"6vJ9i4nHe7sroJvXHfpCQ","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

            return the child corresponding to the given property and value.
            \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

            Property name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

            Value of the property

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            Array of childs

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"3wHXXNj6WscSwG1jukm55","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the list of childs with the specified class type

            ","params":[{"identifier":"classType","optional":false,"description":"

            Class type

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Array of children

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"iZpAnkJfkI0jkrED1wt8G","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the index of the given Child

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

            index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kgfOnmqBOo9x18-MhXeUw","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

            return all child in this container

            ","params":[],"returns":[{"description":"

            an array of renderable object

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"HTVzfqg7PRrJ8shwzj_A0","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"oFEssP_Je90eqn6wYvE5x","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the next child within the container or undefined if none

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

            child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ctwbYYWvj5-XVWXiwrNQm","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fqBaIqviNmUWyA-S-FIIM","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the instance of the root container (i.e. the current application World container).

            ","params":[],"returns":[{"description":"

            root container

            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G5vqWEXRDFPCecX36mCc8","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if contains the specified Child

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VjB4lUkin0oSWavnxgFZP","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

            Checks if this container is root or if it's attached to the root container.

            ","params":[],"returns":[{"description":"

            true if this container is root or if it's attached to the root container

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wiON-5ZdAaf_BP7P38IeO","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-cDlEox8JEJl3xQtFEAGi","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7UKfAgfb8V18apfVQC9Ji","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SaupyNX-4t7auRzLhYu_b","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the child in the group one step backward (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"wuiaEBugaOlGBir1qPUFa","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the specified child the bottom (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"RJ8KHk77AomVvK2OsSK4u","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the specified child to the top(z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"2IKSrHBxz-gJ1GGVOeabB","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the child in the group one step forward (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"0QP8TSe71Be8t3d2nMRdb","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

            a callback to be extended, triggered after a child has been added or removed

            ","params":[{"identifier":"index","optional":false,"description":"

            added or removed child index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ajp7i8Rxf60k_6YEqjDm8","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NXSFZkvobaHXBlWqn-K6Q","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OK9kw0wqMGeHGEW_MX3PF","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m5s2FCv0apED5EmqivR9_","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"-nLkH9dE9rk5-emI-AwNh","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"gFmigwiyg_5nhhd-fssWQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kCvfuQSo7GnSkVOkqWr-J","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

            Child to be removed

            ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

            true to prevent calling child.destroy()

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6YQqeDybLkEPj0cxBpKJ4","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

            Removes (and optionally destroys) a child from the container.
            \n(removal is immediate and unconditional)
            \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

            Child to be removed

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

            True to prevent calling child.destroy()

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Os7N7NmnOsL9y0tE6Vsgl","name":"reset","brief":"

            reset the container, removing all childrens, and reseting transforms.

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cfEQvKvvVWKdbfhl7p84d","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R6OLFAFmpxewdQxz2mljX","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yfCmlwrRo4KiCsVmHQRHg","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rcGX5KglZJXoncauJCCxT","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aWcVspbTbohlh71v9qMXa","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

            Automatically set the specified property of all childs to the given value

            ","params":[{"identifier":"prop","optional":false,"description":"

            property name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

            property value

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

            recursively apply the value to child containers if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"fvn2XNhcE99BuMRJVEA-r","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1ppN6pxQnQvK4GddZFRl5","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5d25ewoN9H_EaeNNDIPBx","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"62hYgty-S-_j0lmK4CKOR","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"de9LTDI2gYn0ZdhMcHc0y","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

            Manually trigger the sort of all the childs in the container

            ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

            recursively sort all containers if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6T851ZACT6jRUOpRG4MjW","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

            Swaps the position (z-index) of 2 children

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"B7-u56sz4y1EvHrUGxr-d","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QeCPMjA_ww7Z2YjeeCx7l","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jb9n0VBWqc6aIwu4jbVsz","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SL6OsBuzF0Ntov59HUeAx","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iDC4qe-5jspkkTPQHM5Y6","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4SxLe95aKvS6O1CuDi_Z5","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q37Q9WYc_COptFywdDe6x","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this container.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this container bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mfCArEYk6OGGAvU8XGMf5","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this renderable (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VW0eCLr-pokUykY8SAdQA","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            container update function.
            \nautomatically called by the application update loop {@link Application}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Container is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zyw6MnPu1iJEdzabpP2mh","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"UMHZYN0aJhWdBE3sHCpcq","name":"Detector","brief":"

            the Detector class contains methods for detecting collisions between bodies using a broadphase algorithm.

            ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"fV158ETwqr3fwCBZ8KtUf","name":"response","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the default response object used for collisions\n(will be automatically populated by the collides functions)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dUPmaE2BSWDeJnQEKw2Ow","name":"collides","brief":"","scope":"instance","type":"MethodDoc","description":"

            detect collision between two bodies.

            ","params":[{"identifier":"bodyA","optional":false,"description":"

            a reference to body A.

            ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}},{"identifier":"bodyB","optional":false,"description":"

            a reference to body B.

            ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if colliding

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3O7hNcH2Gb-17xxjLJqaY","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

            the physic world this detector is bind to

            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TTVkAPHp5_MiCf4IY_9CL","name":"shouldCollide","brief":"","scope":"instance","type":"MethodDoc","description":"

            determine if two objects should collide (based on both respective objects body collision mask and type).
            \nyou can redef...","params":[{"identifier":"a","optional":false,"description":"

            a reference to the object A.

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"b","optional":false,"description":"

            a reference to the object B.

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if they should collide, false otherwise

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"FtqP925HWmlxxbiJj__KM","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

            A Draggable base object

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"bp69Ik8GivNGiE8_AKe6F","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4uTvViiX2zpOwY7Vw2B--","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tEy0MIy8nQooB6PZsvMet","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xe0PTwhrOl_MEH_ZUKpoV","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o3pUF-QzT0ndAP1S8c-1J","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2ASUanuiIti9I9-l5mOHm","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HlQz6F4D9sKV5pzbn-_4Q","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DcyaRmpgaVjLB12K6ofc7","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"itHolSrdepZ7nTetADUZq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4j-2CHNIk4KMxs7oWhsqk","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j_oKzBZ93IBszbQceqe5X","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i9hHG8BqV-Fs5sbYYV8Fi","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NjR5VAJ-K4aA9iAxBwSce","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"frHMif7s_4Pf8R6uvPX_3","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n9cGJXLScWpmcpMONT-yg","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CJiMdnOy9loyR0pWlBDRF","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WggnJHVF3eSF9hwgFz7l4","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z5Yil7EH5h3AayM-iTlH0","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3zpIipv5Zibbe9jmpBu6A","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wKLzKiQlStNvHRE2jCYRj","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C_DG8yKo5pxH6fpS9cMKz","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jMDKnoHAw0tFRQQXprc6y","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CQ-4V6K-YcYD8DwJwfMr_","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FScxVKuPQojP7kZhDAS0S","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1BfJg-doLm2LtOPcXvgRO","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ydzyme0OJOgo5rTBYq6ur","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bPRXSrDOX9kxt-fiJA47I","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kfjzz7AkD1a4fzJ3kQJLp","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zmJ2KKYMO9I5mpMLZWg6I","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6qnE5nlG3Y-r4udeeGelx","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yC-m8WOq2dpZ0Bmv7pkKt","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ny5taiyuaLDN93T4fHlO","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZK2bSxiuPOvcCx4xjOWX_","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXNpMkAGT-SHVcJjg8Yc0","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VO_S-hS5iFOQb9FeC1vNl","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CuNECWg4JfB2RwEZ_QNGO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kx6Cqt-B3Uvra3UFc4yK7","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gfZrtfJLiHgxPkRsTo3Ck","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VOQgMeG9GNPcI8XXE6cGy","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UrN91bVmY_x3IY4Ga83v4","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            draggable object width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            draggable object height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4ie_QFv757FacTSKy9JJu","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xMLl2BqKAslJt0qCTeGA3","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4wmgA88A9U97FhTPve0DF","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-BwVu13hM50w3rkwTp9w1","name":"dragEnd","brief":"","scope":"instance","type":"MethodDoc","description":"

            Gets called when the user stops dragging the entity

            ","params":[],"returns":[{"description":"

            false if the object stopped being dragged

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0VgPy5CIA7AHwqODJGJ0K","name":"dragMove","brief":"","scope":"instance","type":"MethodDoc","description":"

            Gets called when the user drags this entity around

            ","params":[{"identifier":"e","optional":false,"description":"

            the pointer event

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"DyckySSz7d2cxnV1OM2nm","name":"dragStart","brief":"","scope":"instance","type":"MethodDoc","description":"

            Gets called when the user starts dragging the entity

            ","params":[{"identifier":"e","optional":false,"description":"

            the pointer event

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            false if the object is being dragged

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4zzHfLiD3-0idS_wGFMid","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"71Zf3LYzEBZ1SzEwd29S8","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ndJnQhc7xXsnyaW5azNJB","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-rvQmeEIlwM_mHKVY9xmq","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ISRyY4oWI10gTzcxt4ZA7","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fwpQQU2qPWAyoGZhAPidK","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oFFgSTkLJzoG1fL9rsw7A","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"E-F_LF0YZeqzttEfEq5MK","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pSH6bgWKmZxJtx0aio4B6","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fu0t7nHcR3Jhz8X_QarvQ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YxtyKiDaSfikQ8_ZSzuB1","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c9YrAFVWV9RUsuLYX1Ipd","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0qXVYqpYB1_Af6vu6p9Uw","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G5DMeIxKIziprk4ipa-UW","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JxPQt8Dj0SXGNBYDiJ2ai","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"EyzX_dDclLWMGTsSAVFdv","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"TAMd5sCojtu9hyx-Ht0X5","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OibTuIksuYbkBaMXxiuiB","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XG1ruEj5DJBBcbVZwd9j5","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QWfUZyszjuu0Fcyws7erF","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gzT9K_VoQ7eF7yOJVTRdZ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hYnOKqwO8KV8CsYfKatDR","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"abpJuewt9R9HGq4qaEi05","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2XIiysVRhVKtsjVEUxxHR","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VLhqVEliAjuhKs2ABqPTR","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c92ThiI8xI7RfYpyHkuAF","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nsFra1S8DJHKDbOVF-WM0","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c3BxG4T0ZMNq85FBanm03","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9142xAa57NIEF6cWhZ3Qy","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jH19Pjn4X8TAG3YsfbR7e","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DMtsFDlbSeBWzE5QFNfYa","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sOClt8nIZnvahYjCYd8qM","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DjMN12Re45WYPJqWyk2hF","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vuhAHldEViNt9RcQLf7mQ","name":"initEvents","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            Initializes the events the modules needs to listen to\nIt translates the pointer events to me.events\nin order to make them ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MOAC78ZSX2bvBrp6vT3fx","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Zchx6RPMcisj_6d0Yq1J3","name":"DraggableEntity","brief":"","deprecated":"since 10.5.0","see":["Draggable"],"type":"ClassDoc","description":"

            Used to make a game entity draggable

            ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"XQUrphNPzdqf_ruUB6QRL","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            dead/living state of the entity
            \ndefault value : true

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eY-3zU5XDqhx-HOQmcJ86","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZWDQQiH5AX6jN7ivHMwbn","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PZEXpndkAXnmBLJjjsgRm","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N9LGr63Jn7c2ubnGVKbVA","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hox_T5nq72gshKjurkPVb","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DmVtl-8hIe0t_AdGZimho","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gH_J1OiwgtvRxsYdMRdPI","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the entity body object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HlWgGC9gNwNUAy5ymK3ve","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HJWOAQXCjV3jUI8KY1ngo","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SWvjJalwNMYKUnZ_MCPL2","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jcAJ6mKkO-L99M2WS-Rtt","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CVjmO_Xx6zTZCt7vSBDdP","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DdyEp0m44TV0gYql5B4wo","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TLPkSQ7aToFqGmwg_UfHx","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BQr7d91UlNsvmuT2eXe5E","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PGJnyF2jOJfkzSYp56Mz0","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object unique ID (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iyJiCJlxKRW6k7OWXOX9W","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X0srgMXP-XUN5Zg_Bp-iD","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EzPmrOf8I2nHVVIPBJXzr","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"39qsjMBsjkxorJEg4SzIx","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e75au0OOCOp8Ly_nP_TNa","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BB64uOvykUeSBtrIy68CC","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qvos5zqTLOTWnqZ8T6K-1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"42ldlzZz1ex669kitPDWM","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XkR3Z-CLMtL1IbnsbUopZ","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nEjlJVZvHtqmlX-eaL4CC","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lSsREC6S2i0bYeXQ0EZtI","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JcfHu2kNhX1C-HzUfpAbw","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gpS-FgugVpqvp_zlkYcv5","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ox5mTC8_oYXdoQf3ErVPx","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WVPI_LqT8TK8-B8VmmvIg","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SnLXqcQ_CthLGDHnAoshe","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IxaItKEgVf9lW0N7jbt8Z","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BRAX29wfQRkXwUOyhjFUX","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oRph5MCJkO6bg67xY53Nu","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A5x6bnSnP32_I7K-TAFWE","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object type (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WMZCF101JNqoqyCzwT3x-","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KXtYByIRI6pvYpWfC-WVL","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3x-oMLHaCFJ8N28VK1Kkw","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gq08IXHTyoPJaJtxEwZgk","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3uQZXWqguDc6EhlYmn19U","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r4rei2Huf0Qso-sWHQaBz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            Entity properties (see {@link Entity})

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"H3hhmtlnaPZ9UcJWnB76E","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NctiJQUrgSGUFoW9fp0N7","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lIZlR9itEw6a6DDpt-kKa","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AubmHTGVvsamPNDpn7f7U","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-YDvk7bRtO4eyRU0mBv0b","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M1WxnlMOxjHZjHSSdfR1M","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lnk3BpxiJrMUINBPdAI9c","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZZMBkkZbqar2nLqi9dI2a","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QbO-7bQW9E2eRZeH-d-Og","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"bF2phcb36Pkknn7aD0JXs","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zOk_PlHSI0gkB4FwK9o7F","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AmGYwkT0Wquev7DkV61Nx","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eFZqKt58an-AnT-SR6CRn","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5Q3u9O4XJf4vWoY8Rn-hR","name":"onBodyUpdate","brief":"

            update the bounds when the body is modified

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nnHh1W6mQyOYeFxtUuB-h","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kGFltHEKxwdYSvBUMRHxZ","name":"onDeactivateEvent","brief":"

            onDeactivateEvent Notification function

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ff7ERSGDEY6bNfRcXSds-","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8RI4Y3YxTLLtsMrp-LJGx","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"264PpsUnncZkCn8LBLixD","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"yvGKB-iuLUOvllhwq08Sg","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"RO4yfdThTFK2HFFmHNl3x","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ofy3efZXvJ9rUUCzOJs5b","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"02qLAswG8pIdDBR5uQMss","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Oe1Kb6LyDPLqkiobp2icj","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3P7Gy0KTju6bouCxpWBhM","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gY5fYOo7d7wFLFw705Yu8","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9xRnKKSi5p7MIhDgdTnDK","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZPWXvL-s2gbTBHPCO6kVx","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bTqyptulkV2tD4WaE5NKG","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7gawiPuW4BLzSFOVXWJ3-","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q74KgoLWGc_NdXEUUbdXF","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9ETUo9HokWbTkKm8qJ5f7","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4IFHbgn9doMpkJlifFkYK","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W_Q5PGnkj8GrV2rMpXZEw","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c9XMafbMBHJZxCMpKxYn_","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CB5LzSYEXffjsbXyW4T6p","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ir-gY44bkk9JCgMVxFwLk","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this entity.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this entity bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"icbcDzGDbIO6X4ShlGsHc","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this entity (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3_6Wmat8P8UWC1AT_M4Wu","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"WMEX-zqFlN6NLnyOkGeCe","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

            a base drop target object

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"1TQvt88zNymBsAdnYViMO","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"az24VAUOBCvqvyROMH7L5","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xv8bZzmD6Ii9kuIb9oK4K","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pcRis8jIwRy4qrGUNU2G9","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"66vRZ8S88TJyDIefCD6Xl","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HdYm1Scnv61UGGQe5oUO2","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TVb3vyxIA-GOdgaM7sUNj","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vTtttQP7AlI-W_DY2wfH1","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uRSk8g_YpQphyT8eKt1PY","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0G6b1XVjrFAYyyMa-XTHE","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SkxnPpZmBv7WuNCz0rw8o","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

            the checkmethod we want to use

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9qz_Vu94ILEuVpa8Tyg_J","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

            constant for the contains method

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"58ee8-fLAGBgilj-GN_4I","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

            constant for the overlaps method

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uAvcmcbLFe_Qr69Oms3jD","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uOOpY6RFlRh_qB5IouqZ7","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_gctT9grV4IcmlhiZN4Xv","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rLP-KixQxc8dHeDY6_mMW","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NZJQ2b5kCmkP870IzJav-","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dnJQDv8y5Yx8coy_aTCdY","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G8RGAzi51MuLmypKjMOWv","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZtBvfjpfvsFFfs1JpPtrx","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UgX-k7on-cOuKGtKr932X","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"22AxZd1snsy61YThPBJb5","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v7_-E9tVQsLz5YHGsWWrG","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGyGtD7H_XLu7ZXSy4B-v","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tg2eDpbLMf_MRj456Khny","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CipyIKZb_6EFzMoGr-mhh","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1TmbXHL1xcEfF_hpO4TGM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q4XbJuEnAS7LOY6wyJoVi","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pjCu3rTpfFGFi70gL4nQI","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GRXn325vEbOiV0GACAFRg","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5xIU_oSYlDo63sOXusSgQ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1CJkcw-HrQDawotn_SBxW","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o-Kyms5bktjQEeqbszEZa","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zv6k7LL_noL3RApBtH09h","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XHuQ2KQ5JhyMEJNg3jCMp","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iXl1KzIsQLlZm-gSZH1sp","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0zDWenTl6iGtxqdHqFda2","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cVpgElhBOkScNfC0eiBIS","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wbAq12ua-AoWAnPsoyiQa","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y8uaYfanwuTzRjz8EG_jA","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z8pFrF4Oes0qAVwLTRA5_","name":"checkOnMe","brief":"","scope":"instance","type":"MethodDoc","description":"

            Checks if a dropped entity is dropped on the current entity

            ","params":[{"identifier":"e","optional":false,"description":"

            the triggering event

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"draggable","optional":false,"description":"

            the draggable object that is dropped

            ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zCcFHU7Xq-nrccFl7PauQ","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XWNmDLwYfsH7pqDtiOpk4","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the drop target

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the drop target

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            drop target width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            drop target height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EIYcdwIkoOGzE7mUfn6r9","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xpzn2oAuY2hyvE8VacI-8","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jhdgb-eNFhbCcXoBPq7zN","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BukGgmViaK2HjKBiSpD8d","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OsO-bv5iI64qDvvb-HJui","name":"drop","brief":"","scope":"instance","type":"MethodDoc","description":"

            Gets called when a draggable entity is dropped on the current entity

            ","params":[{"identifier":"draggable","optional":false,"description":"

            the draggable object that is dropped

            ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GZysXpGL7rxPmL6lpaMVn","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HGR_T45KNnSn2CuZTqQu_","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZTgk1dHa4reFMzC5o1D9S","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RLzTfuAs5BjIcElwYFCtH","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JEDv7oFpvSm4TBQ7dKmop","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PSA2PFOpC0VhyvLrCdgAv","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"K_-zjLpVqIAcE0Rs_dPHh","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M5_52cmydpEOso5LjJKm4","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ybEt7WUue5omGaOTk_Wxk","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5llIkTutFF6EN85vTaMC1","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4LbJCjitFDO_aOaE9eKXp","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"il2CJoqYuTruNAndL3oVY","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yoyfcJfljzaozG6YCnoIM","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"c_6ZTOjOWU3Cz7I5MvUbm","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Rb2uggteONWbjKNrb6XvO","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"rOakbP0iGCbDft6Hdw7_I","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dospniiupMIY-JurLeWKV","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lfqrZWSIApIx_XPeWDMj-","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DMWjW7z8wIlATA2X8Wm2j","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VCh7M0B5eakWUg0gJaz4-","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"35Hs7MqM2ERRyR4hs3cpW","name":"setCheckMethod","brief":"","scope":"instance","type":"MethodDoc","description":"

            Sets the collision method which is going to be used to check a valid drop

            ","params":[{"identifier":"checkMethod","optional":false,"description":"

            the checkmethod (defaults to CHECKMETHOD_OVERLAP)

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"14mvZ_rhOzMMLBlJaAl-T","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wshn-eSdxKbINWglYngRF","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s9tBwZX5EwXg6Wu4z4eaq","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f7Ti8fzZaDy4ZR1tZlCSy","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m9mIwkmdwbCcVoCgaUUVY","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5EUF2io2_EFwNkhjO3JBH","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1p9pqPXJYgqqGax50kkz2","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ejg30Q0Et7XbtmXGg7VNO","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"07K6HnVAMjetdmW-Gp0N-","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EDHtZyC-Oc2cjC8qjtjAp","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2980GXTumF0eMXBSmwa95","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kRx_r7Zz6D1vhnrkzjem4","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E7yyFHJNq5ixgodsjsfAq","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"iuGXxzrfho8Wqjy_hYwCq","name":"DroptargetEntity","brief":"","deprecated":"since 10.5.0","see":["DropTarget"],"type":"ClassDoc","description":"

            Used to make a game entity a droptarget

            ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"Sg5b3RxsIOPiHlQMasrRQ","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            dead/living state of the entity
            \ndefault value : true

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"111W8BZ-KFaDwANkGrq5G","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CVvHgHDyy1by_irPwDcGa","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fofulmjwmj4YzsiFvMteE","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56s1J_g0H2-gyB9Xw-Mvv","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S1twB5Cey3XDuKVCuDwfB","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5YvqJipjSOHBDpnsJPD6b","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vQVESy2bpWq1XHv0ewvsu","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the entity body object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dJCuauN2Mhhq5MC5AiYTZ","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"itpwLcFqEsu1K9fC9Jtyr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AxL2s2iBRJqfvyOnzICES","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zKZ_XAkD_PvsaFZv6BhkG","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K6fh1PlPCkjcijzv7Zn4I","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L5zo-vAYcmTkdU9rtybcR","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Qwdw2GAiF1c1c3v_3SLs","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ccEC-xzLRvHImzSH9Mlzh","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vFWd3jl7ktV4JZunR0CwF","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object unique ID (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3MKq2wPWA9rSXuMVFGcCX","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y1keCzgvBfD00wpkeSAx9","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CezGWmn909w6Ivj7DKRjg","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-YUsiUrFbXQToV_lc_zdn","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LNgLfqnVkE1SqDYtnjuyr","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n98zMobRqyuFWjKRM3FjM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tIYzFkPqZbD42mF2PoBEn","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3kcmf_gwG3bU6VSLg98sL","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XuJbkQ5sjzzIpm7gU9c_S","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oc-j5vUpSLM4E06TDu1K1","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0a-VRzXcAgL3QS7EMnA0k","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HOLVXW6xNlVnL2NFFnp53","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gtvhy0MFdFdKd3omFuOGi","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q2QEq-ODk-8yTg-CvmqZP","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FB0oNTQ-8yqZPP9PLsl3c","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pMaeR3Saz0BXaaEsi9Ao8","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l_cipHUz701vs9-HM7bGr","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lIHbqd81p_UjiPZ6COxTk","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"57PY_VyTifBr3FZ1z8OG4","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n-tdb1pDhWrwq-F29XS0h","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object type (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3MZcFFr50U50TsQgfW1Tg","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DQMhqj_9rP66Sz4uY5nYU","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sFMw3UIn1LSTEFnQU_rzh","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5htiPG9NTDRk6LtSzaPLS","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lDbSiHf80Ph2ENldX1RS9","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"598-AWVc-D-E7nFZ5GJe6","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the draggable object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            Entity properties (see {@link Entity})

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"CBnbxIGVxh5Xm4s4Newjk","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ujk94u4k3D7dDIJJmBK4W","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qUe-21JQA-RUUQUWw3054","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BCqeJacoeGkH94XeuPRPI","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L0i6DXCzjV9Txogbom0mJ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ewDrkmFySTzZs05DXxcOA","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H0Qu82eW_-uXhJ0Xx0LG5","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oVUNjd39S2nvDTn9i8xnE","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EGGlHxfS2Ixi7v5kMx4tq","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"aHWr_cdyF3eJkiUGpauv2","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WSKto2MKIjf9HZRPZQl5-","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"B4nDAMwR6YeJHgm2zoZvb","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PrvW7gQ4b0I7OFrwGB0s3","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8cAe787ex3tKF44KIKFmx","name":"onBodyUpdate","brief":"

            update the bounds when the body is modified

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eXwQNyaooxpwgopZUa-JJ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k7h1fM4aAy82ylXE3qVe3","name":"onDeactivateEvent","brief":"

            onDeactivateEvent Notification function

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I34tSXruR1flzBQpKfnxG","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VwrnD6qMRfY2S6GGaIHVc","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Gu1z4ABi1ROk39VusCcBz","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GxMdMlGLb0dAF96AiY6Dl","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"SsdVh8kG7nLy0I-m6Q9SG","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5C3rDR-m3v2YjVIv_C90P","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KF2YVvOCKuSK29LL2MVXS","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2xD3k1Y8Yisj4CKYteDdA","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ex-H0CV4uQmyCKfjai9hc","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AnG1cH4JBSAyFA5JRAHky","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0vLVBa-25lnVv_H5JNHjz","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U2-NKoO3hR2h18IJXTQrI","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KA3sVHWvpwqLptpPyoFnb","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wivNOFdkyjnISrTvQwFFS","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hGfDUp4tC0S_5sBp7cu2Q","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oWSXgXMsbmuaTogl_PhAH","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ftpQfbJC6JOi0GJ6D65Ny","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q2qASqB65evv2fTdYlFQr","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JN5CrR1X5Htfe478E-LgO","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AGpFl2BvEnZxEXfbFtcD6","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uyW7BE5epidrhwWrzRDyT","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this entity.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this entity bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VfB5xos5Kt7vZoNypEs6p","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this entity (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EDLhqz-h0_7Y4GUQuKx2I","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"VMbzbu5OHbe47DMjdM2qn","name":"Ellipse","brief":"","type":"ClassDoc","description":"

            an ellipse Object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"BQCs3no3icLaKKHFbI6iA","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the center coordinates of the ellipse

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lsRwTsqZvl2m19sTD_QgV","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Maximum radius of the ellipse

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3dlmAgdJZAMkbAFnOlAyH","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Radius squared, for pythagorean theorom

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tUdhH7HWJmYBITKhKNBJn","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Pre-scaled radius vector for ellipse

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zV9ADE6fJ5l22y1FKEXv4","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            x/y scaling ratio for ellipse

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d8jPTmcxODwBuoncsF9Le","name":"type","brief":"","defaultValue":"\"Ellipse\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K0_YjzUt1IXcT8EciGOi1","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            The bounding rectangle for this shape

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZEVAIG4AhYf1j6AHLg9gO","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this Ellipse

            ","params":[],"returns":[{"description":"

            new Ellipse

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7O4aRO3KOpW5sF016b3jJ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the center x coordinate of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the center y coordinate of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width (diameter) of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            height (diameter) of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mUxbFFX4uoMNhJK8Dmiqx","name":"contains","brief":"","examples":[{"caption":"","code":"if (circle.contains(10, 10)) {\n // do something\n}\n// or\nif (circle.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            check if this circle/ellipse contains the specified point

            ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if contains

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sNaVT3RIA9GMfUkshwu9D","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PCQm3Zq_ZSwnFHblLSH78","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this Ellipse (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uj-WX7r3D6QMAJ0H2_Yre","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Ellipse by the specified scalar.

            ","params":[{"identifier":"x","optional":false,"description":"

            the scale factor along the x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            the scale factor along the y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TG6G1E_gYvPWtIt9_tDkD","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Ellipse by the specified vector.

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vKhlqWdxGiTaByHrW8gK4","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the Ellipse shape

            ","params":[{"identifier":"x","optional":false,"description":"

            the center x coordinate of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the center y coordinate of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width (diameter) of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            height (diameter) of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9Ilsne50gZpVYvxNoKWXC","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the given transformation matrix to this ellipse

            ","params":[{"identifier":"matrix","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RNCvpI_mZRy-QoCQu9j7O","name":"translate","brief":"","examples":[{"caption":"","code":"ellipse.translate(10, 10);\n// or\nellipse.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the circle/ellipse by the specified offset

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this ellipse

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"iwJRVm37br_85H5v9AUxD","name":"Entity","brief":"","type":"ClassDoc","description":"

            a Generic Object Entity

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"9lv7UJb9EbEuM-1ypChT3","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            dead/living state of the entity
            \ndefault value : true

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mSnU9p6hZA3OBiiv2NRUE","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5-bTp9idIq2scLenJPPBq","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kZ1YKQIW5DQQqkBiSeRwz","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eaZbV15lEjC7h56D9RJbA","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tnW9VOCjd43OsJvqcjPQY","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ymcB1yU_UGZdDDYgOaR5n","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bWyQbEOrYEfDWgPaPL6Fk","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the entity body object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K7B6HiKlBAUMP7PAEv-Q8","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZOJR_cX-BuGFDzyTOgBaN","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xvi4idYhbzX18gT5r0eNb","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nb2PQPniwVUmoC2pJx7M_","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1YWpPAVTu8YhDOFT44Bc4","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tfTZvMj68sCvgWe6Ap-Gy","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bhqB-rRLCJtispSkPsZG_","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2YOSqjHN_uvLs8PClRBQu","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vZ0YGnbE-eBPKlBjkMCmj","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object unique ID (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iwyntmw2RSsvY_jBkJA25","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M42xiTw4g4Df1a51Lx7BM","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MNvx0mZMgfkaBsgQgznyD","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mfZzV8TKmP7WAebl3fD3B","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"76v6Q6FshRrGwAFDd3Hup","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QVrrhXxjmG4XINVrMkjnQ","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2A90xlt-4rGVlp1Hy_nM6","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ESTtRMHjrirWrIvucf7Wf","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sb7-d1yoqbYSPPekpQvaS","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4w4L31p6_w-JmX3AikQBB","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xl5XX1R2SqjQ4s6JOb-N5","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z8jEqXKJ_NvJVDnuHaCPh","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8dvVVsc50cE96JzxIkUqw","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WZhC77CN6Q6dqJM_eUcxe","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QAymK9SzuMmjT0m38a7j8","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MKRgzln4Zrm6uYXUeJFaf","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3RQRPYtytDtDyZ27lO8os","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n4NfuRjL0xdg35ytijV2f","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YmRQ7S7-mz8uNhN7r4ogC","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0gDyBYi45fyyg0JJYEmti","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

            object type (as defined in Tiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XhRa4L6jY1WKDSaKxbO2p","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZDLLC9VQOQZBguBnisTC9","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5g58pM91beizYLHVmT787","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H2qhZ3Qliylp188HQyZSE","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-P__8irm7yStZYeF74-V2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lhdXMP474q3I_Wq1g-M-q","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the entity object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the entity object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            Entity properties, to be defined through Tiled or when calling the entity constructor\nthe physical width the entity takes up in game

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

            the physical height the entity takes up in game

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.name","optional":true,"description":"

            object entity name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.id","optional":true,"description":"

            object unique IDs

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.image","optional":true,"description":"

            resource name of a spritesheet to use for the entity renderable component

            ","dataType":{"tokens":[{"value":"Image | string","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.anchorPoint","optional":true,"default":"0.0","description":"

            Entity anchor point

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.framewidth","optional":true,"default":"settings.width","description":"

            width of a single frame in the given spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"default":"settings.width","description":"

            height of a single frame in the given spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.type","optional":true,"description":"

            object type

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.collisionMask","optional":true,"description":"

            Mask collision detection for this object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

            the initial list of collision shapes (usually populated through Tiled)

            ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}}],"returns":[],"extends":[],"implements":[]},{"id":"jBl2Nw7fbNAR062f0SK7B","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zH8FMUTIbYuc_UMbVHfq7","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wFsQXhNXvY7cKIHIXwoIw","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gObSn2YSqTwSHTBG9POOK","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PpE0ZiRWRYPC7QnnIzRHd","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QHO_aA1l2X6GH8mISB3Ts","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hK5iY2FFtsgD4rDfNZlA7","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v3t2rdasEZLPIgC6X9mN7","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nWKIRMTWuju5eTo-Ku97Z","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"FuK7aaFNTnVJjPmeT4P4p","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wao3PHFQkFZZw2XBILf_6","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qOxbg5F8w_cIQjl4Y2J3V","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"K_jik2Nl7uAZ4ZmsFOBY9","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RGuQ77vLTkbV8rg_oJyQQ","name":"onBodyUpdate","brief":"

            update the bounds when the body is modified

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tSoUSpEg0Q5hhZJfXyok8","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nqXwE0irzhJw9gHDVxhNf","name":"onDeactivateEvent","brief":"

            onDeactivateEvent Notification function

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QUNdKcoARUC15nUNiKc8P","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WWTp0B6oLM034naS4rzX3","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BueY6zMQ9kMaAjDzyBKOS","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"25QTRmzpBxeUP0f76yNXj","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"51qW1cU0U0dSWTlUCvjB-","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a7d90RoJJb2WZOrfJgSpP","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GIKtYVY6m8qgTdMXH-pL4","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4M1Oc5sZy7dHbO3OIDy3m","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NAPy0pLpTNAB5wL249wAv","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WZQ1jWzeC7ddOx4KseuXC","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pHZW78fbH6NcseDzaprR3","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rA4a-cno3u1uqfMl1H0fH","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"64ox5lOeTR0sLdJvy6vn3","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iDcXu2alPtsMqYTf9A63b","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"icR1e5JBJPtm6fKVfPmBd","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wnFG0qK5MjzsnlIOGYUAj","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4Sw_RKOVDs8ucTMStcVog","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iLTOaD_mfbaAprpnqXuKj","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ytk5zJEIUWGHthh_vWrZy","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u-yBpo_1f1RBpu6JAOztT","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q4Ya-fm24k0pQp8OgCIhe","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this entity.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this entity bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YKrF1qKAprntHiIHFxOvI","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this entity (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"uQ6grOqTM_nArMWTLQWdC","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"zCAk9emC0SBQ_WPTeT4S-","name":"GLShader","brief":"","type":"ClassDoc","description":"

            a base GL Shader object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ABn3CZhMgpLfioWQVroXi","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the location attributes of the shader

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j114UrRXe_FYXyuwi9Pzi","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the fragment shader source code

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ClSz6XKkt-1HlR3BoYZQp","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the active gl rendering context

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EH9b2AM6-qmqSnlDiZihv","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

            a reference to the shader program (once compiled)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gHD2v2G9kGErEJXn_ZhXV","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the uniforms of the shader

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_veuc0J7mf8zYGtuRdWw_","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the vertex shader source code

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4uvtJWPBa78oMXTzYcwrs","name":"bind","brief":"

            Installs this shader program as part of current rendering state

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q6DMgjyQ8WEZzPHbhWiJc","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a basic shader\nlet myShader = new me.GLShader(\n // WebGL rendering context\n gl,\n // vertex shader\n [\n \"void main() {\",\n \" gl_Position = doMathToMakeClipspaceCoordinates;\",\n \"}\"\n ].join(\"\\n\"),\n // fragment shader\n [\n \"void main() {\",\n \" gl_FragColor = doMathToMakeAColor;\",\n \"}\"\n ].join(\"\\n\")\n )\n// use the shader\nmyShader.bind();"}],"scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_on_the_web/GLSL_Shaders"],"type":"MethodDoc","params":[{"identifier":"gl","optional":false,"description":"

            the current WebGL rendering context

            ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"vertex","optional":false,"description":"

            a string containing the GLSL source code to set

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fragment","optional":false,"description":"

            a string containing the GLSL source code to set

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"precision","optional":true,"default":"auto detected","description":"

            float precision ('lowp', 'mediump' or 'highp').

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"6WcUbfjpk4pp3ZBz4tggE","name":"destroy","brief":"

            destroy this shader objects resources (program, attributes, uniforms)

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aKU9eZwOW-PFXWy-tNNWm","name":"getAttribLocation","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the location of an attribute variable in this shader program

            ","params":[{"identifier":"name","optional":false,"description":"

            the name of the attribute variable whose location to get.

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            number indicating the location of the variable name if found. Returns -1 otherwise

            ","dataType":{"tokens":[{"value":"GLint","kind":"canonical"},{"value":"GLint","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RSou3stUHtIkH2CpLhkVX","name":"setUniform","brief":"","examples":[{"caption":"","code":"myShader.setUniform(\"uProjectionMatrix\", this.projectionMatrix);"}],"scope":"instance","type":"MethodDoc","description":"

            Set the uniform to the given value

            ","params":[{"identifier":"name","optional":false,"description":"

            the uniform name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

            the value to assign to that uniform

            ","dataType":{"tokens":[{"value":"object | Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"object | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"86-SkWluWghB_mmYQG8fE","name":"setVertexAttributes","brief":"","scope":"instance","type":"MethodDoc","description":"

            activate the given vertex attribute for this shader

            ","params":[{"identifier":"gl","optional":false,"description":"

            the current WebGL rendering context

            ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

            an array of vertex attributes

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"vertexByteSize","optional":false,"description":"

            the size of a single vertex in bytes

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"h2hq-rLAD_yilGxHc8076","name":"GUI_Object","brief":"","deprecated":"since 14.0.0","see":["UISpriteElement"],"type":"ClassDoc","description":"

            A very basic object to manage GUI elements

            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"kbRSxR3OFwvI4G-KS94e6","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FGRAufwVlWWeUy4cB291r","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KTBiOl4Rms79V6X-5jn2P","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"60g_WHzjlO9NX1FGGLnJq","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U7C8pEqT8b-hSCwXTC-of","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3MITWaqe6ICsd_NsEm4f3","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IyqewAhIrBuv_xSmjlR5V","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"drlSYFQKXtI-IE8ob236O","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j9u0sYwVHa8LSKqvDFmy9","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cj9dvmC7_xhvMn9loWwY6","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rDz9ZQxPLb_6HxG0gfTY4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rIYqs2HI94djklXXmW0Pu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPdUBNG8hYl94O97ylpnw","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ET8PCp9NT7abJp6SdpVc1","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oNohQgp5xdYd6GTjjFuJo","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"05CdJTn4pgVYKZIk4viwA","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YlSY8IKDrodREcabHLs3K","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wk76-gmdCXIWhECLRxH2l","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yeD9_voUQU7M-R0YvCoCd","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PT5L0wdNtqTiXiyB8Z5Hg","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PUkM5pa55BC3RXW9ZC3L4","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pSUmsUpxNG7CR6EXBgj3I","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TM9393sS299s3OE5ja5gb","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LxwXa2B_j96uh4slRk9UI","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KXor80IP9ExGZgQJBRqlT","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WSzP5y2HQG4idh__z8-sE","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eZ--e7M-DY8W0BlD83ND2","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3lidRc1wy7eUdK2Z2C_p_","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sf6qavHPaI4WVc8yFuooo","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

            global offset for the position to draw from on the source image.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0fDvusyVHfZRemlhSq_5c","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hEkVice8x3hlh5OxiZOXs","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tuYwSHKAvxKSbYBq8B4Ur","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6DoNG8-gWW9pcmooO4VUs","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eLPIDBSWTyK5_X9WAch2Q","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AkPRbiaBBAOptoHTyMBIk","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oM-CUk78keIVUFTKN1L2u","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eUSXnib4gZv5H83P7IeRR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zud1JteVfq_pWp9SQ-3ok","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NbPVbdQrr9VMCi65PXNgp","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RQy4DvjlIb45c-GTtamsb","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A5vk7N95kVWsvwURT09az","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K2_AG_W41YzCIt5BZWMvu","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            add an animation
            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

            cycling speed for animation in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            frame amount of frame added to the animation (delay between each frame).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W9Fdglz6GFH2jjJnSCUIZ","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"saHhh1sWW4AQ6JMWHHxzF","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zGVCB-euMSoY0fOK-UUXQ","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V8tCo_kpJjReFTtGzm6G1","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate of the GUI Object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate of the GUI Object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            See {@link Sprite}

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"I-vNPYjsRqvwJMseQfCWF","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I20o1wPWUZJ2_Aaol3wV3","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GeeTZZK4_Fiph3jNyQ0QQ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jXmm9uy_bO0-4iNyauTaN","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q2RL7aB_IQlthPU_oESem","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            make the object flicker

            ","params":[{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

            Function to call when flickering ends

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zvDAuKyiD3t64yuyOmRjD","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hqNl9ItvhRgtfe56cZ2Bn","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T-Ch4W_woeLhNcWuWVCjg","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lb2gt-x_5I56G4sodzDKG","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wP-nyKnneSnCDKg1Rga2W","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current animation frame index.

            ","params":[],"returns":[{"description":"

            current animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5h-D-lWtHnuMUMUSAQWlw","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"K80U7_Z-kMJU6qa3YYVbq","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xfz23KUw4zfu3KE1enppb","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vfrUboBdwWNgDqZwccvhz","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

            return true if the specified animation is the current one.

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sRZZGAFxfy2cYuxelWz0b","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Dq9NvPxzxrHB6j-MxEFso","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the flickering state of the object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-3uipPU9shb-kufoNEO0m","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EwWS8TeYOeTPaZq2TvK2u","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"g_z2XkDZ1XyifU2bXK5uQ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hua4Xi-dF3lYQwMzCNu26","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"c63AYr5eF4wgO4_guJ-JY","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PGCThrlXx_wdd7usnZujO","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4jUVq71zWsjM53NUyTNC","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"3Su-qUjQ_bI9dr5O_Wpb_","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"qCn81grmOcGsItyVgUe8G","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U4p1iagL76XVoNPWXvg9W","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iIoKxX4jCeNWOAQrSa0fK","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            reverse the given or current animation if none is specified

            ","params":[{"identifier":"name","optional":true,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FxgY_IaxK0oAaYY3XjU5Q","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oSFgjRJ-s0nqbvc-Cm84r","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3JU81phKJN5D-tf7j0Qsg","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wUQlL4RgB47fzohA2vxhB","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

            force the current animation frame index.

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f9DZEcVcpX5YtJnuxcOh9","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

            set the current animation\nthis will always change the animation & set the frame to zero

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

            animation id to switch to when complete, or callback

            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

            if false will reset the elapsed time counter since last frame

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q70I0scMrOBwRjAMooMK7","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ncj1o2QIEsKJ_CPOnL0jL","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

            change the current texture atlas region for this sprite

            ","params":[{"identifier":"region","optional":false,"description":"

            typically returned through me.Texture.getRegion()

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6c8_4jwXmqFU-F3JdPfbm","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pqmb0UzIg11ShULgxLA7e","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3FGFcxp_ZIec3Tp_-uvw6","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wTbNo5vEos0-YU1kv8uml","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yxXjdHU-iiZD9kBkH99W6","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yOZVu6L4cwH3vgw5z09xj","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c5H6Kg8MGLU8dCRkTPP8u","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1gBhPqadFqxAXfHqfworQ","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q5Fe66x3A2hbyFzwGpZXn","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AuhnR-QN0u5dGwxjFCykz","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kpJQ-l2ettFQBFHC3ttP3","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this srite (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"O0-B_3PoZGsbAUSpRVB5o","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            update function.
            \nautomatically called by the game manager {@link game}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Sprite is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Nrgk5KpynX_Fi8LrxM2yT","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Na-WBVNy-Tf_yY6nWe0Lh","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

            a generic Image Layer Object

            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"MImqR3tCZwQkOLQYO6qPq","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TRucSLMbldcxWxCdkquYJ","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v0hu_7ZqAWfF-zOY1JAwp","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gd6gAmcEOgzVmG7DcHHXn","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wb-1dYtFrw1VEiNKE_aRm","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LA02lrXcrSA0kVDKrjmqd","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mqRRQBU8q-q62kNC-Juis","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O6pGzRa0kKM1mj_X0nr1e","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bnTMK8Vud7nfFK2vtyydf","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"akcO1qjxM-qdyJV-PmU6i","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5oDmsq2hnwB-bSfJ4w4As","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L-MCR93abXlF71ynRnMrP","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5A-C0XHtGEWRaQwFB_sR-","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NRbJ-pDB2hWjxYFuWmKE0","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PMb9kri4Bz5Og8QVoy1q7","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sfQsbEr2ZrG6cadcyhmUq","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YXqRyN_z5YCaHEE0fwlMM","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MiKeTiY555jn1ibmQSPuq","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TzZBUBMwlmwZESEjf3WS1","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SYZ9QBWxKXNnAPBTF9g89","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OlIUXPcK5Q0PUvJP_g5VG","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_VCPuri0Zz9XDlShbGGBQ","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"giZX1qLDVbZVLjzs0oTRM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n6YJYFySkTs-B52hWHAxq","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_1o6Pxk9qp9KpBypBjAYk","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m95a9e3w-RZ554gzMqy_p","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hiqdZ35APTS6FPriolas1","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Op3wq6nWyKmeeSFzZ0cuW","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qJKtLfArDvz9JGYTOo0oA","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

            global offset for the position to draw from on the source image.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rQZzdmGaUeySoFT6RRt1u","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b1MOP4bWiQEF2Ru93mY4R","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"95VC_acGRswaYMfbR5tP7","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IzwQhQOa1lDUxatjiOHKU","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VL8TYn-bM4NQGNc5VYwg2","name":"ratio","brief":"","defaultValue":"<1.0,1.0>","scope":"instance","type":"PropertyDoc","description":"

            Define the image scrolling ratio
            \nScrolling speed is defined by multiplying the viewport delta position by the specifie...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PcWBBaWD2VS1c1cSV6cyc","name":"repeat","brief":"","defaultValue":"'repeat'","scope":"instance","type":"PropertyDoc","description":"

            Define if and how an Image Layer should be repeated.
            \nBy default, an Image Layer is repeated both vertically and horizo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NkIMrPAM3Nmfp8Kv_0VE9","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BwGFQ8SRSec9LjUyTXB-B","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xumDJSenyAROVYsplO9e7","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nzL7LH2_4UCWeal1i0XFz","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RjebtLhjp4JBcDlvywlSq","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BRRVDePIxxtKbGo0RWtZl","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wVoohxhrH1r6j_HF2ExVh","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sCjoAvr475LIX1VZ6t2Hi","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F6z6zUdMtLnkXd3hvPwdf","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            add an animation
            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

            cycling speed for animation in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            frame amount of frame added to the animation (delay between each frame).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"psRbY5rGiYZI7fUg7liyG","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LXAEBSrskRSy9Wqj8LqXt","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UvzpWqHxNIza6d8AcoD2b","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sefLiDmnKRoUxvS8ckJwl","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a repetitive background pattern on the X axis using the citycloud image asset\nme.game.world.addChild(new me.ImageLayer(0, 0, {\n image:\"citycloud\",\n repeat :\"repeat-x\"\n}), 1);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            x coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            ImageLayer properties

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

            Image reference. See {@link loader.getImage}

            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2 | string"}},{"identifier":"settings.name","optional":true,"default":"\"me.ImageLayer\"","description":"

            layer name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.z","optional":true,"default":"0","description":"

            z-index position

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.ratio","optional":true,"default":"1.0","description":"

            Scrolling ratio to be applied. See {@link ImageLayer#ratio}

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"settings.repeat","optional":true,"default":"\"repeat\"","description":"

            define if and how an Image Layer should be repeated. See {@link ImageLayer#repeat}

            ","dataType":{"tokens":[{"value":"\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"no-repeat\"","kind":"canonical"},{"value":"\"repeat\"","kind":"canonical"},{"value":"\"repeat-x\"","kind":"canonical"},{"value":"\"repeat-y\"","kind":"canonical"},{"value":"\"no-repeat\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"settings.anchorPoint","optional":true,"default":"<0.0,0.0>","description":"

            Define how the image is anchored to the viewport bound. By default, its upper-left corner is anchored to the viewport boun...","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Fl_ypBwO0EhZDnVeAfJsY","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_92G0hBI6rMX4WZfWtzp2","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iWPsOFRAAJjpiMZm8Y4ei","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x11yLzpZJk7M8gPf1d0GJ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8-BA3NkKdqQcHER4paYKB","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            make the object flicker

            ","params":[{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

            Function to call when flickering ends

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ImxfBBIwedzdjpZjBrDwy","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xjOQC8BZLyYOGVia81DQK","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rA-B7rYkK2LMt9Sxeyru3","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i_poxPnMFX33hITd-Dzf2","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lf1EZ87yjmrhe24v1ZBmj","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current animation frame index.

            ","params":[],"returns":[{"description":"

            current animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kb7jTQpHQRZKpfqGewrNo","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"QbFOan8XKG8l44qckig5A","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a38gqmcmFj1nm_tcjIkG2","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4bJgbc0jmvQC45Fk4qGCO","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

            return true if the specified animation is the current one.

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_SdUjZ461OafF-TRgwixy","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Hox_oQASK-GOY0_b2ubYM","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the flickering state of the object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sdWk6ra4pwYT4Ny5BTNWi","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XQGJe3mNkJCMuRmLFhaeE","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YVIXIvsU8QPXoR_18qXkp","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pzy_rihC4NXdDYY1njfGs","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"z3POniz1aMwqd7JkFN2J_","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M0KAzTvW46xP9AA-mt5yN","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hRFvNRQiNLgIdXH_ArSAB","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"0Se2ElR_fG1K3vpPVSmh9","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"RWrGpCwwuKXqKdTVGs7E3","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F212vE2iaOFX0yf_YLL_l","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the Image Layer to match the given size

            ","params":[{"identifier":"w","optional":false,"description":"

            new width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IuzUrn5iSq90VHrhdtmu8","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            reverse the given or current animation if none is specified

            ","params":[{"identifier":"name","optional":true,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xLKGmd2a1mlF_kBxjSHaA","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QZ7RpqBkL-_X8lvuLPjo4","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d0F8mx7TsWGQNSyMwDYwb","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VOH9s244Eq3CAScTKcTXB","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

            force the current animation frame index.

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_A2Ti-VlSWJj2pXhiubx8","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

            set the current animation\nthis will always change the animation & set the frame to zero

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

            animation id to switch to when complete, or callback

            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

            if false will reset the elapsed time counter since last frame

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wH82nWCDHUrVjDuOKSmIg","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"oANhOlEgVW6eh8cGclaIe","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

            change the current texture atlas region for this sprite

            ","params":[{"identifier":"region","optional":false,"description":"

            typically returned through me.Texture.getRegion()

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tdPScpwQDmIgKkcyxP-jm","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JTzMxRy2FcqQyV-Ryl98o","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fxs6s0C4rTkyXxvc2RR6H","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KN3wAcrSzncK8U0pH83xK","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y4lzlcvoH0NbyfCoy-eaI","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3ruuByc_1rI-mMW4KW309","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GBPu8g9o52OnFTkLJVsdq","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7R4rIHDby94L-xutoAH8z","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_dD6upP88ETIvNVnWf8B6","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i_AqKdAurffu2BTB2BGz5","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VqMbauxsbP3yQc1-Lj_jk","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this ImageLayer (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FTNZ0cQJ6LEjQLroEVcEI","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            update function.
            \nautomatically called by the game manager {@link game}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Sprite is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hI9Arb5B3FPIdIAvLUMWf","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DE0uDZL8WvOsqyuJyqVk7","name":"Light2d","brief":"","see":["stage.lights"],"type":"ClassDoc","description":"

            A 2D point light.\nNote: this is a very experimental and work in progress feature, that provides a simple spot light effect...","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"xGKbqW-Ggzu6EtWFzX_OO","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Yo2qwIqMlFkS2nfbY3CG","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gkIPwXlw4SiY6uj00YaUN","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"chwaVKpUaHodHhhUS_HRq","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WQ0HdQyDhruwO50OfySEv","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KdnWp8SJ9TUwpu3OVCxD0","name":"blendMode","brief":"","defaultValue":"\"lighter\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the default blend mode to be applied when rendering this light

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v6Gl9lx42N_qAPizIXi5q","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mLYKxIn05JnMccUjx7xv7","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OLYAE-B0eidutR4Zl8sMr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a3DZMTr5Xubr83HBHPOb5","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bfLyS8zPb0i8nNkwauRxU","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

            the color of the light

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j4dGahs4nFvOIQMLh-Y1b","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sZy5WJTgmi1QSYCQdzRLa","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pcm31RofAIYQWuDhYCkb_","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c5hh3kXjMwqek-YhZt-f7","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-2MAC9A0C5q2eq_SEXpLc","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zWgi0oETplNwSIQ61yA3F","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

            The intensity of the light

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FhdFSMWimlhKqfYVLO6Ut","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c8UMadj3XiZlLM8AZ7KKV","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hSV0kIVlxVLsbwUWrotSZ","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uHgIwxFsujHZr3gA7-Ssq","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Km6Acg51d8g1rimw5FlzE","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o05O-fYoMesA8YPm5D9Ce","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kO85ajTwLYWbsck2Yilpz","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W222ek-zFUKbUWam_PxeY","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T2iljbtMXxFe4O7zB1yoa","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EtXAtasQq0dwvSX4kFcep","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6PbQewB_irHTShiN0EE2N","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7BTSASd308eea41KxLT_o","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n5iQu7pOB8ZcW9qt5l9xA","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PfJSeXqfLDrvtQIQb_RIK","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E0ou9JGdOzMD9qD3lIvoT","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The horizontal radius of the light

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"grqdJBDtJcY4q7B7GapcC","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The vertical radius of the light

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RHqrTuOTTJhVAy59X1IA_","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pNn7a8fstXdN_7gxDOwNa","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H_vhcZvD9aWpCdOzaYQ3O","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JZJMO22qVncE-38GWF3wq","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FTzXusoXbPtsNp2sDoyWw","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fBkzyvst3aHg2ELsyXSUI","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UzCI5zL2shs_UA43GS3j9","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P9ihFlDeMIoEJzy6k15T3","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eXUMLPK1oxhYcDd8gMGeh","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kjqD_dmrGGjucUd1JJSh2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zUu3_1bGK3us4QnQTf3g9","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            The horizontal position of the light.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The vertical position of the light.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

            The horizontal radius of the light.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":true,"default":"radiusX","description":"

            The vertical radius of the light.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"color","optional":true,"default":"\"#FFF\"","description":"

            the color of the light

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"intensity","optional":true,"default":"0.7","description":"

            The intensity of the light.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0PNFyPjd-3hMzwvWIUNL5","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yi5y3JSQo7DlGA9cH0kS9","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mtrQtUko6dyPG2qK0Tg0s","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tfBImjDjiieZqft48frET","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dIsG7Q0SoHe9URD5kUxtt","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tOZhhayrAUAWt-jrWn943","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a89V4p-_6mBm650z9ffWW","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fRR79fGYsO7eET2qD6x45","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BlcFWX91HM9ISZ4DU0QWa","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"S02y3_e5uc9UC90-PAyrk","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-3T4iOa3ivZZxsIuA7DzI","name":"getVisibleArea","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a geometry representing the visible area of this light

            ","params":[],"returns":[{"description":"

            the light visible mask

            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c4eZSxNrmYKfvlskhNqRg","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FkdEBYnnV48LfHa9w6w8W","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RSveLZIL8wswoclJLvu31","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-V6aL6ZiQ1wAlykW54py1","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XwChg8KOUs9pTDwyfq0-r","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KuBF3UOkm9i86ZJhAr--i","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3wXovI9J3Gg6zisEvYMMi","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"zRTsWlyrlZweD1QBYLw1P","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"YHScGROdhAbNoFwIM5yxl","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5y5tP2qm-HDF_g0iIYJl5","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4258XZFXI2NcHD6WqWojo","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2GSocfxd8zm9R1TMqD6xa","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QM_A0BeBYhjB2pp518RA6","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1gb5iAdeJ84UcdH1KB_5j","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"s0Xbp-cEr1FGjNP2pKzR_","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YAXvmjYxNHXUKARPGggJg","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5mBE7NI5XlxxBjnf9WxRW","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XAM-mVg-3RVCfOIIPMY33","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RggT9yPiLRCpN_5N-W-KN","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eep8nxG9zlzK7WZTz5Oty","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0ZrchlFPw7tmP69hw0hM7","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C0cPl8Nl8-G3ARNE1wszf","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T8E3JCQORxlN8BG8Oq6bl","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vqeVtrkM5c43v3MvpRZ_W","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MsIOA0aN6eotT132VDXgZ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EJCpqym-j6GsZ9wpi-EFv","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this Light2d (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G0--PrnWqIYf74R07FLTb","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"zxuCELnAszWwP1vRndlhc","name":"Line","type":"ClassDoc","description":"

            a line segment Object

            ","params":[{"identifier":"x","description":"

            origin point of the Line

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

            origin point of the Line

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

            array of vectors defining the Line

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"y39LhpMfstDl1b_-2HoO5","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_uTJTIpkyDosgSlkoLbqN","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

            origin point of the Polygon

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OIMCpoamMvbTQUZMt0Mm8","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SI2COkM1JwdhB5O3WTPKq","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this line segment

            ","params":[],"returns":[{"description":"

            new Line

            ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q9MWx3x7fo6TUMQNrBJ7y","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","description":"

            origin point of the Line

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

            origin point of the Line

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

            array of vectors defining the Line

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[]},{"id":"8O8XoJ7_cuYSst0hKjJNC","name":"contains","brief":"","examples":[{"caption":"","code":"if (line.contains(10, 10)) {\n // do something\n}\n// or\nif (line.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the Line contains the given point

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if contains

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kSoX5jQO8c6dnn5zPdHBD","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hstaIs-SV_ZOhHTdfBlOn","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Xu4WGBNJaTCZE1ETXwbXl","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6zCz0ryUIDvMLvf1HFoaJ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision edges and normals.\nThis must be called if the points array...","params":[],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SQcBEX6Lrc4LikhdoEO05","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wzsuQKYuQ7EPYLJfVR9pq","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given scalar.

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EMH2xquZ6tP4XRrIyMtqo","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2guyDGEvHgw1T4_tE--QB","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the Polygon

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ga-DEWaK4BDtcpx4ZKg1z","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uTYHRLaQHdDxUTm_2CtzT","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Mm_FQ_o4pEnQ3u-kUKPVo","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OaL3d3KX8p09PrBqB6eYy","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wlP5kupg2rdfGUhaVkc_w","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the given transformation matrix to this Polygon

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tp02Tyf785UhNQZ9Qf8Yl","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yYq3dHgnfJjoHRYwtymXZ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"amfiSNgMf-LTAnZ0zhOQv","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

            a Matrix2d Object.
            \nthe identity matrix and parameters position :
            \n

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xnA6BXU1vCPDaqON0DFhS","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

            tx component of the matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_g7SK0ZyowNI73ztoIkKx","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

            ty component of the matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y3eZ8kbugjPYuhjLxPH8Q","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the current transform to the given 2d or 3d vector

            ","params":[{"identifier":"v","optional":false,"description":"

            the vector object to be transformed

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            result vector object.

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"D1cce7QhjNa1VKB-rIpy5","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the inverted current transform to the given 2d vector

            ","params":[{"identifier":"v","optional":false,"description":"

            the vector object to be transformed

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            result vector object.

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ls1CFuYUygDrGOqRiER_a","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clone the Matrix

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fZB_8ur8Kx7B8p2U-xW3r","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

            an instance of me.Matrix2d or me.Matrix3d to copy from, or individual matrix components (See {@link Matrix2d.setTransform}...","dataType":{"tokens":[{"value":"Matrix2d | Matrix3d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2 | %3"}}],"returns":[],"extends":[],"implements":[]},{"id":"hiFKomZrjfxUL7ZNv5naB","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copies over the values from another me.Matrix2d.

            ","params":[{"identifier":"m","optional":false,"description":"

            the matrix object to copy from

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w8N-c7Y7JTkCHzt3TZvTw","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the two matrices are identical

            ","params":[{"identifier":"m","optional":false,"description":"

            the other matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if both are equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7lKryL4IWTQLcf68GHUHZ","name":"fromMat3d","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copies over the upper-left 3x3 values from the given me.Matrix3d

            ","params":[{"identifier":"m","optional":false,"description":"

            the matrix object to copy from

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h-26YhOQ8tNrqbZpicYEx","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

            reset the transformation matrix to the identity matrix (no transformation).
            \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"53FC7r4f2EZjvA51H-6X7","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

            invert this matrix, causing it to apply the opposite transformation.

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EZJdk-69PmIxw6JNTGnRb","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns true if the matrix is an identity matrix.

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_sp_sKF2v7gYiODq_9MhP","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

            multiply both matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the other matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aWEAcxARjLMQwy-sj3QVQ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            rotate the matrix (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            Rotation angle in radians.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PD5XePzHNsy-AddNUBebz","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the matrix

            ","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SB01S_WWOatGCLNuu4aSL","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a 2D scaling transformation.

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mZ2MI5XdZEr43JgEbwBvI","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

            specifies a 2D scale operation using the [sx, 1] scaling vector

            ","params":[{"identifier":"x","optional":false,"description":"

            x scaling vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GKsVB9istgxg5ZVC74gRr","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

            specifies a 2D scale operation using the [1,sy] scaling vector

            ","params":[{"identifier":"y","optional":false,"description":"

            y scaling vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wD7fRcM-FcN0jveNEA4AN","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the matrix to the specified value

            ","params":[{"identifier":"a","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"i","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K6okQYLrIZ7G70Xt5MtDu","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

            return an array representation of this Matrix

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O52vVqOHkkTDDB5tHUIU9","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the object to a string representation

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"xv0O0GB_DQkjs8W0fqBAi","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            Multiplies the current transformation with the matrix described by the arguments of this method

            ","params":[{"identifier":"a","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"010oiZCOD1kBFR4rQjxr_","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

            translate the matrix position on the horizontal and vertical axis

            ","params":[{"identifier":"x","description":"

            the x coordindates or a vector to translate the matrix by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            the y coordindates to translate the matrix by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N32Lhfb1N6HS3TIayqeOh","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

            Transpose the value of this matrix.

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"4Zb3g1RcpnY8FTEEdqk6T","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

            a 4x4 Matrix3d Object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"2YvjoSpnHrdFz0EWTO0bA","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

            tx component of the matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"szX5rE3EiFAz7mvo1oEdu","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

            ty component of the matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4gHp5-7qgr4qrUaX_QojD","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

            ty component of the matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JD_ugYKTIf-uf_x7_ff5u","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the current transform to the given 2d or 3d vector

            ","params":[{"identifier":"v","optional":false,"description":"

            the vector object to be transformed

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            result vector object.

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"EkRl6CY0-jDGHQcvwYeE6","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the inverted current transform to the given 2d or 3d vector

            ","params":[{"identifier":"v","optional":false,"description":"

            the vector object to be transformed

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            result vector object.

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"HnKuYwAfKfJosAsJiVsZa","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clone the Matrix

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rHrnWDNZzcw8Yn2KKrbic","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

            An instance of me.Matrix3d to copy from, or individual Matrix components (See {@link Matrix3d.setTransform}). If not argum...","dataType":{"tokens":[{"value":"Matrix3d | number","kind":"canonical"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"7Aw8zXNY8pP2tNsk0sRAP","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copies over the values from another me.Matrix3d.

            ","params":[{"identifier":"m","optional":false,"description":"

            the matrix object to copy from

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lhn15J3bomwufElwzqkLQ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the two matrices are identical

            ","params":[{"identifier":"m","optional":false,"description":"

            the other matrix

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if both are equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TYJwaR25A8djkgNsN_8Ya","name":"fromMat2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copies over the upper-left 2x2 values from the given me.Matrix2d

            ","params":[{"identifier":"m","optional":false,"description":"

            the matrix object to copy from

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R48SERfJpfkI8at6ZUxHg","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

            reset the transformation matrix to the identity matrix (no transformation).
            \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m5JWfgNYSM9rw16dqba6g","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

            invert this matrix, causing it to apply the opposite transformation.

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xBk2_sJ7Aqkrj2yLU9DxB","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns true if the matrix is an identity matrix.

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Bwc4g1elDAPklBc3Ne9EB","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

            multiply both matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            Other matrix

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NdZihJMnKJvuYQPEJo17Y","name":"ortho","brief":"","scope":"instance","type":"MethodDoc","description":"

            generate an orthogonal projection matrix, with the result replacing the current matrix\n
            ...","params":[{"identifier":"left","optional":false,"description":"

            farthest left on the x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"right","optional":false,"description":"

            farthest right on the x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"bottom","optional":false,"description":"

            farthest down on the y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"top","optional":false,"description":"

            farthest up on the y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"near","optional":false,"description":"

            distance to the near clipping plane along the -Z axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"far","optional":false,"description":"

            distance to the far clipping plane along the -Z axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wUAJ_3gi6HiJC-9OrR9Fw","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            rotate this matrix (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            Rotation angle in radians.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

            the axis to rotate around

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ULbJGrjsNzBKqzkSJWSok","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the matrix

            ","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

            a number representing the depth vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZUReJFgqIQWnn1KVvfw3m","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a 2D scaling transformation.

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s5VnJX8lb1ZgVou0twJ7x","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

            specifies a 2D scale operation using the [sx, 1] scaling vector

            ","params":[{"identifier":"x","optional":false,"description":"

            x scaling vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rhbSz4IWlzQ4-DfuEtRPv","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

            specifies a 2D scale operation using the [1,sy] scaling vector

            ","params":[{"identifier":"y","optional":false,"description":"

            y scaling vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4a-DfJUrHqGYpqe--jA_s","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the matrix to the specified value

            ","params":[{"identifier":"m00","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m01","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m02","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m03","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m10","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m11","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m12","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m13","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m20","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m21","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m22","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m23","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m30","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m31","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m32","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m33","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZgyIzOPLcHwIh7uZMHzWJ","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

            return an array representation of this Matrix

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r5ok1ftovplyqlEh3JidK","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the object to a string representation

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"fqUG_cnkpzsARYq1aItMb","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

            translate the matrix position using the given vector

            ","params":[{"identifier":"x","description":"

            a number representing the abscissa of the vector, or a vector object

            ","dataType":{"tokens":[{"value":"number | Vector2d | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            a number representing the ordinate of the vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

            a number representing the depth of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h5d6bBPeV9rajNmQ2gDC-","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

            Transpose the value of this matrix.

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"m4ZqkvULjRLUuwyuS0Wz6","name":"NineSliceSprite","brief":"","see":["https://en.wikipedia.org/wiki/9-slice_scaling"],"type":"ClassDoc","description":"

            A NineSliceSprite is similar to a Sprite, but it uses 9-slice scaling to strech its inner area to fit the size of the Rend...","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"KyaZ3dwtFXf03PYIPnBa4","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O9455PI_KZAaKAVgAWkdb","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7QVYUkpavQyBV8-poSUKq","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7-4rsL6_QaDZWiqgt4oWI","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5pFfyD_nUhipxJjUnEB6i","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KI0mVm3G8x0wuBiyx9Sr4","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-OJjNg0CkxGiJa6a3v9-s","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gji0ggZh6h7aSJ9Hmag2A","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rn0V94YAX7vrLoEQ05o9A","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_DVWDgvjYC9jTlLIDNPH8","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6ELDVyKhH2u7Klr82Gemg","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jGx-ckRUCbV-mPENpntqo","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CctoMygPhM1m3C6TuOz8v","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I2VbD8l9xth3I23tZX4b8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qPRnbDLSbFmR0wYVhhHW8","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ULfaqg3THzp8KWhw-PFtC","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w4msN_GcQbTcW3emW4P8r","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the NineSliceSprite

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NpFvQeOQtcy__zf1g4mNA","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iB4rtMSx_A5hnlIEUQV_R","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gSySTexpM9mlerf5cwMuU","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XjxX7aIGZVH77vMldUuF3","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j4J302-kzG78wfs8Vsvhb","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1HoAbMqR9p8MOlRc13Z6U","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jYv2YZFTFHd4PrwablMwM","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nDnapMs7R7vzkPWl-7g_h","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ovb0ByT1kPPQ8qgSRuBg0","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v0lIFuV24Ypay8w44cJ8t","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F_gTVYg1ycJCXpI-tRYFa","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FLaznoiyymxZTyH5MP1n-","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

            global offset for the position to draw from on the source image.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nd4jsPno8gRNNZzov7I8u","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TOy1dwDzDB6CS46ojwBPM","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OMP37DCAFkx9v3JiKUxKA","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4-2_uqTOZlSwU1yPyHg0O","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Ij2fEw7mxpDN3bVpgtpt","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vlvUizEH_d3bAnARTS3U_","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aw2fpjodCrZvKwZNrpUwP","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ei4QIr5LJrwHEyonLsOvE","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uYr7B7oc3oiCp1Aj_b_FS","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fGx5KJwhOfCLpZSVJbNWy","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6CoC006Vs2JkEAxpNsm6B","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ROihClNKrn1ThBD3YeBH","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the NineSliceSprite

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D5mK37xBxad0SXuaVkGJj","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            add an animation
            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

            cycling speed for animation in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            frame amount of frame added to the animation (delay between each frame).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eEKo4UtnpJev6qrCpo2K4","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q7lEe5G8lxVPWunUlplTW","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wv-qzqobzuHtOEPWP4K5L","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ViNrs-SH4bY-ZHlASzItW","name":"constructor","brief":"","examples":[{"caption":"","code":"this.panelSprite = new me.NineSliceSprite(0, 0, {\n image : game.texture,\n region : \"grey_panel\",\n width : this.width,\n height : this.height\n});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the sprite object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the sprite object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            Configuration parameters for the Sprite object

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.width","description":"

            the width of the Renderable over which the sprite needs to be stretched

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

            the height of the Renderable over which the sprite needs to be stretched

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insetx","optional":true,"description":"

            the width of a corner over which the sprite is unscaled (default is a quarter of the sprite width)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insety","optional":true,"description":"

            the height of a corner over which the sprite is unscaled (default is a quarter of the sprite height)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.image","description":"

            reference to spritesheet image, a texture atlas or to a texture atlas

            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

            name of this object

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

            region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

            Width of a single frame within the spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

            Height of a single frame within the spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

            a tint to be applied to this sprite

            ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

            flip the sprite on the horizontal axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

            flip the sprite on the vertical axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

            Anchor point to draw the frame at (defaults to the center of the frame).

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NKloYy26YyzaJ_NTgMazd","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cYf4fne7cLR-uhpylQG_b","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LcPt47O9jkB4ZyR9ou_Nt","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hjwvxyoVg3Rgo3PbsJaLH","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zKL5kRboZfLs6SGH21g2W","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            make the object flicker

            ","params":[{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

            Function to call when flickering ends

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QH_niMLpd1qupJIsle0Vh","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ttniwYoDWIp0KTFUJIV3r","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kcyqpOBGafo_t5RLmS8BR","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HLuHpWyOX6JsgJvQm6_E0","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"colCi4T8GKlgQM5llWXYY","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current animation frame index.

            ","params":[],"returns":[{"description":"

            current animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eZVEFc9lnEPyee4E1gAgl","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"IsWll026zgWss87aur7YR","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EmEzp6ScqTvj9TU4ouL-3","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RDdRMGVz98ezWcijHWrL3","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

            return true if the specified animation is the current one.

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tJAkoZnM_UtoIZaLIADsy","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vPGYAX8BNUzlvfrmoy2-7","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the flickering state of the object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fo3i9xo5x_Aka4fPpV2oq","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PkgGa8nqd1qe3cQr8e7vO","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-onmnd7cJbJG8ghhdCnib","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zdq4SA1xE3-avSAZE1JJS","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8A3s4zDrN54rCr763gh7J","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ybU2dRmrW9JZkAxS38TcS","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z5y_T-xe7fSK4cS1u9TxA","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"gB_un5YaUIOrH4nz9Nks4","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"hD_-HBUgr3NFGlSGs4fJG","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D-1CsEByklCJ4c7Ncx2Cc","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Ejaph_kz8W-DikvWs81F","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            reverse the given or current animation if none is specified

            ","params":[{"identifier":"name","optional":true,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ITOhl2Sdk_fEgZVjG2TZN","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wwb5C1NVxyOXR3TOVDKzt","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zq-GQUTEg_YUsHbQGiBJm","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xaI5imEm6iyjBuR_OjPLp","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

            force the current animation frame index.

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uns0w_9ot-eOuKOAK9eoH","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

            set the current animation\nthis will always change the animation & set the frame to zero

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

            animation id to switch to when complete, or callback

            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

            if false will reset the elapsed time counter since last frame

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zTU54JdNwiXVfo_e2J9II","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PduhEyYwnoZnaIYYHlxak","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

            change the current texture atlas region for this sprite

            ","params":[{"identifier":"region","optional":false,"description":"

            typically returned through me.Texture.getRegion()

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qKANv6_vcaemHLozPt2az","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DqMdyqs88cw2H1UpVpYea","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xdo1I2CAz17rVuryMGaT3","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JGCg1Wo57lSDCEOH-Ch2a","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bpphW1DXj8Gu6H0GUh6Tz","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WMECxS9G9roEPuvQIFeKs","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CIV3NfuzwMJF8Ep3m1iR8","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4XXim5MZq7Ox0h_VQTJp2","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hoDRVRAkDg3e-tsfmvUSV","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oXSlBVDkjWekt-I7JNdFA","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lKiHESehb4KG4vxwPC-Qm","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this srite (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kEp8xp42yYkJHwNighnvf","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            update function.
            \nautomatically called by the game manager {@link game}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Sprite is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FIaDlJFqgxGJPGsfs1Yxv","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"FSwPElVBtHJgmg76FC3Ge","name":"ObjectPool","brief":"","see":["{@link pool} the default global instance of ObjectPool"],"type":"ClassDoc","description":"

            Object pooling - a technique that might speed up your game if used properly.
            \nIf some of your classes will be instantia...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"vjA7ERknQ57uM0IwR5eyW","name":"exists","brief":"","scope":"instance","type":"MethodDoc","description":"

            Check if an object with the provided name is registered

            ","params":[{"identifier":"name","optional":false,"description":"

            of the registered object class

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            true if the classname is registered

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sz9keYOIjmPSSQzj-qzRq","name":"getInstanceCount","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the amount of object instance currently in the pool

            ","params":[],"returns":[{"description":"

            amount of object instance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yswGT6LF6qi__wfOShc5W","name":"poolable","brief":"","examples":[{"caption":"","code":"if (!me.pool.poolable(myCherryEntity)) {\n // object was not properly registered\n}"}],"scope":"instance","see":["register"],"type":"MethodDoc","description":"

            Check if an object is poolable\n(was properly registered with the recycling feature enable)

            ","params":[{"identifier":"obj","optional":false,"description":"

            object to be checked

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            true if the object is poolable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L_49iBkkpN3SDHGB37Fza","name":"pull","brief":"","examples":[{"caption":"","code":"me.pool.register(\"bullet\", BulletEntity, true);\nme.pool.register(\"enemy\", EnemyEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = me.pool.pull(\"bullet\", x, y, direction);\n// ...\n// params aren't a fixed number\n// when we need new enemy we can add more params, that the object construct requires:\nlet enemy = me.pool.pull(\"enemy\", x, y, direction, speed, power, life);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\nme.game.world.removeChild(enemy);\nme.game.world.removeChild(bullet);"}],"scope":"instance","type":"MethodDoc","description":"

            Pull a new instance of the requested object (if added into the object pool)

            ","params":[{"identifier":"name","optional":false,"description":"

            as used in {@link pool.register}

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"args","optional":true,"variadic":true,"description":"

            arguments to be passed when instantiating/reinitializing the object

            ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

            the instance of the requested object

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"hAwvzP-EaAtIPrNmzacUU","name":"purge","brief":"","scope":"instance","type":"MethodDoc","description":"

            purge the object pool from any inactive object
            \nObject pooling must be enabled for this function to work
            \nnote: thi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jZA7v2hE6F3wWRFpgMHlN","name":"push","brief":"","scope":"instance","type":"MethodDoc","description":"

            Push back an object instance into the object pool
            \nObject pooling for the object class must be enabled,\nand object mus...","params":[{"identifier":"obj","optional":false,"description":"

            instance to be recycled

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"throwOnError","optional":true,"default":"true","description":"

            throw an exception if the object cannot be recycled

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            true if the object was successfully recycled in the object pool

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"p_P4s7Ak8G5rkKH2P4uPa","name":"register","brief":"","examples":[{"caption":"","code":"// implement CherryEntity\nclass Cherry extends Sprite {\n onResetEvent() {\n // reset object mutable properties\n this.lifeBar = 100;\n }\n};\n// add our users defined entities in the object pool and enable object recycling\nme.pool.register(\"cherrysprite\", Cherry, true);"}],"scope":"instance","type":"MethodDoc","description":"

            register an object to the pool.
            \nPooling must be set to true if more than one such objects will be created.
            \n(Note...","params":[{"identifier":"className","optional":false,"description":"

            as defined in the Name field of the Object Properties (in Tiled)

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"classObj","optional":false,"description":"

            corresponding Class to be instantiated

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recycling","optional":true,"default":"false","description":"

            enables object recycling for the specified class

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"L-W2rgLmte6R4kTCq4Yq-","name":"ObservableVector2d","brief":"","type":"ClassDoc","description":"

            A Vector2d object that provide notification by executing the given callback when the vector is changed.

            ","params":[],"returns":[],"extends":["Vector2d"],"implements":[],"members":[{"id":"c4HE1N48LGA2VNlk-ayPx","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            x value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mHKo7WmDG1dWhCsDmU5u-","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            y value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kXnAoMFUiwGNrKgdR3L_X","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector values to absolute values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ovIqM9mIjLMlwjxBWDzzM","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add the passed vector to this vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e6KiegR_phMv-7Sn5eNMz","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle between this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zwhIScL90UnYRI29U-7Px","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

            Ceil the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector2d

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YL9-T5VQpMps9drB_Xzwz","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Ceil this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zsA0rnJ21jUz8jffZ1_O4","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clamp the vector value within the specified value range

            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            new me.ObservableVector2d

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eod4mFYC4xLGlkMOGLuld","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clamp this vector value within the specified value range

            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tHg-0TwN_7I27u0nc-04X","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a clone copy of this vector

            ","params":[],"returns":[{"description":"

            new me.ObservableVector2d

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UA6QiG5fZIktXO3PMAoAG","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

            x value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

            y value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            additional required parameters

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

            the callback to be executed when the vector is changed

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

            the value to use as this when calling onUpdate

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"DmMME9DgikEq_9YgVw946","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copy the x,y values of the passed vector to this one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"luUVabzpwu50ZHymtMt4o","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the cross product of this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            The cross product.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vhd_JfWNOmMeOqKjArn7e","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance between this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-C5A_fsi_RUSaG5r8TK7G","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

            Divide this vector values by the passed value

            ","params":[{"identifier":"n","optional":false,"description":"

            the value to divide the vector by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QLHW8k3BP7XStRSXsHNGA","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the dot product of this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            The dot product.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YPxHf4Nz4EkoGDH33kH9E","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the two vectors are the same

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"r3b3TSy56_8vbTVsZmVcA","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Floor the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector2d

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8UQXtNU2XRAgpo9_iQcyH","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Floor this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sDtwzqFZ14spH5I74uhYO","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the length (magnitude) of this vector

            ","params":[],"returns":[{"description":"

            the length of this vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"REFKHoO16vyVIh2eSj4ZO","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the square length of this vector

            ","params":[],"returns":[{"description":"

            The length^2 of this vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K9D0IeiqDzmHMtxrHKnot","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Linearly interpolate between this vector and the given one.

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

            distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xy6dGIl9LK25rR8nfvGCU","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector with the maximum value between this and the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_bLjHJ-RTCJsDgCzcDFsw","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector with the minimum value between this and the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"quXb08zbFgtcoWvq0WLxd","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

            interpolate the position of this vector towards the given one while nsure that the distance never exceeds the given step.

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

            the maximum step per iteration (Negative values will push the vector away from the target)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Zk38AbEZQWn0HizPoMBF","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Negate the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector2d

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ub1MRrKPmlOOlnq8AFHtp","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Negate this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3tIKCf1syAc4fl7lIB6CC","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

            normalize this vector (scale the vector so that its magnitude is 1)

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5c-dYZMXBaydDGKC4NLu1","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

            change this vector to be perpendicular to what it was before.
            \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ixr1mJHThHONZkST7Dv7R","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

            project this vector on to another vector.

            ","params":[{"identifier":"v","optional":false,"description":"

            The vector to project onto.

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5pe6LweRVEKhVSoKAeu3i","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

            Project this vector onto a vector of unit length.
            \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

            The unit vector to project onto.

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8f80DtSxIRMzBXFvQdzlQ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this vector (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SzZdr0dK-JYbgUtwobhkv","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            Multiply this vector values by the given scalar

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AQ-BxCB1_-K7dtXhriXEX","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Multiply this vector values by the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fb-BPOvltUDv-eMVQnuTm","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties to the given values

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F9DhnMeEIAVeM-JcRkJXG","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the callback to be executed when the vector is changed

            ","params":[{"identifier":"fn","optional":false,"description":"

            callback

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

            scope

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mrW6AHYMODjnZ8Bo3qhAG","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vector value without triggering the callback

            ","params":[{"identifier":"x","optional":false,"description":"

            x value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            y value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GjCvooehjYUqm45oPR5nb","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties using the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NU3ZTyfm-lUCwOLt116v4","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties to 0

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UtNJjAV-5H9n3UpU3lZA2","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

            Substract the passed vector to this vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ypSkgiIdQY9QhAtlqehc2","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            Convert this vector into 2d coordinate space

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dXdxAjTJHsItmgJA3LYVd","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            Convert this vector into isometric coordinate space

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Za7fUV9Tn3ODTyet2PFwk","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the object to a string representation

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"gyVuOa6oLJKUZhgkmnRXz","name":"toVector2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a me.Vector2d copy of this me.ObservableVector2d object

            ","params":[],"returns":[{"description":"

            new me.Vector2d

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"El331OPyDwxQEIpzb4mpY","name":"ObservableVector3d","brief":"","type":"ClassDoc","description":"

            A Vector3d object that provide notification by executing the given callback when the vector is changed.

            ","params":[],"returns":[],"extends":["Vector3d"],"implements":[],"members":[{"id":"Gery3k5_KmcG_x47exW0d","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            x value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RcSK5tQcge2RnR7btbCqf","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            y value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ztUyvfwDWscYWz_IC1aFT","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            z value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iKF1ozf7m0m0CWs2HE7Rt","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector values to absolute values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uRCi_6B9SipChXLrf20Kd","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add the passed vector to this vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zgBT5q8LjJ6RC57LFh9Qh","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle between this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WBHCGnHM3mcHIpuZN-q0P","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

            Ceil the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector3d

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HXqkCxJaKDpMrv4ta35Mo","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Ceil this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2-kidx_nR4FdMwRRLLq48","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clamp the vector value within the specified value range

            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            new me.ObservableVector3d

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bNFL-ldcZkAYfkRBis9Vu","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clamp this vector value within the specified value range

            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pqkzQgF9VR11Mj6OVE6Ch","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a clone copy of this vector

            ","params":[],"returns":[{"description":"

            new me.ObservableVector3d

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qTrZjhvE7Py7EiwZ6RELD","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

            x value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

            y value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"default":"0","description":"

            z value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            additional required parameters

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

            the callback to be executed when the vector is changed

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

            the value to use as this when calling onUpdate

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"d3M4vgKZK2uOgYH2ML0QI","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            Copy the components of the given vector into this one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9FvfwlKbl_hF00SKNbUox","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

            calculate the cross product of this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tEKK0cI5gvlNnL2CbXiAX","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance between this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i4ONKl2g-4ftuEca21JU7","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

            Divide this vector values by the passed value

            ","params":[{"identifier":"n","optional":false,"description":"

            the value to divide the vector by

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hfFuhbR3x8aRcIraj9uvf","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the dot product of this vector and the passed one

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            The dot product.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-RnKm6AjpFPgZyzF9BgVq","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the two vectors are the same

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"T8iCDoralMWwjUcCU5uwG","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Floor the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector3d

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3cds3XlZKlbDVBpsJM02z","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Floor this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T7wqWjXeWp3cxeLSVhFbm","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the length (magnitude) of this vector

            ","params":[],"returns":[{"description":"

            the length of this vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l1rWRK8kBWarQimuaJl07","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the square length of this vector

            ","params":[],"returns":[{"description":"

            The length^2 of this vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NqROnHigjKvMj3FXM7ijU","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Linearly interpolate between this vector and the given one.

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

            distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tHVbWgltp1zEnxt70zmSI","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector with the maximum value between this and the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_BobZXjLyhgNsmKG7Qrzr","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Update this vector with the minimum value between this and the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FwC2WHKnlIKGxr05VPPOw","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

            interpolate the position of this vector on the x and y axis towards the given one while ensure that the distance never exc...","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"step","optional":false,"description":"

            the maximum step per iteration (Negative values will push the vector away from the target)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VvyzyDMn6nsbnx7Tmfvg3","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Negate the vector values

            ","params":[],"returns":[{"description":"

            new me.ObservableVector3d

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N64Iqe7tc-uAZyqus6VRo","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

            Negate this vector values

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EHuYMgjw4WCX_n1olTS4d","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

            normalize this vector (scale the vector so that its magnitude is 1)

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mUFiiW6pANfr2IA6hfdLT","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

            change this vector to be perpendicular to what it was before.
            \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DExK_fc9vlD2KTwc2-xMp","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

            project this vector on to another vector.

            ","params":[{"identifier":"v","optional":false,"description":"

            The vector to project onto.

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KFa3bkkxKNy7_mBM-2tU9","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

            Project this vector onto a vector of unit length.
            \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

            The unit vector to project onto.

            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bCNITWrPK7lorjZnJ3kdX","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this vector (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around (on the same z axis)

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"POhntnQ9-lr_zmmF4rcdL","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            Multiply this vector values by the given scalar

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vuWH_MaxxECW7WODJjSvG","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Multiply this vector values by the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nr2T_mxSE3U1u2SdgWbrt","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties to the given values

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cg3a8GOcQE58jIGQtoGwo","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the callback to be executed when the vector is changed

            ","params":[{"identifier":"fn","optional":false,"description":"

            callback

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

            scope

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JKG9MT-NmpP92QIVOZ_j9","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vector value without triggering the callback

            ","params":[{"identifier":"x","optional":false,"description":"

            x value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            y value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

            z value of the vector

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EwNRXlVLMGl-XYEPFoJD9","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties using the passed vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VUTPS5gxWuq15oTUqFxvp","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Vector x and y properties to 0

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eF4eTSw_AsHH-Fk2vYxG-","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

            Substract the passed vector to this vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"59CCGVlS8ymC3kW3RMl4o","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            Convert this vector into 2d coordinate space

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZoSmXYTwea5ovP0Wu2NUG","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            Convert this vector into isometric coordinate space

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zURhbgb_37E7CK78Uhb27","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the object to a string representation

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"G3Tb0Xavahxx2dVORXTW9","name":"toVector3d","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a me.Vector3d copy of this me.ObservableVector3d object

            ","params":[],"returns":[{"description":"

            new me.Vector3d

            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"SW_l0owqXO4cwxm2RtIOb","name":"Particle","brief":"","type":"ClassDoc","description":"

            Single Particle Object.

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"0nwNANdCRs-24bN1zW-1E","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bf5Ua0djAdxiMHvUXE0O5","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrBaX9m-UG6UdEIcsJWAh","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iFRPAyN3gEze0PHrMAYK4","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8a19q3c2jd9ikivWU9Cqg","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6rUk4_eKJYgX0SIx9Rrz8","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3kMRbKoArlYFH-RVNEFkK","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bnjAl4qH5ndJlJCHpyXb3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5n6bc40f_p1Rqfcl4cEQ6","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7st8U81P2FZVZ7rgRZOyo","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hgvYwHl9allrvxb8f9opY","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FWtZR6Jb-SiQfrrchCRiQ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9tBAjI95El_tQF-ZF1sjR","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0ej29dfbc-ppsXF7g566l","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zAVdk4stg9Ji6wg_6RV97","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fqbqlUdRhANnSCxQmeQ-i","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2oEbiQ95FBiToYdb87Kes","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WWTO0MrY1vQrrEzQbpWQx","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P7IiHeboGPySvHsP63VED","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SIxsvcelLsMNkoM9gn7oE","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_84Ex-1BJVFqCuq_HryFT","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kDX37g-ZLPCSRWfogGi0b","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0462OgaA6bI3hXnE_-gWq","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DMSfHL2gVNWwUX5S92Mcc","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4N4N-5TqTTuIuq1OiC9D5","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-gOf3ere_JxNTUY2csJvs","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukfTJXYwKUzgiSZ6WtYFV","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZoHFg239hmDJKYxF11_3Y","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q6UtCczTCfTd4wUSYy7VF","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V1qDywj3KIYMgidH4j0JU","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"osms9ZjZ9zg_AHkzIH1-S","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tDf2Cf4C9Hdw73Yxc3A0V","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LN7uvjcjt_oIfgz_o007P","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r6FkOfJFcJlTkLWNkwbJ5","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3IhBqYlpRIBut9SsM-YlL","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RYF0-iZ3Mzu6pbXMeFDCD","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EtaUL3b7VgPcNektrtZ6p","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7zrr_oabH_pMvnYuMbCUj","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-xvy3sLFqyQFOenwGM21i","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DukVUuunkPxq25c3NdBNL","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"emitter","optional":false,"description":"

            the particle emitter

            ","dataType":{"tokens":[{"value":"ParticleEmitter","kind":"canonical"},{"value":"ParticleEmitter","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xmwZpIagfXoQZSSbITvKU","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"s34QhQixwxCjTk-JlM9Zp","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oPPxL0rpo1-Zrg3HO0EMK","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v42pxYThqMMwrJWuxYFua","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VRyM-woxiro1g48JBPSXE","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hu8L5-9aUcC9NSPKicVHv","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IYToRwVD4gemdAG5qvwAn","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xIN21MsYW-aIpmmp-tsSr","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sATJ0bjogBcEgkkc-dhaC","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jchlTyzhDK3T0T3XTrsl7","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"q-LDZvZbee2t8Or4l91b0","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZrxkHQGOX7o2b1GnpEr9g","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gAD_ED50HlFL3YhLmnlaK","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EQKztBdQIRwpzQsy4B0t2","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xlNoMHamBEqIc1myDhxxB","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wlQQh_FlUGvy3mazb_N8c","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ik8ymz_9V8eMFreHP1OL6","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"i-okXiQuIf9vsnTmqe0Nv","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"b3uBvnIO0o_wCJmwekiYy","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"mdcu1_QDfljjfAUWX9RcA","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vi_anCcZSxyrPTvW56mdf","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T2MJNFrPaKRSnwTGxqaR0","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"slD6asvikOpzsMzBOL6UA","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4b07LmeLoBJeUVOkyffAu","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VvMywqzGbdsjB2_Cip9rT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_x7fvIdrtwNjVC6KEt2oc","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8eZoEUS2PguPiKXyBRMbs","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z6kW9khZ4Nbjy-TdnwH2o","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3xC-GT77-vRFDCMvLBGlu","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mYJ09SZOizByxSnOefGq6","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VBpBN8z1GDsv6UbpSZqXW","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H5JzrkGPdm9xVlp_BGrP2","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D2shJlY5s2g_AGKFEtlmd","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8mBuySAJs9_PQdzHMBY6q","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jliyim-8oQJQwd88MXUKP","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"D6uP_si80JNpPslatOOVj","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L25r0wtb0NUPX57qPNh9a","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"tIo2rgN5QBVgZYueJhRpK","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

            Particle Emitter Object.

            ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"6CX5LP5vARvz73YibMAku","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ObmTiHMSWPze79n3yOvTR","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yhq2bEYgAgFVUTQRfeOT7","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rKAJA8EnmtAMO7KWqKfuQ","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hvsAorNEmxPc3qvtk2Ghd","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            Specify if the children z index should automatically be managed by the parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xMHoR4bSM4jKwQq5zsW0X","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            Specify if the children list should be automatically sorted when adding a new child

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"75Gh8_POBmnwcU7RU0jBR","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1XzilwgabXMBsXWibMiOz","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a background color for this container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FFtC6AxWjBCDpECh4sHfn","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RGZ2MLPZmxIyid_hHLczH","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AYGFnBjsHD1ba301j9RPH","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Nqlrb0YxBVy4cluu45YB","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rc16gCwxHjnvpD8vdDt0K","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8-RQ6UkjdbYREzlbH3WyT","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Specify if the container draw operation should clip his children to its own bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k0CMKPO_T0KApsCqUZ6Zx","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"584FRA_zXbAPt_n6nwMvk","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gTIlHjrrNcCympOSR5s4-","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U4suCJlBtfjeIevJLsSat","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ju6L5jGhPm2ojvGJIvgdV","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XxyZ-XNKzfymsWKs-tZpG","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FMuIYSu0orm_J1rbQvv1B","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l5rna4VX0UjrBz5WgaK-a","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vHmCcR4j1pWwIKqcYIUuA","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tk1tC_5MaJ3WWX7x1AXcX","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZqLr7VhxO6jbyq2EgGJKK","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rd9a-efEgYtYpLyV1A9SD","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7XrkkWaQUIQy-XGEdE8_k","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WgmMwm_uhEP2m2YSC0uC-","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WbxV4Epve_QGq5sTkjbrh","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wG4zQpkwd045bXDtUP0Y6","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nf9yVWTH_bLdQ-h5GnFp_","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eyTQyasUgUUkKebbjlwvL","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ICEyKByezNzcbuj72MZ-m","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Ty4qusdzGfEPUftgkuMn","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wszNdi9C4H0rJhxJJwZaF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5fv-QPRxJXUfvDVLkAOVC","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            whether the container is the root of the scene

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qPjtrK8S_XxXppnAavTNU","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the current (active) emitter settings

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f6q0FqN2USMibEFsZsINr","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k2DNsb1M0-qZX-Cb9eBWn","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

            The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nh-N3rD0pFocFOBiw-V71","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JmWc2ZPYRx-DXGZv9_S1n","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sUKXM7kPPC8kGVkyWqAGj","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K1fZjleQgIUBI4hEGEthE","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zQPavsuGjcifhBtS4-whB","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f1_Kh_fnyd2SbZqrtYonl","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add a child to the container
            \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

            forces the z index of the child to the specified value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the added child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AwCQ5OR_nQiwcb0QRCaD7","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add a child to the container at the specified index
            \n(the list won't be sorted after insertion)

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

            The index at which to insert the child

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the added child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UN1gbULAnH6J9KuGjDmUB","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DI-dra2FQ9KAJpgH78F4b","name":"burstParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

            Launch all particles from emitter and stop (e.g. for explosion)

            ","params":[{"identifier":"total","optional":true,"description":"

            number of particles to launch

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UPPAkSotGFFdo8pi6KRTX","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qLh3PSY2uvHo4_6iPKx8J","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MCQYH-S24dqpNQiDZggzb","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a particle emitter at position 100, 100\n let emitter = new ParticleEmitter(100, 100, {\n width: 16,\n height : 16,\n tint: \"#f00\",\n totalParticles: 32,\n angle: 0,\n angleVariation: 6.283185307179586,\n maxLife: 5,\n speed: 3\n });\n\n // Add the emitter to the game world\n me.game.world.addChild(emitter);\n\n // Launch all particles one time and stop, like a explosion\n emitter.burstParticles();\n\n // Launch constantly the particles, like a fountain\n emitter.streamParticles();\n\n // At the end, remove emitter from the game world\n // call this in onDestroyEvent function\n me.game.world.removeChild(emitter);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            x position of the particle emitter

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            y position of the particle emitter

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":true,"default":"ParticleEmitterSettings","description":"

            the settings for the particle emitter.

            ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"THA_0xPPx2XUq56u_EJAL","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xh2TFKGZrsZ2UN272INiQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ric_H-90brl904DotwLGY","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WvAfDlp5hIffCONXzhdco","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3Rp1H_Ylgu2ZoZURTw25h","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"04Z2VI7q2nw3tXhr1e2bR","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aHOgH0qB405agItG0UxHm","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

            The forEach() method executes a provided function once per child element.
            \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

            fnction to execute on each element

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

            value to use as this(i.e reference Object) when executing callback.

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"grdBOkl8ATT48fhQC-FsT","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TqVZ4fIbe_G5GMnC9VkWK","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RhDbFsYBp828QtxyRTW3N","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the Child at the specified index

            ","params":[{"identifier":"index","optional":false,"description":"

            The index of the child

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the child at the specified index

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VMZRTSoIGI7uoS5jL5F2A","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the child corresponding to the specified GUID
            \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

            child GUID

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            corresponding child or null

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BXJfN2zfnx9CeB1aebBH7","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the list of childs with the specified name
            \nas defined in Tiled (Name field of the Object Properties)
            \nnote ...","params":[{"identifier":"name","optional":false,"description":"

            child name

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            Array of children

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"qaqKBW2piigsUOewzo2gc","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

            return the child corresponding to the given property and value.
            \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

            Property name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

            Value of the property

            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

            Array of childs

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"aB-bGAnsMHNHHlwbA1yd_","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the list of childs with the specified class type

            ","params":[{"identifier":"classType","optional":false,"description":"

            Class type

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Array of children

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"DA8HxnIGbuvpK-KRnUKZL","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the index of the given Child

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

            index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R2Psr0EajwUhCQYOhKPTe","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

            return all child in this container

            ","params":[],"returns":[{"description":"

            an array of renderable object

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"PRWPPj5F-eGfDth0h1KLk","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"8j6fcBdKmeuD4EfG7dAjO","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the next child within the container or undefined if none

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

            child

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-geKrt3Tecx7BpUrgAW6J","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l4Gj8pajsTIG5DLGD440C","name":"getRandomPointX","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a random point on the x axis within the bounds of this emitter

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oGqHx35xpccBhgMJURFKl","name":"getRandomPointY","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a random point on the y axis within the bounds this emitter

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Oh_RPMA5t51leU9Uk860v","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the instance of the root container (i.e. the current application World container).

            ","params":[],"returns":[{"description":"

            root container

            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5tczVdWMFxgIuW0b-IezH","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if contains the specified Child

            ","params":[{"identifier":"child","optional":false,"description":"

            The child object

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0P6YruSzcQoVOoSwFx7dV","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

            Checks if this container is root or if it's attached to the root container.

            ","params":[],"returns":[{"description":"

            true if this container is root or if it's attached to the root container

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"25Kqsf_pvbvjyT35nq4In","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"El8-PJkePIXQls1YuyArB","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1dtxflgjN9dZNrNcE6wv4","name":"isRunning","brief":"","scope":"instance","type":"MethodDoc","description":"

            Emitter is of type stream and is launching particles

            ","params":[],"returns":[{"description":"

            Emitter is Stream and is launching particles

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0AnzITNGrXHMRDBUDucJm","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iSQUt3XvIMoDXUk70b4pz","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the child in the group one step backward (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"EjvUrKBK4ywzV0l0NYBef","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the specified child the bottom (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"OISARwAfgP5Co_POLNOBt","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the specified child to the top(z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"WbWOlSN49_SPgtdjzCsvn","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

            Move the child in the group one step forward (z depth).

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be moved

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"eVYhs7uGjML6Z3b0X-_97","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

            a callback to be extended, triggered after a child has been added or removed

            ","params":[{"identifier":"index","optional":false,"description":"

            added or removed child index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"459BFMagyjlHjto71_shx","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2hVoTsG3hSsfKLJYp9AGf","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pzc-iVZIcrOr79Ni2iWOM","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wuNzl3Iyui8Cex6ZVDc7v","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"hEreNJ9qGVA49RrhhzfZy","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"9GE9mRR7PQgwDCC_DRc6M","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pWxF-7sGd5gKBs_ngc1fv","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

            Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

            Child to be removed

            ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

            true to prevent calling child.destroy()

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"pj09XmQJhN-swIzC5p57P","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

            Removes (and optionally destroys) a child from the container.
            \n(removal is immediate and unconditional)
            \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

            Child to be removed

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

            True to prevent calling child.destroy()

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"iT7yVcr1-1KgLzULtZqie","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

            Reset the emitter with particle emitter settings.

            ","params":[{"identifier":"settings","optional":false,"description":"

            [optional] object with emitter settings. See {@link ParticleEmitterSettings}

            ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"o5Qmsz9PhsKvEzWqyV4pQ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1WiZ646G1OZUqiPnM0zW6","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lk0JZHS2sKWai79N6ea6-","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"neVA32Do6mnjia5_m5enI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-hp-wjBWLgKJl9XVzjLCd","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

            Automatically set the specified property of all childs to the given value

            ","params":[{"identifier":"prop","optional":false,"description":"

            property name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

            property value

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

            recursively apply the value to child containers if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"BLI6V2QSsos8rv60QB87I","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"26EVx2QDXOVOQyXEJGq1h","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Krjs0BnSV95CgVjx-T_7_","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bm9KAnLMUdZIwavX2Jme-","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"x_x0rFevj8PMCavBv8Smc","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

            Manually trigger the sort of all the childs in the container

            ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

            recursively sort all containers if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CwvmV9bm8zmOy_QliJ9lB","name":"stopStream","brief":"

            Stop the emitter from generating new particles (used only if emitter is Stream)

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6PoLYCwtxwWA92_56Ldtx","name":"streamParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

            Launch particles from emitter constantly (e.g. for stream)

            ","params":[{"identifier":"duration","optional":true,"description":"

            time that the emitter releases particles in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OzziYTR02svBaIK0w9FH_","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

            Swaps the position (z-index) of 2 children

            ","params":[{"identifier":"child","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

            Child to be added

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"FUAQD20WI4Vy912yJEA_e","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"78DGuIMwZTIMsNQXFwR-z","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZB3qBMZa6pQMnD2bI8196","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rkz8tPzX9VuUgCn1KIfI3","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GR3SCDT15WxBh5-IqeKg4","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SmMxwIt1Su3LZ1UFNEImF","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BGIEDKpXfkfM38xm4xRbc","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this container.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this container bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jr9lRarP7yxjlUbmXNqTS","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this renderable (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h8JXtDatVfVQclYsWHPUg","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            container update function.
            \nautomatically called by the application update loop {@link Application}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Container is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oQ8uD2s9_d0Rh3Xo0xbc6","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"BT3kxUSYBYA1ZL_LLodOz","name":"Path2D","brief":"","type":"ClassDoc","description":"

            a simplified path2d implementation, supporting only one path

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1xkOo8s4Di8I2pPftlPQ7","name":"arcResolution","brief":"","defaultValue":"5","scope":"instance","type":"PropertyDoc","description":"

            space between interpolated points for quadratic and bezier curve approx. in pixels.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rFFSGRFjeSFdzX8ZZ_9IM","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the points defining the current path

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"niNpP9v8uHmK9sAKWLsVk","name":"arc","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds an arc to the current path which is centered at (x, y) position with the given radius,\nstarting at startAngle and end...","params":[{"identifier":"x","optional":false,"description":"

            the horizontal coordinate of the arc's center.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the vertical coordinate of the arc's center.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

            the arc's radius. Must be positive.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

            the angle at which the arc starts in radians, measured from the positive x-axis.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

            the angle at which the arc ends in radians, measured from the positive x-axis.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

            an optional boolean value. If true, draws the arc counter-clockwise between the start and end angles.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"APXL2PyTQf7bi9qYSk1yc","name":"arcTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight li...","params":[{"identifier":"x1","optional":false,"description":"

            the x-axis coordinate of the first control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

            the y-axis coordinate of the first control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x2","optional":false,"description":"

            the x-axis coordinate of the second control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y2","optional":false,"description":"

            the y-axis coordinate of the second control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

            the arc's radius. Must be positive.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eur47i0w2k3aPOIplnCuc","name":"beginPath","brief":"

            begin a new path

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hga-nWa3IuneskmNt-Hi1","name":"bezierCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            Adds a cubic Bézier curve to the path.

            ","params":[{"identifier":"cp1X","optional":false,"description":"

            The x-coordinate of the first control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp1Y","optional":false,"description":"

            The y-coordinate of the first control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2X","optional":false,"description":"

            The x-coordinate of the second control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2Y","optional":false,"description":"

            The y-coordinate of the second control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

            The x-coordinate of the end point of the curve.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y-coordinate of the end point of the curve.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UddCw5hDCoXDR-buXidzx","name":"closePath","brief":"","scope":"instance","type":"MethodDoc","description":"

            causes the point of the pen to move back to the start of the current path.\nIt tries to draw a straight line from the curre...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sSx-fCN936mvwUIEa19qI","name":"ellipse","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusX and radiusY\nstarting at sta...","params":[{"identifier":"x","optional":false,"description":"

            the x-axis (horizontal) coordinate of the ellipse's center.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y-axis (vertical) coordinate of the ellipse's center.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

            the ellipse's major-axis radius. Must be non-negative.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":false,"description":"

            the ellipse's minor-axis radius. Must be non-negative.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rotation","optional":false,"description":"

            the rotation of the ellipse, expressed in radians.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

            the angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

            the angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

            an optional boolean value which, if true, draws the ellipse counterclockwise (anticlockwise).

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"uGlbdsnYpj5PMj-31YtvV","name":"lineTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            connects the last point in the current path to the (x, y) coordinates with a straight line.

            ","params":[{"identifier":"x","optional":false,"description":"

            the x-axis coordinate of the line's end point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y-axis coordinate of the line's end point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KpRpDPiRRoclg6HcsN4cz","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            moves the starting point of the current path to the (x, y) coordinates.

            ","params":[{"identifier":"x","optional":false,"description":"

            the x-axis (horizontal) coordinate of the point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y-axis (vertical) coordinate of the point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"swh2tZdYwhfgfSI29b6FK","name":"parseSVGPath","brief":"","scope":"instance","type":"MethodDoc","description":"

            Parses an SVG path string and adds the points to the current path.

            ","params":[{"identifier":"svgPath","optional":false,"description":"

            The SVG path string to parse.

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"h2Hn6G3Feb-q8TX08gGdS","name":"quadraticCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            Adds a quadratic Bézier curve to the path.

            ","params":[{"identifier":"cpX","optional":false,"description":"

            The x-coordinate of the control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cpY","optional":false,"description":"

            The y-coordinate of the control point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

            The x-coordinate of the end point of the curve.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y-coordinate of the end point of the curve.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FVk6G5zzEtuKQfLFZe9AG","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

            creates a path for a rectangle at position (x, y) with a size that is determined by width and height.

            ","params":[{"identifier":"x","optional":false,"description":"

            the x-axis coordinate of the rectangle's starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y-axis coordinate of the rectangle's starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            the rectangle's width. Positive values are to the right, and negative to the left.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the rectangle's height. Positive values are down, and negative are up.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"osjyttZfh_IoaCWoDrZ8D","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds an rounded rectangle to the current path.

            ","params":[{"identifier":"x","optional":false,"description":"

            the x-axis coordinate of the rectangle's starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y-axis coordinate of the rectangle's starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            the rectangle's width. Positive values are to the right, and negative to the left.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the rectangle's height. Positive values are down, and negative are up.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

            the arc's radius to draw the borders. Must be positive.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OrkwSdEdR0LuMA9mlNUNj","name":"triangulatePath","brief":"","scope":"instance","type":"MethodDoc","description":"

            triangulate the shape defined by this path into an array of triangles

            ","params":[],"returns":[{"description":"

            an array of vertices representing the triangulated path or shape

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"iq9UgtqeUvqZLhtxpiGrU","name":"Point","brief":"","type":"ClassDoc","description":"

            represents a point in a 2d space

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"svEuWDUvLIpA8gRGH0gxU","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xQnD2Mq16v6JPbXZYHB9a","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            the position of the point on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AszG8ALKBmXWs7ha40eQu","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            the position of the point on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-9F1NSJzfIQJNKzhRo-z4","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this Point

            ","params":[],"returns":[{"description":"

            new Point

            ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gKHNIj8bua_VZqh95NwwL","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if this point is equal to the given point

            ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Point | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TLu_RNHQnyXFLf7MZgY_7","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the Point x and y properties to the given values

            ","params":[{"identifier":"x","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"hdr9b47jdIpyEiueCPmv1","name":"Pointer","brief":"","type":"ClassDoc","description":"

            a pointer object, representing a single finger on a touch enabled device.

            ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"e7vD77q1X51vo6bP_cVHC","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wmxa_zYSLmNZ6dXy5J7ci","name":"button","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button"],"type":"PropertyDoc","description":"

            the button property indicates which button was pressed on the mouse to trigger the event.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N-TXdzJh7PngjT6GxszNu","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the center position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZwlWe1gXmbDROrRtMDdkR","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the x axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"efmVGpRoWQh4dC-3XdL_h","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the y axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vymyq6eOwq4owLefSb7kt","name":"clientX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX"],"type":"PropertyDoc","description":"

            the horizontal coordinate within the application's client area at which the event occurred

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D73nlttX75-5M2OAo9ZZV","name":"clientY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY"],"type":"PropertyDoc","description":"

            the vertical coordinate within the application's client area at which the event occurred

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q-4h2YYcCFi1uuOll1iKh","name":"deltaMode","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode"],"type":"PropertyDoc","description":"

            an unsigned long representing the unit of the delta values scroll amount

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sTxkyQnNnurV98q8bGplo","name":"deltaX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX"],"type":"PropertyDoc","description":"

            a double representing the horizontal scroll amount in the Wheel Event deltaMode unit.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ao8noNqP2B8PsULS4RN5b","name":"deltaY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY"],"type":"PropertyDoc","description":"

            a double representing the vertical scroll amount in the Wheel Event deltaMode unit.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C_MnaqG-TeGXk9bozRcNr","name":"deltaZ","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ"],"type":"PropertyDoc","description":"

            a double representing the scroll amount in the z-axis, in the Wheel Event deltaMode unit.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ttBsKEPZ86rakVloSUqGZ","name":"event","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent","https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent","https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent"],"type":"PropertyDoc","description":"

            the originating Event Object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CmD4vYb-t8GMCW0JCM53u","name":"gameLocalX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event X coordinate relative to the holding container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SX-3bTcLUdoxAaoJcG6Aq","name":"gameLocalY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event Y coordinate relative to the holding container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8YbrOx9Te-IrBcUnfqVQd","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event X coordinate relative to the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JVGfytpZvoFHmsZFyM4fJ","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event Y coordinate relative to the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I3lYqByu-HSmKi5SxQ2v9","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event X coordinate relative to the map

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kI0NgudZgPhHs7RyTsAuH","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event Y coordinate relative to the map

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p9UgDTmlJXRRO2m6N8IhR","name":"gameX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event normalized X coordinate within the game canvas itself
            \n

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ns1HwzOqtUxGWquDQN9aX","name":"gameY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Event normalized Y coordinate within the game canvas itself
            \n

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LA2u-N1MFySShOsoYw6RG","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q4l7MqymCJSmpZuLtWUiE","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if not originally a pointer event

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kiFjyKcumcWjGfg2qzzL5","name":"isPrimary","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary"],"type":"PropertyDoc","description":"

            indicates whether or not the pointer device that created the event is the primary pointer.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yjGjgvtcMDO5lMZoqINBF","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xwOPwVtU2Wfgcl9nuQq_7","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            constant for left button

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p5drFvDErviMmktJTZeFB","name":"locked","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if the pointer is currently locked

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pjt5X-5y8pPOh9-ucRMjn","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

            constant for middle button

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0jzuKMMLDgZ3gLTBuTCyW","name":"movementX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX"],"type":"PropertyDoc","description":"

            the difference in the X coordinate of the pointer since the previous move event

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CjiPkE2SL0_Fuf808nA4v","name":"movementY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY"],"type":"PropertyDoc","description":"

            the difference in the Y coordinate of the pointer since the previous move event

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5IbeIoT_aVIP_shzL183X","name":"pageX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX"],"type":"PropertyDoc","description":"

            the horizontal coordinate at which the event occurred, relative to the left edge of the entire document.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uYbA9yAkCmao6leR6MDGh","name":"pageY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY"],"type":"PropertyDoc","description":"

            the vertical coordinate at which the event occurred, relative to the left edge of the entire document.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C8PVmTyw1FWVBqyE2J4Mo","name":"pointerId","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId"],"type":"PropertyDoc","description":"

            The unique identifier of the contact for a touch, mouse or pen

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H0J36OE78aYHZOQGt4pLd","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rg1DA4pp3nmZoNOfsD00N","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

            constant for right button

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"woERcAIM02J-XH38Jux01","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iGv0duHTA_Zsn_C6-ToS_","name":"type","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/Event/type"],"type":"PropertyDoc","description":"

            a string containing the event's type.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tHAQKPamDOsYEsKBcv5Ly","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yzGl_PdNhKl_5lTs11qeI","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PdFVPoDc-79Ip_MUAO3SE","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y position of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2-_RbAhOmZ48aH2Inkej6","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given vertices to the bounds definition.

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"YyJlEDq0lvhlsGOGzOzw2","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given bounds to the bounds definition.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"sZBYHTcRddBibGmoE_DY-","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given quad coordinates to this bound definition, multiplied by the given matrix

            ","params":[{"identifier":"x0","optional":false,"description":"

            left X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

            top Y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

            right X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

            bottom y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given frame coordinates

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SmNRcn_oeWjUQC6o7RvUe","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given point to the bounds definition.

            ","params":[{"identifier":"point","optional":false,"description":"

            the vector or point to be added to the bounds

            ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given point (if the given point is a Vector2d)

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5UMrmeR7b12UnUhks54AE","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the bounds position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"34u-62_Q8VBZmnevxTa_3","name":"clear","brief":"

            reset the bound

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jhMT2AE3msVfAMNA30NlR","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this bounds

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N9lDuzSUVLcYYndl5FPJ1","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the bounds contains the given point.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the bounds contain the point, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TWW5LAf8QlMZOI4zuN09x","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this bounds are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3Mg91WopvWm60d05pBaq-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the two bounds intersect.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            True if the bounds overlap, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"h6Yk_yJAe7Wl7rtupPiaX","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

            sets the bounds to the given min and max value

            ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fIEE4ilEBMvu28MLDXZe8","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the bounds to the given x, y position.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4UHIdRVpZHRzeczPqCXrV","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this bounds.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this bounds.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BYgHJfsy81TmGpIUZI-Of","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Translates the bounds by the given point

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OsOAiztmO9YkpVJfi3YxI","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            Updates bounds using the given vertices

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"0VORQu5jj9PXmCQ4QSFlz","name":"set","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            initialize the Pointer object using the given Event Object

            ","params":[{"identifier":"event","optional":false,"description":"

            the original Event object

            ","dataType":{"tokens":[{"value":"Event","kind":"canonical"},{"value":"Event","kind":"canonical"}],"template":"%1"}},{"identifier":"pageX","optional":true,"default":"0","description":"

            the horizontal coordinate at which the event occurred, relative to the left edge of the entire document

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pageY","optional":true,"default":"0","description":"

            the vertical coordinate at which the event occurred, relative to the left edge of the entire document

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientX","optional":true,"default":"0","description":"

            the horizontal coordinate within the application's client area at which the event occurred

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientY","optional":true,"default":"0","description":"

            the vertical coordinate within the application's client area at which the event occurred

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pointerId","optional":true,"default":"1","description":"

            the Pointer, Touch or Mouse event Id (1)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"0H_j7Rq-c5jKQhk5mkJah","name":"Polygon","brief":"","type":"ClassDoc","description":"

            a polygon Object.
            \nPlease do note that melonJS implements a simple Axis-Aligned Boxes collision algorithm, which requir...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Em0PQuxKSVSEpLAFnri80","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K8ueu92FuivYVxCuv0_IW","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

            origin point of the Polygon

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cCjk5sxBjtNU2S7I4hNsU","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m8C6QKlbCn27a8Utkhwqh","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this Polygon

            ","params":[],"returns":[{"description":"

            new Polygon

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SSgA1uu-LAE5KhXEoaw58","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

            origin point of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

            origin point of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

            array of vector defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"Jo7ko1mvuBjSBRB10WsIQ","name":"contains","brief":"","examples":[{"caption":"","code":"if (polygon.contains(10, 10)) {\n // do something\n}\n// or\nif (polygon.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the polygon contains the given point.
            \n(Note: it is highly recommended to first do a hit test on the c...","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the polygon contain the point, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ynGMyejLdDwbeUKk0ftzD","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5ayl3A7jc_preSZb4tk1A","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"H-IWKAAUndnvq2IstKeca","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Nwh1VaVRMaINwow5hXH6_","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RiyxdyEHWj9L5SW_V5311","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UGLQAdDXTRa59rLghahSF","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given scalar.

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BkFKz3C6GqEjYAKmUGgWw","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gLFyqPk2r4-qrLl0fQ25s","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the Polygon

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Polygon

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lg8vJSiwH3hx11NETCDGE","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FVItw4f96q0_Dhar8TOn9","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_65k6622Og8EpC2mBHPJh","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NtQTDGzQev0m5-YZWaxGG","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D72T27b5Q_9GO8K3lsrIi","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the given transformation matrix to this Polygon

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qbMjc-TXN6pOG6QyUUaZv","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YBYFeoFeMC8jM27NUwYPN","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"nWfv4UUJJaPq6Tc-EbKId","name":"PrimitiveCompositor","type":"ClassDoc","description":"

            A WebGL Compositor object. This class handles all of the WebGL state
            \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"XGWHivHihoM87OcSVnSXG","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            an array of vertex attribute properties

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cJORTSD7IfzAFCbLZXxDN","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the shader currently used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sOo-zzEISVwJftxh8mHlr","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the default shader created by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lHwcfyc6CQcc_2ECi1WHm","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"31gpByR3YJuBsMKAWBCUY","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8BXKGKSCy4SM-kLUVZ0he","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            the vertex data buffer used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y0zL2XsZrliaSkKS9mJE6","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hsweblFXKu7sSnTO7Hv0K","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

            add vertex attribute property definition to the compositor

            ","params":[{"identifier":"name","optional":false,"description":"

            name of the attribute in the vertex shader

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

            number of components per vertex attribute. Must be 1, 2, 3, or 4.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

            data type of each component in the array

            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

            whether integer data values should be normalized into a certain range when being cast to a float

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

            offset in bytes of the first component in the vertex attribute array

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vL37rMVAMkOM-isHf3MN1","name":"bind","brief":"

            called by the WebGL renderer when a compositor become the current one

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T4e6fQMazyz-vC7vR92Gx","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"A45V7am6KgeZHqO8oNql8","name":"drawVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            Draw an array of vertices

            ","params":[{"identifier":"mode","optional":false,"description":"

            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"verts","optional":false,"description":"

            an array of vertices

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}},{"identifier":"vertexCount","optional":true,"default":"verts.length","description":"

            amount of points defined in the points array

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gZyJOTKwqBWBj5eKAk_zz","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

            Flush batched vertex data to the GPU

            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

            the GL drawing mode

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"74nUS4eopO9LDfXot-1qH","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

            set/change the current projection matrix

            ","params":[{"identifier":"matrix","optional":false,"description":"

            the new projection matrix

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XD4qtOWwQ3ADx146xcbEs","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

            Select the shader to use for compositing

            ","params":[{"identifier":"shader","optional":false,"description":"

            a reference to a GLShader instance

            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"40ATkXJZxfe4wHQn5eoIn","name":"QuadCompositor","type":"ClassDoc","description":"

            A WebGL Compositor object. This class handles all of the WebGL state
            \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"FMCN1tvb_5iawmjZ-Vqo_","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            an array of vertex attribute properties

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CDvsItIoq5NI1Kw9cPxvZ","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the shader currently used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b11sajcwNrMZ98WuUxEqL","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the default shader created by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UIKCREgzo1VGoygC-yT-1","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e_pqxbuaJpw76hqiD-F4b","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pjZuVY53mnN3-813_ogEC","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            the vertex data buffer used by this compositor

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B7cpKAJTSHVxCWURVmGXT","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3cnGhnkkWop7xJUQ2rqwV","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

            add vertex attribute property definition to the compositor

            ","params":[{"identifier":"name","optional":false,"description":"

            name of the attribute in the vertex shader

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

            number of components per vertex attribute. Must be 1, 2, 3, or 4.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

            data type of each component in the array

            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

            whether integer data values should be normalized into a certain range when being cast to a float

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

            offset in bytes of the first component in the vertex attribute array

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n1kYqvU_c62CVHN-h9Kqd","name":"addQuad","brief":"","scope":"instance","type":"MethodDoc","description":"

            Add a textured quad

            ","params":[{"identifier":"texture","optional":false,"description":"

            Source texture atlas

            ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

            Destination x-coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            Destination y-coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            Destination width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            Destination height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u0","optional":false,"description":"

            Texture UV (u0) value.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v0","optional":false,"description":"

            Texture UV (v0) value.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u1","optional":false,"description":"

            Texture UV (u1) value.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v1","optional":false,"description":"

            Texture UV (v1) value.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tint","optional":false,"description":"

            tint color to be applied to the texture in UINT32 (argb) format

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"reupload","optional":false,"default":"false","description":"

            Force the texture to be reuploaded even if already bound

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"E4X92ua9uNXb41mNxIUfA","name":"bind","brief":"

            called by the WebGL renderer when a compositor become the current one

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RTg3hiDGZW07fDK9CsHlq","name":"bindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

            assign the given WebGL texture to the current batch

            ","params":[{"identifier":"texture","optional":false,"description":"

            a WebGL texture

            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":false,"description":"

            Texture unit to which the given texture is bound

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ec7AknEenbLnpJd748OE_","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"n5PfAoyLIjY8ioHSe-47T","name":"createTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

            Create a WebGL texture from an image

            ","params":[{"identifier":"unit","optional":false,"description":"

            Destination texture unit

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pixels","optional":true,"default":"null","description":"

            Source image

            ","dataType":{"tokens":[{"value":"Image | HTMLCanvasElement | ImageData | Array | Array","kind":"canonical"},{"value":"Image","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageData","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Uint8Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1 | %2 | %3 | %4<%5> | %6<%7>"}},{"identifier":"filter","optional":false,"description":"

            gl.LINEAR or gl.NEAREST

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"repeat","optional":true,"default":"\"no-repeat\"","description":"

            Image repeat behavior (see {@link ImageLayer#repeat})

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"w","optional":true,"default":"pixels.width","description":"

            Source image width (Only use with UInt8Array[] or Float32Array[] source image)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"pixels.height","description":"

            Source image height (Only use with UInt8Array[] or Float32Array[] source image)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"premultipliedAlpha","optional":true,"default":"true","description":"

            Multiplies the alpha channel into the other color channels

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mipmap","optional":true,"default":"true","description":"

            Whether mipmap levels should be generated for this texture

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            a WebGL texture

            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9vmLhx7dNJpdgj2yIoTMm","name":"deleteTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

            delete the given WebGL texture

            ","params":[{"identifier":"texture","optional":true,"description":"

            a WebGL texture to delete

            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_bCaPmresi92L22C8dwc5","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

            Flush batched vertex data to the GPU

            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

            the GL drawing mode

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hjTJmaTRE5F0EoTr-O07A","name":"getTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the WebGL texture associated to the given texture unit

            ","params":[{"identifier":"unit","optional":false,"description":"

            Texture unit to which a texture is bound

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            texture a WebGL texture

            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KbzjVT5rVTvnrIW692pTr","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

            set/change the current projection matrix

            ","params":[{"identifier":"matrix","optional":false,"description":"

            the new projection matrix

            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nmxLI_G4yjBkfHJwJFJDi","name":"unbindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

            unbind the given WebGL texture, forcing it to be reuploaded

            ","params":[{"identifier":"texture","optional":true,"description":"

            a WebGL texture

            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":true,"description":"

            a WebGL texture

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            unit the unit number that was associated with the given texture

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PAC9OjMa5DgibJU4ntLWq","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

            Select the shader to use for compositing

            ","params":[{"identifier":"shader","optional":false,"description":"

            a reference to a GLShader instance

            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"mK4tGT2YIX2NIjekq35W-","name":"QuadTree","brief":"","see":["game.world.broadphase"],"type":"ClassDoc","description":"

            a QuadTree implementation in JavaScript, a 2d spatial subdivision algorithm.

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"u4b48fZCNhnxtvHmtiOEp","name":"clear","brief":"","scope":"instance","type":"MethodDoc","description":"

            clear the quadtree

            ","params":[{"identifier":"bounds","optional":true,"default":"this.bounds","description":"

            the bounds to be cleared

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-8ujraafbanSPBFn-f6BR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

            the physic world this QuadTree belongs to

            ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}},{"identifier":"bounds","optional":false,"description":"

            bounds of the node

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"max_objects","optional":true,"default":"4","description":"

            max objects a node can hold before splitting into 4 subnodes

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max_levels","optional":true,"default":"4","description":"

            total max levels inside root Quadtree

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"level","optional":true,"default":"0","description":"

            deepth level, required for subnodes

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gLUjzXIHeNujuDuSlsy1b","name":"hasChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the node has any children

            ","params":[],"returns":[{"description":"

            true if the node has any children

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"F1g2tiaOsKHWs_aPO1gNY","name":"insert","brief":"","scope":"instance","type":"MethodDoc","description":"

            Insert the given object into the node. If the node\nexceeds the capacity, it will split and add all\nobjects to their corres...","params":[{"identifier":"item","optional":false,"description":"

            object to be added

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"fujCcWj9pJM3k6okGLyM6","name":"insertContainer","brief":"","scope":"instance","type":"MethodDoc","description":"

            Insert the given object container into the node.

            ","params":[{"identifier":"container","optional":false,"description":"

            group of objects to be added

            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rx7LCr_hGCEEIjwbnjFRy","name":"isPrunable","brief":"","scope":"instance","type":"MethodDoc","description":"

            return true if the node is prunable

            ","params":[],"returns":[{"description":"

            true if the node is prunable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"h7cVJio13d5iFuU55bFNB","name":"remove","brief":"","scope":"instance","type":"MethodDoc","description":"

            Remove the given item from the quadtree.\n(this function won't recalculate the impacted node)

            ","params":[{"identifier":"item","optional":false,"description":"

            object to be removed

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            true if the item was found and removed.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XEAJC3haeKaOk9JoqH5xn","name":"retrieve","brief":"","scope":"instance","type":"MethodDoc","description":"

            Return all objects that could collide with the given object

            ","params":[{"identifier":"item","optional":false,"description":"

            object to be checked against

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"fn","optional":true,"description":"

            a sorting function for the returned array

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            array with all detected objects

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"-nGyPo2L83UniO_KlhGeB","name":"Rect","brief":"","type":"ClassDoc","description":"

            a rectangle Object

            ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"-jTdNQmMP9lkl9h3IKl6k","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FyNXu7nD5rKjYjMbiENIJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4e1mxD2h_YNR3GfMK66o","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XkLtIvP3WByvwusSQcHvi","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AxxxLMOsBrY5tzDm3hr3n","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2PphGfEI9A7J7qVQpnXVz","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ap35Dnj474e5b-4wVRQg","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

            origin point of the Polygon

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j94qTN96Ki82V7yKfYEWR","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6w2PRG1X17UdkfnwIN5hc","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JCKrQEqsdcy3AoXh6h7cq","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8DKfTeQ-UZL-EJcdpHf9C","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Jh_IzaKGdzWY1tkZxApw","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FLDrcgNqDFGPnNQRBau_R","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ynBeOen2uYKYS8egRKmdA","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h6u5gfVFrox4igBhqWxO6","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gjVql5binB0mAUDxgkzcq","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ye6k6ncfE_Bhx9kjsaCfw","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kZsomiNxNpGtD06OoFIoX","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g0P0AOLzwLTiJlUw40VcV","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"iRX9xEDk7kMUL0ZKM7lEC","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GNXwq1FiGEAxkA2KJvlVF","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sVTpWe2IsdHrpBKGR8IZA","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hvofkH4wMVFCPnRZCD37k","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LurZCGySmrZaJHFSvtadU","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"16nJcK5T91Kz0EU-4CYzF","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5vHN1lvDFj69aqWQ02RI5","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the rectangle

            ","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"064REJiEFT6SjME2RMU-a","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0HjmsqIs7HWI8TuiiHpkc","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k4wrFOYypUwwD5jPBsNEg","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vDd2vkliRPuh_bRqjcoHg","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"C2ZnjfBqGNnTkOUVL3jDM","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LvVwvge4-jULaHE7hxoxX","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6iYBPpmhejrQqkDjtPOKq","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cuK5ZzrjeCrUxOQ_irCdR","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the given transformation matrix to this Polygon

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2o3JSkXjRwZEeajzn74FH","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LLe02fjgjv65i1u0AG3dd","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TkMvrjVojSD5YNTSgMvZy","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"7CA_3rxJ-6nw6Amxd7hlY","name":"Renderable","brief":"","type":"ClassDoc","description":"

            A base class for renderable objects.

            ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"-CRJERTyzdpoKSDyRMFDP","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O8xMm5OLxDdrv0DRrF320","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9jSB0DappVbC5bvYKXUpb","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XQyEqAOMZYRVMU35X9mnx","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GKBbesaQl4fC5tqsqFsUN","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yG89n5R4nLIKKeVGY2842","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6nCw5IxeMrsBowU-SBRtU","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2t_LbjboeyiGOsZUQXSWa","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bRRD7vy9BzgOjcgxymgbL","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MyjMNymFJIZj_PQ0-oKOU","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYvRprNGcezd3qvn1vH21","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nOLxCjzS7i-QIAMLwdkkX","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FJzOSAEcXsHPb1tRDWjiZ","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CcnQPIoS72_KXdNyC_f7D","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VAK_d56izknKRZRSRGwU2","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a8hrNGj50yb_x0cgF7XV5","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lvIoLhjM0M0e4dMVyJw7M","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Ha1Eu83MOTZsXEiK_QBT","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uSAiDpe5LM5kKhYkDFyOc","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WqxlJF5yty_EKWCOCPp8e","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"atqmQO16FeVwGCuV-oGxA","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TQUmahmdm1-7ZxD244wZU","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DDSCVCVotL-RcsPHmHAsT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YLqvqsr0p0sAYkr7za1Vt","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"86Wmi-PyYCa0dVkPWLng_","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xk7L5G9utem8rOXoDSXat","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0yUyzkOf-R8e3JqB_TCAt","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"84thQqiFpWt-_N41Baxti","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"saIaUDgAQgWMbIO_NpP_9","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yhZcoI_2JP9xN1W_Z7ZpN","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rj3hSp1mtTPHOO0_2cqct","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZwqV9U-oUCXq0ZVptP0xF","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rnNzy53sNjum3XCntGrMc","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zDhXVhzZYN8Fut6b_2wHE","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6jzwYSgdmDDqbtgxc6srj","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kQqIgjqa1pFS6n467BrLo","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"24FtPn60e4RrDW1p2hj2X","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FQKQHgNop9y9i001F-0VG","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TmGV9KQTXsl0uJhuhltI2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cam7J91xAitrxOhMllmZW","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            position of the renderable object (accessible through inherited pos.x property)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the renderable object (accessible through inherited pos.y property)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            object width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            object height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CtMC5YUd8Lmoog6_K30RF","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Qe_ub5zMUON2p5htuUxhQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HD8o94hm4VzaFT28hknwJ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0LY4BKZYk4Oicc6tZHDyp","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VGheO1ae6qWnwhCUGl3GG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qq7J5QKar234tdPTs7zSH","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XDXDWdc0XqwCv-qBwoDKe","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aoAmXeR6hh90Wcqq8B7rC","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l7VF6I0ocCigttZvIYKlt","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"73JAwLZ6PP2m4j-rmMgnV","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"KzH-tT_K3GUZZvQCA99iT","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ozo0vY4-r2zM8JHjTnLk1","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_XW04r8bFay5CrtQMFsw6","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"S9rhxLWiQAIo98hm8OisP","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yZwo_dQ01CXfF_TSjVzjQ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dJIfiXuS5VeZKLAP1evK7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ey2v1Z-u3e1ZOnl6ElxH-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0DTn97Pg-7FP4hR45E0UW","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_SyjkiXiy6QTCYwxI8Eaf","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GqR5vnBxTHqK68RU1K31V","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TKSKRVJscp2E8Xtv5exiQ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cqNSd7tJSauHxLTSvNJ1R","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HPKGb-MEesU5ilYiLo1ME","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AMX4EFrESxQsq2jFJO8kx","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tVdDvZ9GEzhG1N5wqRiDv","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5rQlyHwQreo_hqPCqHeLY","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IgSFcpUWtgYnKmcAwRuTG","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d5wIQEaAVvT15BZE9HLxd","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"t0PqDKt0rbKt20q8yAFYS","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p7Pa7lyGS343FtSbMxI5T","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yydwi7-rPBKU5TbFT68Xd","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"taoiNPxBDCjrUOES7jhcG","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oS0SWY0WuQ1i4-RU3T-Tu","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ytltEhrDZGh0EIXoG1wa6","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5lmsrOe9_H9gAzQQ-pzRY","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SSJ7vkR9XjUTazXIMdUL0","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"081srGoajzDzRq09ALV3T","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"_L69pYBJMlQiZW-e2eU40","name":"Renderer","brief":"","type":"ClassDoc","description":"

            a base renderer object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"uXtsdn0OnnSOc6OSQW0Pi","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","see":["height"],"type":"ClassDoc","description":"

            return the height of the system Canvas

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"haOGwuuxMkm3uOLveUrBs","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"_3Suq6PxoW78he4eaOSCZ","name":"getWidth","brief":"","access":"public","deprecated":"since 15.12.0","see":["width"],"type":"ClassDoc","description":"

            return the width of the system Canvas

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"SjwVrgonQVEK35F09wgw6","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"fwTapuMa6XMHTYm5046El","name":"Texture","brief":"","access":"public","deprecated":"since 10.4.0","see":["TextureAtlas"],"type":"ClassDoc","description":"

            Alias of {@link TextureAtlas}

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"NgPzHKjJA3eNIhs-LoDlH","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"rEprRDS8yodkGfylgkEmc","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

            the default method to sort object ("sorting", "z-buffer")

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MiTcPSlte6zFM6sbY78d_","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the requested video size ratio

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vvZZBZkDA19kvJ5jswfYr","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the height of the canvas which this renderer draws to

            ","params":[],"returns":[{"description":"

            height of the system Canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OrYfJmeuvlOrW7zp62pLY","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            true if the current rendering context is valid

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bb78bw6tE76Q2beINCScn","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The Path2D instance used by the renderer to draw primitives

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ahPM0yl2fVvPk1YggFr9I","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The renderer renderTarget

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6nhwtiU5YdbywkQy6yB0y","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

            the scaling ratio to be applied to the main canvas

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rx2jFrQ-5lrpeDAZqkUHL","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The given constructor options

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c_s43bEYsT2oIC7P6PwHg","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

            The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HqV6bZT27OlunirALwrsD","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the width of the canvas which this renderer draws to

            ","params":[],"returns":[{"description":"

            width of the system Canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TVqDus0kF_nyiQ9wfudf3","name":"clear","brief":"

            prepare the framebuffer for drawing a new frame

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gab9GpuM5ttqAOzxRalc5","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

            disable (remove) the rendering mask set through setMask.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LfSXF2J6Lc9EJ3aLeQ259","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

            clear the rendering tint set through setTint.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pWXoklNXNNyW7XwPPnHcX","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

            optional parameters for the renderer

            ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZIeZJiv1eSNIWDK5_uSqc","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

            fill the given shape

            ","params":[{"identifier":"shape","optional":false,"description":"

            a shape object to fill

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"aMNpMYKexedkvk8GtaDbp","name":"flush","brief":"

            render the main framebuffer on screen

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dyDFmUOy2_Lpw01yaJu9f","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the current blend mode for this renderer

            ","params":[],"returns":[{"description":"

            blend mode

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"yHNS9k1Fl4F0VlDubQ3iA","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a reference to the current render target corresponding canvas which this renderer draws to

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PgUNOIV5BtHZB4DvkM2X_","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the current fill & stroke style color.

            ","params":[],"returns":[{"description":"

            current global color

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l7lB9rl0N7wmpk11dDyH9","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a reference to the current render target corresponding Context

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"gXV03-O5_MMR6WCElJJ1i","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

            return a reference to the screen canvas

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ViUs0d09tEBqZPESqrHwf","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

            return a reference to the screen canvas corresponding 2d Context
            \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nxVro-7BRhqKNAEHDaxPv","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current global alpha

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qtoObovjdN8FNTkEfg_yF","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if the given rect or bounds overlaps with the renderer screen coordinates

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yMwbf_xxvjVHUZjNsPX-y","name":"reset","brief":"

            Reset context state

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i-fRO2I3J8X5lxaMjtz_F","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resizes the system canvas

            ","params":[{"identifier":"width","optional":false,"description":"

            new width of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            new height of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"oS9s9QpW9OXd9EP9S0LLw","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

            enable/disable image smoothing (scaling interpolation) for the current render target

            ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"GLeWHF6OPP_NsmzyMXBFo","name":"setMask","brief":"","scope":"instance","type":"MethodDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[{"identifier":"mask","optional":true,"description":"

            the shape defining the mask to be applied

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

            either the given shape should define what is visible (default) or the opposite

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"EZ4CBgXfiitogD55lAeoV","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

            set/change the current projection matrix (WebGL only)

            ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZMQ3oUznBTZXQuozBu_an","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

            set a coloring tint for sprite based renderables

            ","params":[{"identifier":"tint","optional":false,"description":"

            the tint color

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

            an alpha value to be applied to the tint

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-UBL9iEWjhAunjHYl-brL","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

            stroke the given shape

            ","params":[{"identifier":"shape","optional":false,"description":"

            a shape object to stroke

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

            fill the shape with the current color if true

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"oL312RyTcgjqn1y9t_aSL","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

            tint the given image or canvas using the given color

            ","params":[{"identifier":"src","optional":false,"description":"

            the source image to be tinted

            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

            the color that will be used to tint the image

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

            the composition mode used to tint the image

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            a new canvas or offscreencanvas (if supported) element representing the tinted image

            ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"J0Mx2Ac27Wv26MoJjyRLV","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

            creates a Blob object representing the last rendered frame

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a Blob object representing the last rendered frame

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HWLNlVpY9vKi8942Xm2h1","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

            returns a data URL containing a representation of the last frame rendered

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning a string containing the requested data URL.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VFeJ7O__rCbbArcpBiHR2","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

            creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

            A string indicating the image format

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            A Promise returning an ImageBitmap.

            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"MX2IMtwOQgL35aVzX0RVV","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

            An object representing the result of an intersection.

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1-VKw9iLS-fttp-0Y-o7d","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The first object participating in the intersection

            "},{"id":"bL2CjufDSp-GP1V4k0mJ9","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Whether the first object is entirely inside the second

            "},{"id":"wWQH5tCxbIkMnqZksiKzY","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The second object participating in the intersection

            "},{"id":"op3PlhKQRO5J2jfzmKPp2","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Whether the second object is entirely inside the first

            "},{"id":"v4CtSFEIlptVLjfBjJVkL","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The index of the colliding shape for the object a body

            "},{"id":"Lh0zblsN2MtUdcSTHJhIe","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The index of the colliding shape for the object b body

            "},{"id":"Lp3tNTSMLHaDUEFOaIAc0","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Magnitude of the overlap on the shortest colliding axis

            "},{"id":"rkYG_gI2c6fwcgTG5jfxV","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The shortest colliding axis (unit-vector)

            "},{"id":"wZX37r4dzJsgB6gpojJig","name":"overlapV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The overlap vector (i.e. overlapN.scale(overlap, overlap)). If this vector is subtracted from the position of..."},{"id":"b6fuYOknCvTgzmH0pX_4v","name":"clear","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

            Set some values of the response back to their defaults.
            \nCall this between tests if you are going to reuse a single this object for chaining

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"p_KLaMr2WTg9DCNWDjwom","name":"RoundRect","brief":"","type":"ClassDoc","description":"

            a rectangle object with rounded corners

            ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"E1rouGMEya7YGBpD6RtSI","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QsTTJZAX3GDWL_0Rkox71","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TxLzuwTYL9GInQCkPBwB7","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I4i-9jHNilNC9KiSuo2TF","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r5EmYGGZB7RAlGrqkPcE4","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jjrx28nTlLY_TMwtjChI-","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qr2-VQzOrwyZElUippn_Q","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

            origin point of the Polygon

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qgdioX5iE8LoT5-ZPKZjU","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

            the radius of the rounded corner

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eyitnsfd2kVIp-YExXPIe","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YtG084HtMcAkD1JDgeN4w","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nISVSAG1iXwBO2mR2C8lz","name":"type","brief":"","defaultValue":"\"RoundRect\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"28OJewW4PVnHoLnnJ0urO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CtZgHeB9O4xxq8IocB70N","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6aoX62lgLy5c-LRdKuxkj","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this RoundRect

            ","params":[],"returns":[{"description":"

            new RoundRect

            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MkT9AgbhQ1UsmbA8hBV92","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            position of the rounded rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the rounded rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            the rectangle width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            the rectangle height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":true,"default":"20","description":"

            the radius of the rounded corner

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hQhPpXM8Nc-ONBfhYDYEi","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rounded rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a Rect to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rounded rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hBU-I5c01Bfpsq-55SwuJ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position, size and radius of the given rounded rectangle into this one

            ","params":[{"identifier":"rrect","optional":false,"description":"

            source rounded rectangle

            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wg-Jkv3jO6xBK3GEWKJKS","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this RoundRect is identical to the specified one

            ","params":[{"identifier":"rrect","optional":false,"dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q85XKaM3Xge1V140gPYMg","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ma-Y-XoBZhyWV3WK3Ypoh","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"5ZQ1Wm9jMNJBuwpkWPzBa","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6YBma8xOEROKiMlw_URAr","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ugLjZSfpHIkKcbKXpulZk","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WR4X40roIzNgNi8aqVooL","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G1ug0l-HyrP9oG3jWJsB7","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GGZpzDiUcxP3DcGeSxNud","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uCo6Ehjc7oZMPnXyUuvTl","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the rectangle

            ","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xLg_njkRi-TY8i-l97CmN","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            Scale this Polygon by the given vector

            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EgHL5shodYhOtWX9KituS","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Oqr1qN6DnpywbSh0YUK6W","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JEhlqie0vGWN0kqzWeRQK","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ewoSFIok73bysD-op16wW","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Du5ntVAtaYiyyYl3liZVC","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZQxpjUmvZdhz0WBozCL9g","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rma37uRLHWgktoPew5EBQ","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply the given transformation matrix to this Polygon

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XAENJDVxKbMDW-iDsPnve","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g29RLMDMQVdjsFl5Ox51T","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-Ev3XkDG5p_mHhUUuGF02","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"zXX7HBuhMZaNSETEF9S2d","name":"Sprite","brief":"","type":"ClassDoc","description":"

            An object to display a fixed or animated sprite on screen.

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"KSIuGGpzCCKBR2Mq0hTQm","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2w3BS8d7HiGNWsYLisbIH","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vHse5NfpYTwD7u9Tw92vt","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wpmJqtcPC7POTANgojcWf","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fv0amr5F4Xu0Sy65dYmLX","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Uf4YJUqtYnY5zKyG5Gzsi","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H_lvIBoFUgE98x7VBU4li","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ts3toix0T0tyRJKoQtjUj","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kDLRMSyWGUZlKJIoelpfA","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MehqJ4Cu3bSJgFbSR_YOI","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1xUPKIiSw5KqrGtwZS7JV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NpDdmQGewuAJmZspolYDv","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7DFyGPXN_JLkpfpHNnd8B","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GQYZungUCzvqV2UUiaNjp","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L8zDyUx9DD062nhX2ofRa","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"upRVyHtjDvPnqAVQhEDjw","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8wslDB5UGAxHMeTOiRxbp","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GoYWl_9JaDr-TErPxv5EW","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eic9Qb6v2eh71AmRAnavg","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XKIku-aD2L4l1ybKZ_Ww2","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"leS-BRonOFgodZF-FL4ic","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mKBTdv8UMwu5pE_aEH72E","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hxturYExxNkVfYowqlT6Q","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ofdTL2RjDl1WjU9Wz5zME","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nrbLLacs77anUCJ-gR6iM","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N7mjPDxMGdIPl7f_4d23U","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JmHZrDhYYFzN4z_9WrdJ_","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YNFyflIUuLyYw0G3l5NOA","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YmgZNwYPUS1M4pfEv4oFy","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

            global offset for the position to draw from on the source image.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bhWdpdmVMs3HOowu3h64R","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZUzOwUifli0JuDZ3ixfB0","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2u0ZhFpixmleGYxu1COyX","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0aycxtsEvO1LmRK0PdzKk","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s9IHK9NDZa-yzbQXoLXi4","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HXYrLwQR-Hqd0JrXRKmqa","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OqGRR-ZHBwDbtN31przZn","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1gOStS4ADOsC-KL37KLVX","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r9jZd9XiunVfyxxjswO4K","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"og5XXTCn-AcrReTaW5_wX","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9w357e7R4sTYo_kP87tfh","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"clUVTT0unvaVSuyRx41tN","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XZPID4elxPSTfi9KDDTKh","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            add an animation
            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

            cycling speed for animation in ms

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            frame amount of frame added to the animation (delay between each frame).

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AO11WSotimzvEuBSXmQZd","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"koZUAc0YNPgs6_ts-5LBd","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z7trYeJdtjyXIBM-EuZ_Y","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SmtylAL8gLDKQQrxHaugV","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a single sprite from a standalone image, with anchor in the center\n let sprite = new me.Sprite(0, 0, {\n image : \"PlayerTexture\",\n framewidth : 64,\n frameheight : 64,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n\n // create a single sprite from a packed texture\n mytexture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n let sprite = new me.Sprite(0, 0, {\n image : mytexture,\n region : \"npc2.png\",\n });\n\n // create a video sprite\n let videoSprite = new me.Sprite(0, 0, {\n image : me.loader.getVideo(\"bigbunny\"),\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n // scale the video sprite\n videoSprite.currentTransform.scale(2);\n // start playing the video (if video is preloaded with `autoplay` set to false)\n videoSprite.play();"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            the x coordinates of the sprite object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinates of the sprite object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            Configuration parameters for the Sprite object

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

            reference to spritesheet image, a texture atlas, a video element, or to a texture atlas

            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | %4 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

            name of this object

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

            region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

            Width of a single frame within the spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

            Height of a single frame within the spritesheet

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

            a tint to be applied to this sprite

            ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

            flip the sprite on the horizontal axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

            flip the sprite on the vertical axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

            Anchor point to draw the frame at (defaults to the center of the frame).

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0QGQVzhsIq9CGS1UEsRGA","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-qkaslrYKQadInJB9gSVD","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MRZ_99cJ1wbFJjg5SHzjI","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0TREz3ry2cRZPNF5xw4NN","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ApQC7To2XDn10fvZTJyZD","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            make the object flicker

            ","params":[{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

            Function to call when flickering ends

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TNMfE-mzWDiCPIaD_512T","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"22OjKsolCQCNVTEdSYTeF","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BZT3SUWfKiMC_4sb65lMr","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eYxfYH5NUcaxLGwCislmr","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iYdm6ng9oNSStJDZYrplI","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current animation frame index.

            ","params":[],"returns":[{"description":"

            current animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5eRwSt2CodEKXGrVUczB8","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"UYcXG9w6lqxlb-hE7ouEu","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_t9FDrPnlHSu7XZ5wJotZ","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tkiq-w4P6oGQw-Ov_EWeb","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

            return true if the specified animation is the current one.

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VDFBQVRAyONtSsjWE6sXd","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"l_MQJvrObG45YwL4Z9IaX","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the flickering state of the object

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hAgug8ORMU279lkq7eBLy","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k6ZQVDkJ7RxPIDQAVZqIp","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U7yk66Gmk65ejv1ZdC_6C","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AkeGVsMDq83zQvnEvbvQ2","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3oAI3N_COVhN7XJ_uiJyd","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U6r33RinnvYFzfuV9qcfO","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BnRv004wlfJZm6S_EsGx5","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ln1f-lYH_nDMM8Y6gjS2W","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"b_mWLkV5ZJH5SRYNTVF6G","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H2rWEYzBX4k1Qks6bpkix","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rbd6F0jmrvE2X_xZuQLbd","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

            reverse the given or current animation if none is specified

            ","params":[{"identifier":"name","optional":true,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Um1uejEnsnXywJQC7DtQm","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nYi6BGzQOebYupo7p5YOw","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qvB6zstAIVFM9nnTmSu6z","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0-h6mOqvaBJsH6R75w2h0","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

            force the current animation frame index.

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            animation frame index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QsIp9lDf-_Lz2rxu8_uvy","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

            set the current animation\nthis will always change the animation & set the frame to zero

            ","params":[{"identifier":"name","optional":false,"description":"

            animation id

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

            animation id to switch to when complete, or callback

            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

            if false will reset the elapsed time counter since last frame

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rpdqqtwDzC1lWeFsk68Cp","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gvgarTzW8szSwHof261q9","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

            change the current texture atlas region for this sprite

            ","params":[{"identifier":"region","optional":false,"description":"

            typically returned through me.Texture.getRegion()

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RT2WkncZ6Lw5qFpcKFcIA","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ePbqV9bjeZKnm2wv23fyu","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G6uS6gDRyrce8tV0UeA32","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VOxnpJaAU7abte4NPqnYd","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hdJMoSMiZiCe9WFsEn13u","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CngMkQ1SnkT9LHBBU9fyx","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AaggaFFkB_JWwlIEwFipF","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f7BaWsHvJdhbOEzav9sOK","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iyVlBEVzA9uZs7SbJr0MB","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t7LWeg2Q0bevA4WIzLD37","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B6z9_k9dJiMf14yf5dOsG","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            draw this srite (automatically called by melonJS)

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Li_s8W4ZuI9dRKKXDgpUi","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            update function.
            \nautomatically called by the game manager {@link game}

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the Sprite is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"e3oYPBUQfwfRduI5juPGf","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"bfjfDlyuMAPdCcL5PYsN5","name":"Stage","brief":"","see":["state"],"type":"ClassDoc","description":"

            a default "Stage" object.\nevery "stage" object (title screen, credits, ingame, etc...) to be managed\nt...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Q_H9McPuEMMrLTwgaR1Cx","name":"ambientLight","brief":"","access":"public","defaultValue":"\"#000000\"","scope":"instance","see":["Light2d"],"type":"PropertyDoc","description":"

            an ambient light that will be added to the stage rendering

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JPLiJUPR54v_vAA3v0C7G","name":"cameras","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The list of active cameras in this stage.\nCameras will be renderered based on this order defined in this list.\nOnly the &q...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0QWgpd91GhTqKqWu3gjp8","name":"lights","brief":"","access":"public","examples":[{"caption":"","code":"// create a white spot light\nlet whiteLight = new me.Light2d(0, 0, 140, \"#fff\", 0.7);\n// and add the light to this current stage\nthis.lights.set(\"whiteLight\", whiteLight);\n// set a dark ambient light\nthis.ambientLight.parseCSS(\"#1117\");\n// make the light follow the mouse\nme.input.registerPointerEvent(\"pointermove\", me.game.viewport, (event) => {\n whiteLight.centerOn(event.gameX, event.gameY);\n});"}],"scope":"instance","see":["Light2d","Stage.ambientLight"],"type":"PropertyDoc","description":"

            The list of active lights in this stage.\n(Note: Canvas Renderering mode will only properly support one light per stage)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m7DKoHWEdgOYJQhwuFEKP","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The given constructor options

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Uf8zCRT9NDEqOua97xG9","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"settings","optional":true,"description":"

            The stage` parameters

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.cameras","optional":true,"default":"[new me.Camera2d()]","description":"

            a list of cameras (experimental)

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"settings.onResetEvent","optional":true,"description":"

            called by the state manager when reseting the object

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.onDestroyEvent","optional":true,"description":"

            called by the state manager before switching to another state

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"blhahg_IelgWuioYFvaCJ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            onDestroyEvent function
            \ncalled by the state manager before switching to another state

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D-n-V50qC8-fL0VCMsosY","name":"onResetEvent","brief":"","scope":"instance","see":["state#change"],"type":"MethodDoc","description":"

            onResetEvent function
            \ncalled by the state manager when reseting the object\nthis is typically where you will load a lev...","params":[{"identifier":"args","optional":true,"description":"

            optional arguments passed when switching state

            ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"uKNERVQj_4RUws0lUvKji","name":"Text","brief":"","type":"ClassDoc","description":"

            a generic system font object.

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"kSv8QjiD1KDWFpcvevi3J","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q8qvGJqYd8ZNIIwFh70Zz","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FmoxVfQVkICyw6EEY9MSj","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7bP6fp4enD22twtDTPh7l","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q5MgbNveF7xo4c-UQPgGf","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ztyZlePkueGPWIp90rALB","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SX4LXU-e62HkvM7VbM-OO","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Z0FVB-8RS-C36vyg6fO-","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-CcGUVi_mEWp1f5jC7amP","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iH4GCTILMgVYzgBF806Wb","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4kZ4C2WCAUGRBlOtWJr30","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P6Es5x58gIkoOwfiFKHQf","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rrN8ajNZx9hQh3bFZa6an","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

            defines the color used to draw the font.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m16pSucAmKnR-6VtrGran","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CvAOV1oVqCqEY5qv8pLXI","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

            the font size (in px)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6xkpjb8WwKxSxc4evtItA","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NKO1Ega_lh37XDaydCJsd","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zeoz_HvpPfJ5ZFbDVOx2k","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W0qum4Fok1TV_SqrwTkIz","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pn8E1jHVnhidewM3jbRgm","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oI3q1lu6U-GBMD0Vjmls4","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bTlQYx_RVngNTZndH5msi","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jhwVDUOsRLqZlbcnUm7Es","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KRzOuOrVSAlO0fQTu3cPw","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BH3tPG68s_rHjYHVqp9HY","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NRvOut3A8Y8coYgA4vtfG","name":"lineHeight","brief":"","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

            Set the line spacing height (when displaying multi-line strings).
            \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"el5cRRF1tn4vGXOc26a9A","name":"lineWidth","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            sets the current line width, in pixels, when drawing stroke

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HUMER_ETx7eYGRRiw4t5O","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeGoR-FGtGUyqcnXPnrlC","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6W9ANnMFFRn41C1laGwL4","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AUXRvm8kWnHa5BiBNd-Iq","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F80OcdNCUTtCjNrAy6HH-","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j6jQ8J6IkRw-uH7YApCf6","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ytnf2g8kt6mRZaHWqVY5h","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IgoC7Oia2aRxeAYnjmNOp","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z3L_MkhkPtxNCfdV5TLKR","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

            defines the color used to draw the font stroke.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HF9NCdjVVSSh52T-Uu5F0","name":"textAlign","brief":"","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

            Set the default text alignment (or justification),
            \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aV7c-QPFYtzvMEYJiMTSb","name":"textBaseline","brief":"","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

            Set the text baseline (e.g. the Y-coordinate for the draw operation),
            \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5TfdQRMPlNiCrFgq6HQe-","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VrNfLl3tKm4sAkvkx5s7P","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fjQB-1dhUJ9xH1IOE4qRB","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q5DMB0FnVgIE9rUxlABSy","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n3hdwnHtS6e3FBqCsYuCT","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0VAk6xTMzy_nsgdpWc7eU","name":"wordWrapWidth","brief":"","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

            the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QoR7f89M0W9HYorVu0FLE","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            the text to be displayed

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E0_oFEkdnOWU6vpdCoynd","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BMUhm4_FiA85AWDev31Qn","name":"bold","brief":"","scope":"instance","type":"MethodDoc","description":"

            make the font bold

            ","params":[],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ggmWbEhF72pZeW-FuCLA2","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3L_cTtNmN6vID2OPnY3eY","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u-KRPZ7cRE-YyAnfQLkub","name":"constructor","brief":"","examples":[{"caption":"","code":"let font = new me.Text(0, 0, {font: \"Arial\", size: 8, fillStyle: this.color});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            position of the text object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the text object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            the text configuration

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

            a CSS family font name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","description":"

            size, or size + suffix (px, em, pt)

            ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.fillStyle","optional":true,"default":"\"#000000\"","description":"

            a CSS color value

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.strokeStyle","optional":true,"default":"\"#000000\"","description":"

            a CSS color value

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"0","description":"

            line width, in pixels, when drawing stroke

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

            horizontal text alignment

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

            the text baseline

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

            line spacing height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

            anchor point to draw the text at

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

            the maximum length in CSS pixel for a single segment of text

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"default":"\"\"","description":"

            a string, or an array of strings

            ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"T4IT6M_AoP1uSJBzz2NbF","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AcBZGuhNyKmvJRj19pAF8","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T2wwnB3L8_B_L9JRRrqE4","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oyb1Xnl824GXVw6DsmqMB","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

            draw a text at the specified coord

            ","params":[{"identifier":"renderer","optional":false,"description":"

            Reference to the destination renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G66a1zTT-sjargc0bYwWG","name":"drawStroke","brief":"","deprecated":"since 15.0.0","scope":"instance","type":"MethodDoc","description":"

            draw a stroke text at the specified coord, as defined by the lineWidth and fillStroke properties...","params":[{"identifier":"renderer","optional":false,"description":"

            Reference to the destination renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nBmWPJ2EUJxYAXedu9Y2a","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gEpijeU_CRlW3UmG7B2Yp","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Iv03fNMgJWET4r2bo2Yi2","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K6OquKqMow1Vr_EnydWyM","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UNxbAqMvowHeeBdKFOb0E","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bBZDgkdw9ox1bnE1TxzDk","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"pUIsyxoB-ZQfZ5JMYdeEE","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Dm5UjlP3q4CdCEfPwlKI","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4whT7JJ-xS2icD1Xq8J7F","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5jF9RcO9McScyr-9YakWP","name":"italic","brief":"","scope":"instance","type":"MethodDoc","description":"

            make the font italic

            ","params":[],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GJKdVSaTilfIroya3LVZg","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vJcQYlt3_mVppvOlcI_gY","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

            measure the given text size in pixels

            ","params":[{"identifier":"renderer","optional":false,"description":"

            reference to the active renderer

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"description":"

            the text to be measured

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            a TextMetrics object defining the dimensions of the given piece of text

            ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dWVJQtzm9puKtuHMkJGoe","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UwcAX5jUPjwa4MTIlU_J7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dnjYnZNxSregzZL3m-u6_","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LFlS0J1mj1nbvWXz3TS9s","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"i18g-gMt4EfEykeEfHIbB","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"qR9Wr9bUYNiThUmwW08HJ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hw2tHld-kEvvV-MG6h4X2","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the rectangle

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PXQL55fC4aDElZS7O2RsD","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lj-nh_toQJwjNgZl5b2FC","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q5eHAYHZnu0E5bn1s-XCt","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"310BS5XygVlPRoHjw1pB7","name":"setFont","brief":"","examples":[{"caption":"","code":"font.setFont(\"Arial\", 20);\nfont.setFont(\"Arial\", \"1.5em\");"}],"scope":"instance","type":"MethodDoc","description":"

            set the font family and size

            ","params":[{"identifier":"font","optional":false,"description":"

            a CSS font name

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":true,"default":"10","description":"

            size in px, or size + suffix (px, em, pt)

            ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}}],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A5DT_lMdomrAG0uXO_dTY","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"smJGmPlZ_yMBdsnSRmYCg","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wLASDNFmZeM8xwuqLLPi-","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

            change the text to be displayed

            ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

            a string, or an array of strings

            ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p0zXpiY6gmAi8QEMkXUaW","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mbh2InunY_q9JTPj8N4t6","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"C-Bk9fuZKODeZjbkSfCbx","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-pXtAtIUOu9nl4yrCA61x","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iI3BujGQpkuNa0OG0Jsr9","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5I3PS3-1mXPySH1hn0gGV","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a6hMVikbTXsaNSTh1Wt0L","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vJk038Q5wQVIUS0T45Vgu","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6b5pQVnb6mGvC1cwElJXJ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JlG7MfLRxmDy4Xd8IhbM7","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yZhcyoZGHtIwRSDZ2CKgq","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"1hIoN0AOaIad6y-Zoc_dX","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

            a Text Metrics object that contains helper for text manipulation

            ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"WyLHf9MpXcMjHiAeHVaI2","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this TextMetrics object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SPS0DdJZBqjdJ-q78sxFd","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bg7H-SqGJz0jIvIsGXHaV","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the center position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_nBindc45uzWCipRbkbuf","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the x axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jqda73MyFAzMb8kmiyX4C","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the y axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BCv6p8f6BVDFuqNuK-8dN","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YHIEqnBXSHP7gUzIK-8CA","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FIiYQQZn7Xj2iegB1520J","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7yf7XdF3AUJQiFtRYdl3Z","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g8CPFOpkgtL2gmnuWJZLR","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

            the object type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iy0Rl1mO--Fvfj6SOChQH","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bWVDYWUdtJfoDkcprz05u","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fhds2XWM9CbDc7eT-sTrv","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y position of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NaweG6uzwOsvjqeclsnic","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given vertices to the bounds definition.

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"P0PsDl3syJcb81lp4Ko32","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given bounds to the bounds definition.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"A9HGT69rl7mS3RZRjV4NW","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given quad coordinates to this bound definition, multiplied by the given matrix

            ","params":[{"identifier":"x0","optional":false,"description":"

            left X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

            top Y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

            right X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

            bottom y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given frame coordinates

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X47hruuSVW4kxALE1LKnb","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given point to the bounds definition.

            ","params":[{"identifier":"point","optional":false,"description":"

            the vector or point to be added to the bounds

            ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given point (if the given point is a Vector2d)

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"beHtrnql523qW7EeFHxfz","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the bounds position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9FLYFkHdbJ3vX24m4iJut","name":"clear","brief":"

            reset the bound

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P3khDlAvPd8YUhpIaYfdy","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this bounds

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x-gJXbwA6hlCLChY0QzIk","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

            the parent object that contains this TextMetrics object

            ","dataType":{"tokens":[{"value":"Text | BitmapText","kind":"canonical"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"jJa4yo0aXE-C7o4OzS7w0","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the bounds contains the given point.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the bounds contain the point, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ShmgCmag5UAUaXvzYzcS7","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this bounds are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XnzePxNEGVX6WvDO9G2V2","name":"lineHeight","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the height of a segment of inline text in CSS pixels.

            ","params":[],"returns":[{"description":"

            the height of a segment of inline text in CSS pixels.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B8og-R4FJPRvM_tbkEgKx","name":"lineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the width of the given segment of inline text in CSS pixels.

            ","params":[{"identifier":"text","optional":false,"description":"

            the text to be measured

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

            reference to an active 2d context for canvas rendering

            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the width of the given segment of inline text in CSS pixels.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K0pOLB3dACnyXGL6vSKP1","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

            measure the given text size in CSS pixels

            ","params":[{"identifier":"text","optional":false,"description":"

            the text to be measured

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

            reference to an active 2d context for canvas rendering

            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this

            ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wVAddJ9IXVK2Rofnew4-k","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the two bounds intersect.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            True if the bounds overlap, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ATp56hFaEdF54JRYhsNCK","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

            sets the bounds to the given min and max value

            ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kfoX2vU-5yb1FIAdfcHmf","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the bounds to the given x, y position.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zFBwOu1uhtWGGET9OcTnr","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this bounds.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this bounds.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WL-YBOM8ivevJg7Sy4nUm","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Translates the bounds by the given point

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Vced8IdNCUVNKQ3nmxSVC","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            Updates bounds using the given vertices

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"r4mxtoD6RBCaubkd3trgh","name":"wordWrap","brief":"","scope":"instance","type":"MethodDoc","description":"

            wrap the given text based on the given width

            ","params":[{"identifier":"text","optional":false,"description":"

            the text to be wrapped

            ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}},{"identifier":"width","optional":false,"description":"

            maximum width of one segment of text in css pixel

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"context","optional":true,"description":"

            reference to an active 2d context for canvas rendering

            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            an array of string representing wrapped text

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"HovuEuzb0NN0tdA6-d1z6","name":"TextureAtlas","brief":"","type":"ClassDoc","description":"

            A Texture atlas class, currently supports :

            \n
              \n
            • [TexturePacker]{@link http://www.codeandweb.com/texturepacke...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"wu1RMtrNKqO7F0_fuR_wm","name":"addRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

              add a region to the atlas

              ","params":[{"identifier":"name","optional":false,"description":"

              region mame

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

              x origin of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y origin of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              height of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the created region

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"u9u7sgXwhL2EasldyfVQ2","name":"addUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

              add uvs mapping for the given region

              ","params":[{"identifier":"atlas","optional":false,"description":"

              the atlas dictionnary where the region is define

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

              region (or frame) name

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"w","optional":false,"description":"

              the width of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              the height of the region

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the created region UVs

              ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IJ--0TOrawfX0qG2AGXZl","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a texture atlas from a JSON Object\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\")\n );\n\n // create a texture atlas from a multipack JSON Object\n game.texture = new me.TextureAtlas([\n me.loader.getJSON(\"texture-0\"),\n me.loader.getJSON(\"texture-1\"),\n me.loader.getJSON(\"texture-2\")\n ]);\n\n // create a texture atlas for a spritesheet with an anchorPoint in the center of each frame\n game.texture = new me.TextureAtlas(\n {\n framewidth : 32,\n frameheight : 32,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n },\n me.loader.getImage(\"spritesheet\")"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"atlases","optional":false,"description":"

              atlas information. See {@link loader.getJSON}

              ","dataType":{"tokens":[{"value":"object | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"object | %1"}},{"identifier":"src","optional":true,"default":"atlas.meta.image","description":"

              Image source

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string | Array | Array | Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | %2 | string | %3<%4> | %5<%6> | %7"}},{"identifier":"cache","optional":true,"default":"false","description":"

              Use true to skip caching this Texture

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"XhNYdrL2ET0cO3r6x-0fy","name":"createAnimationFromName","brief":"","examples":[{"caption":"","code":" // create a new texture object under the `game` namespace\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n\n // create a new Animated Sprite\n let sprite = game.texture.createAnimationFromName([\n \"walk0001.png\", \"walk0002.png\", \"walk0003.png\",\n \"walk0004.png\", \"walk0005.png\", \"walk0006.png\",\n \"walk0007.png\", \"walk0008.png\", \"walk0009.png\",\n \"walk0010.png\", \"walk0011.png\"\n ]);\n\n // define an additional basic walking animation\n sprite.addAnimation (\"simple_walk\", [0,2,1]);\n // you can also use frame name to define your animation\n sprite.addAnimation (\"speed_walk\", [\"walk0007.png\", \"walk0008.png\", \"walk0009.png\", \"walk0010.png\"]);\n // set the default animation\n sprite.setCurrentAnimation(\"simple_walk\");\n // set the renderable position to bottom center\n sprite.anchorPoint.set(0.5, 1.0);"}],"scope":"instance","type":"MethodDoc","description":"

              Create an animation object using the first region found using all specified names

              ","params":[{"identifier":"names","optional":true,"description":"

              list of names for each sprite (if not specified all defined names/entries in the atlas will be added)\n(when manually creat...","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}},{"identifier":"settings","optional":true,"description":"

              Additional settings passed to the {@link Sprite} contructor

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oaSlVJVkYLf8FCZSWuQxW","name":"createSpriteFromName","brief":"","examples":[{"caption":"","code":"// create a new texture object under the `game` namespace\ngame.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n);\n...\n...\n// create a new \"coin\" sprite\nlet sprite = game.texture.createSpriteFromName(\"coin.png\");\n// set the renderable position to bottom center\nsprite.anchorPoint.set(0.5, 1.0);\n...\n...\n// create a 9-slice sprite\nlet dialogPanel = game.texture.createSpriteFromName(\n \"rpg_dialo.png\",\n // width & height are mandatory for 9-slice sprites\n { width: this.width, height: this.height },\n true\n);"}],"scope":"instance","type":"MethodDoc","description":"

              Create a sprite object using the first region found using the specified name

              ","params":[{"identifier":"name","optional":false,"description":"

              name of the sprite

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings","optional":true,"description":"

              Additional settings passed to the {@link Sprite} contructor

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"nineSlice","optional":true,"default":"false","description":"

              if true returns a 9-slice sprite

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite | NineSliceSprite","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"V9yenNCoyAkUO-sCi9I1d","name":"getAtlas","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the default or specified atlas dictionnary

              ","params":[{"identifier":"name","optional":true,"description":"

              atlas name in case of multipack textures

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"Be3-Fhz-gP_Ry33tpmGuU","name":"getFormat","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the format of the atlas dictionnary

              ","params":[],"returns":[{"description":"

              will return "texturepacker", or "ShoeBox", or "melonJS", or "Spritesheet (fixed cell si...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"nNWoAGLHEIjmOYELYw6SA","name":"getRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a normalized region (or frame) information for the specified sprite name

              ","params":[{"identifier":"name","optional":false,"description":"

              name of the sprite

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"atlas","optional":true,"description":"

              name of a specific atlas where to search for the region

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"sydV7LObsNSzc7cHmO9jn","name":"getTexture","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the source texture for the given region (or default one if none specified)

              ","params":[{"identifier":"region","optional":true,"description":"

              region name in case of multipack textures

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"fbQW1Y1uTiLYF0Hd19iyZ","name":"getUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the uvs mapping for the given region

              ","params":[{"identifier":"name","optional":false,"description":"

              region (or frame) name

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              region Uvs

              ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"BgVoZS-O44Vy7WeXaLMu-","name":"Tile","brief":"","type":"ClassDoc","description":"

              a basic tile object

              ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"Q5uYxwSwvXK8QGyF-sRgA","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LMOOEYP2tIV3NMoKXFbtg","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the center position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RF5qYCF_ag_m68WKhN7Df","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the x axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f8qb-ZHFgGS0GHhgGgzvu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the y axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1k6_5uMKt0Be0YSFFgX6v","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Global flag that indicates if the tile is flipped

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xfp6lSx8jIlN1kThGRsu-","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

              True if the tile is flipped anti-diagonally

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rQ_CkcW76q0fySjnr1O-9","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              True if the tile is flipped horizontally

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"upip_l-e5qtoSAJeRay2C","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              True if the tile is flipped vertically

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"recssgQ1P8HbYkHXxQEIg","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukuCed8q_3geMI3f3SXgc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qqb8glFhI8leREGPiBaIg","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G1PzDz6vEYb4l149XewNr","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

              tileId

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aKh4diGFv7X_HHMAvmmUl","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

              tileset

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mmhHUQ-uUrPSCM9_QwFs1","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kot5xSFXhozy4WfEKJwMu","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

              the object type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Adoztcfx74SSNIv-HkjHd","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z34JFpz6-xIy1uS4_3imo","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

              x position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NQ280hTpKYIsOI9i8iYA8","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

              y position of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vsenOT_ZxtWQF46PFh-pC","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given vertices to the bounds definition.

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"xtVtIDuTedjp5QUR-FzhT","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given bounds to the bounds definition.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"hSzNWr9MJ68fIXCsXR6kd","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given quad coordinates to this bound definition, multiplied by the given matrix

              ","params":[{"identifier":"x0","optional":false,"description":"

              left X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

              top Y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

              right X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

              bottom y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given frame coordinates

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nLmGL0do4flQKdeO_QHbz","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given point to the bounds definition.

              ","params":[{"identifier":"point","optional":false,"description":"

              the vector or point to be added to the bounds

              ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given point (if the given point is a Vector2d)

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pxoJ4YhQWg2QelcFgY6pD","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the bounds position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rRDBb923L5YA2P-QPKYwf","name":"clear","brief":"

              reset the bound

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oy0vex_gdFtDpjtrprlQF","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this bounds

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GLWlmvrct2m2tQpbSefsM","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              x index of the Tile in the map

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y index of the Tile in the map

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"gid","optional":false,"description":"

              tile gid

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileset","optional":false,"description":"

              the corresponding tileset object

              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DOMJNPnM32eJWLGuNTlvg","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the bounds contains the given point.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the bounds contain the point, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AFFvDatB3LRVH4bOBG5Q1","name":"getRenderable","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a renderable object for this Tile object

              ","params":[{"identifier":"settings","optional":true,"description":"

              see {@link Sprite}

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              a me.Sprite object

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U1oHENZA-NJ7_fJIbr1kK","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this bounds are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0ScCIQwM33tbWksv2_XAh","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the two bounds intersect.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              True if the bounds overlap, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QItrdiX70hSFTLeEdoC2M","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

              sets the bounds to the given min and max value

              ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X51f0lENizkT6HyPKmAZn","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the bounds to the given x, y position.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"amGCR06fA5ymLi7QHVsSE","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this bounds.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this bounds.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0ENm4jGyCcJJ-pSa7J_94","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Translates the bounds by the given point

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SVaAyEmgYlb0wbzel68T8","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              Updates bounds using the given vertices

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"vkCxXM0oDtIVDc4Zymqhl","name":"Timer","brief":"","see":["{@link timer} the default global timer instance"],"type":"ClassDoc","description":"

              a Timer class to manage timing related function (FPS, Game Tick, Time...)

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"96oKhsTmLkB_pqsT3gvDA","name":"fps","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Last measured fps rate.
              \nThis feature is disabled by default, unless the debugPanel is enabled/visible.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_kDBlI4Ovj_rVEuDyt8dW","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

              Enable/disable frame interpolation

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gYoTfO6tgirWWP_dTWEq_","name":"maxfps","brief":"","access":"public","defaultValue":"60","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

              Set the maximum target display frame per second

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7I47hwtMj4fB4Sj5Wz0r2","name":"tick","brief":"","access":"public","defaultValue":"1","scope":"instance","see":["interpolation"],"type":"PropertyDoc","description":"

              Last game tick value.
              \nUse this value to scale velocities during frame drops due to slow hardware or when setting an F...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LhdhBK5FkzHru9MM1w38O","name":"clearInterval","brief":"","scope":"instance","type":"MethodDoc","description":"

              cancels the timed, repeating action which was previously established by a call to setInterval().

              ","params":[{"identifier":"intervalID","optional":false,"description":"

              ID of the interval to be cleared

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"V3QvtZ5ruxG1NqCLTFors","name":"clearTimeout","brief":"","scope":"instance","type":"MethodDoc","description":"

              Cancels a timeout previously established by calling setTimeout().

              ","params":[{"identifier":"timeoutID","optional":false,"description":"

              ID of the timeout to be cancelled

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"d7LWN1E3kBOtSN3SssDks","name":"getDelta","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return elapsed time in milliseconds since the last update

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XTBayTJpyaxXqthTRgu-U","name":"getTime","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return the current timestamp in milliseconds
              \nsince the game has started or since linux epoch (based on browser suppor...","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SgRIz2OeDfwZG_NmzUKds","name":"setInterval","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" every 1000ms\nme.timer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setInterval(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

              Calls a function continously at the specified interval. See setTimeout to call function a single time.

              ","params":[{"identifier":"fn","optional":false,"description":"

              the function to execute

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

              the number of milliseconds (thousandths of a second) on how often to execute the function

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

              respects the pause state of the engine.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

              optional parameters which are passed through to the function specified by fn once the timer expires.

              ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

              a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kyMjK2iI4RLHXcJc41jgd","name":"setTimeout","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\nme.timer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setTimeout(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

              Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.

              ","params":[{"identifier":"fn","optional":false,"description":"

              the function you want to execute after delay milliseconds.

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

              the number of milliseconds (thousandths of a second) that the function call should be delayed by.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

              respects the pause state of the engine.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

              optional parameters which are passed through to the function specified by fn once the timer expires.

              ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

              a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"pb-Ef9lcvfLwtHD2tJBQM","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

              an Hexagonal Map Renderder

              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"wvF3YIWzSUwza5EQNjxlS","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the renderer can render the specified map or layer

              ","params":[{"identifier":"component","optional":false,"description":"

              TMX Map or Layer

              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"c1oSoz_Ngl5FAh-vOfD1x","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

              the TMX map

              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cCESo9CI_A48l7fm2drNo","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given tile at the specified layer

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

              X coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

              the tile object to draw

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5xu8LIvasad3-VmOCTUQG","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given TMX Layer for the given area

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

              a TMX Layer object

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

              the area of the layer to draw

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Usdpd7Hg0QB58dLFamDWz","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the bounding rect for this map renderer

              ","params":[{"identifier":"layer","optional":true,"description":"

              calculate the bounding rect for a specific layer (will return a new bounds object)

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iuekGuxg9IemvkzC_7U0F","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile position corresponding to the specified pixel

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MCL2LPw5FEnJVCNySTuGv","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the pixel position corresponding of the specified tile

              ","params":[{"identifier":"col","optional":false,"description":"

              tile horizontal position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

              tile vertical position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"vEtRXB013-IuCO4nzdFn9","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

              an Isometric Map Renderder

              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"uoXkr2_GvP_bmNwLIfN6t","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the renderer can render the specified map or layer

              ","params":[{"identifier":"component","optional":false,"description":"

              TMX Map or Layer

              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rynoURl58zpzHnvdAz2uN","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

              the TMX map

              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"usep_ubNLj0boUzs4S4yV","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given tile at the specified layer

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

              X coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

              the tile object to draw

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mikCvMrWEOJGtMCHv8ePL","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given TMX Layer for the given area

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

              a TMX Layer object

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

              the area of the layer to draw

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1zVsv-4wcZOh9hHrQXyMD","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the bounding rect for this map renderer

              ","params":[{"identifier":"layer","optional":true,"description":"

              calculate the bounding rect for a specific layer (will return a new bounds object)

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hb8sSC3hlNSVhzPzs9yye","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile position corresponding to the specified pixel

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xc6bsb_vazc2EfXNEr4eK","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the pixel position corresponding of the specified tile

              ","params":[{"identifier":"col","optional":false,"description":"

              tile horizontal position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

              tile vertical position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"o-pgeYJugugsPeP3fNqle","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

              a TMX Tile Layer Object\nTiled QT 0.7.x format

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"ATeaw33JCRSxs9-NsAolL","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_hMFxQNAvL049nuTIrM4","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gtEzsJDHcKrkGdAuwIdRJ","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"klphi4lAU0sA_MsL7a9Lo","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vf-kXxSMsGWFOFvlKC1Nk","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

              All animated tilesets in this layer

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pjLkOF7ZSfdvL74rFBeeH","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V7o6yCN0pDr8mqcSpGpsG","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P86KoRiYun8FcrF3Wsk-5","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pReJ_i8Sa4ctriEgSDc4B","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aoA262dR0S2ZX2yRp76zq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MTVvAUtAxbCO2wRe5Ex8_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6ZnIlGq4OjHZSM_NALY0F","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the layer class

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gUx7fqo8Uuj95bmuBHm0v","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fmri9poG1XHq31aW4C9hm","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ebz_F5NjX9Gvy7TtmVP-E","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A2GYX99u2dbDxD26HPcmN","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1zH6zTPmXFc7pLPj6kqZ1","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1jPsYqKDwF4XCFEWE4Wuw","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4QSVK31w2JXN5OmD6crM-","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Layer contains tileset animations

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e8f6horFeesXkukAP640c","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I8P0_FkS4UhtONBa7yXMU","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3DCwaC3Gwy5cEqvIcIzQd","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nlc5swa5k4jI-qcdI88UO","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z1lUhXTiZx54Q0cXU3TwJ","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p6Do1nlGDnOGAkm-RN5rg","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-IYHP8_J5dsB85T53XMKG","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D8U3-U2iuiMdqUUE7h84w","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7cMuVm7SjVwBTMlas_nL3","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s7dgjrc7aYbbXyTR4_MLN","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lvdCJaItK9XjubwczjEDR","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mec2uET1AmCzfpGYQn-C-","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pTxOdGkOnW_mchKUvHi6Y","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EMUOXaBz1OMfiYQhjfM92","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

              the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_9cHFSV3zbjuUU0SfVmm","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R6xeDonZGtQdRyiv8SK4o","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lH4LHou6nTvhOEk0dHzzB","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The Layer corresponding Tilesets

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ccng-G1TCrC4URbyhhoH5","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QtXZntJ8epp763dfsuZHB","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WGApPZJ6pDoQAWJAvkzAG","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DdXiDiLgFx_cpCyiANJVN","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sD7hF2ZzLXsv1OHfXouXw","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Hf_26WHOrUSmCeJ68iHp","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Horizontal layer offset in tiles

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j7FPQ6xvfAjcVZ7qrMWeu","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Vertical layer offset in tiles

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-kXECUG5aOJfuPX4TFdTx","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rt2YlQ3IxJTMJytNmkud7","name":"cellAt","brief":"","examples":[{"caption":"","code":"// return the first tile at offset 0, 0\nlet tile = layer.cellAt(0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

              Return the Tile object at the specified tile coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              x position of the tile (in Tile unit)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              x position of the tile (in Tile unit)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"boundsCheck","optional":true,"default":"true","description":"

              check first if within the layer bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              corresponding tile or null if there is no defined tile at the position or if outside of the layer bounds

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lwjxZhj_MzcDYdPGb3IIg","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oT-JKoPlmV1uA8CwvzMMj","name":"clearTile","brief":"","examples":[{"caption":"","code":"me.game.world.getChildByType(me.TMXLayer).forEach(function(layer) {\n // clear all tiles at the given x,y coordinates\n layer.clearTile(x, y);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              clear the tile at the specified position

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate (in map coordinates: row/column)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate (in map coordinates: row/column)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YZ_Sb8UEwf975sDtiKeP2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5r1gnVSkmsYIQKFKRD21a","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

              layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

              layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"tilewidth","optional":false,"description":"

              width of each tile in pixels

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

              height of each tile in pixels

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"orientation","optional":false,"description":"

              "isometric" or "orthogonal"

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"tilesets","optional":false,"description":"

              tileset as defined in Tiled

              ","dataType":{"tokens":[{"value":"TMXTilesetGroup","kind":"canonical"},{"value":"TMXTilesetGroup","kind":"link"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

              z-index position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0_zRf1bO8Fz8cpS_GsARf","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1KIpke8PimAN_7F-Uq2n_","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"86DJ-KzcXCp-X4iJg3e84","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5XHJF_LHj-0G_FyR1YwYg","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rWqdMFfiLv8iApTAe2sfw","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_mqWfWs40RUb85w2NZBHu","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bZTg_VuLLU-TEcwF75wrT","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GI740gXqpTrMSjmz3vDuv","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0678etjU9H_EQBpubS7Yb","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4PqP-3tyd40AA_y8kch2j","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"gQOYuSEKleUOk9_Uvrmmp","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_b0fy7VnANdqTw39u8HVV","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return the layer current renderer object

              ","params":[],"returns":[{"description":"

              renderer

              ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9LW6Om5MxT5i90bggtdf1","name":"getTile","brief":"","examples":[{"caption":"","code":"// get the TMX Map Layer called \"Front layer\"\nlet layer = me.game.world.getChildByName(\"Front Layer\")[0];\n// get the tile object corresponding to the latest pointer position\nlet tile = layer.getTile(me.input.pointer.x, me.input.pointer.y);"}],"scope":"instance","type":"MethodDoc","description":"

              Return the Tile object at the specified position

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              corresponding tile or null if there is no defined tile at the coordinate or if outside of the layer bounds

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uVXD7csHuguuWPgGsJTK5","name":"getTileById","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a new the Tile object corresponding to the given tile id

              ","params":[{"identifier":"tileId","optional":false,"description":"

              tileId

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              X coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the tile object

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9v-MnA9kRvc9RXrLXmWlL","name":"getTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return the TileId of the Tile at the specified position

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              TileId or null if there is no Tile at the given position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aNDgNhbm9Et6LI009B0-b","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3kjwJamdEZ8uX3agfNH_T","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BcBA0HVeYmnBQ6LMFj0C3","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RBMq0vzT-SDlwDXeuYm50","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QiWAX_DDs4AEyHS5ATpPZ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"deHsvw--62Q8zx02YrKa-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8NN_dA9U-yCgNSNHI0EX6","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"NPREO5ndUpZv5BJsex-5T","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"VamKZ0LCPp7XETNRBlc-1","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jva3YLX3gsSghSpcWIEvV","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MihM0JSru2DYMaB4UUxea","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jS_lReHS2x42us7QaUS3u","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CsQoA_ZZ_ELSv3NwEWuAz","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8c1JRpOTlrYLKCrTKNTCW","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_Pw-o5ynwcJD7inIgI0Vn","name":"setRenderer","brief":"","examples":[{"caption":"","code":"// use the parent map default renderer\nlet layer = new me.TMXLayer(...);\nlayer.setRenderer(map.getRenderer());"}],"scope":"instance","type":"MethodDoc","description":"

              Set the TMX renderer for this layer object

              ","params":[{"identifier":"renderer","optional":false,"dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"04lpz_ezKudT6OP_wDiId","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3hx6zhrX2KXQ6zkWHfuBx","name":"setTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              assign the given Tile object to the specified position

              ","params":[{"identifier":"tile","optional":false,"description":"

              the tile object to be assigned

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              x coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y coordinate (in world/pixels coordinates)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the tile object

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DtW4MpIkVdOFKTfq8lAkq","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FlrnWtm9MToG91jAVZjry","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"utLMAJFZ3JUdChYX7Ym7x","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hDJqjoA8AeCbJJ8Lqmy0a","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XdntZXew4uskC2syMnbdO","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kI7ZgdUfaMRrcjHaTFAjl","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jOUoQ6aZq4fPKG5HkcYAA","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PIDgMbmK26GKvVMB_P90i","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j6kks9knPU1tsAgnTzSLH","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"s2_V_0ZpP9LoHNJ2V4do5","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ggGkAxutvRY9i36IToGro","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"6dvSJOku37BDG99pv1rqk","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

              an Orthogonal Map Renderder

              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"dGYLlN2FzwT91X1PpEe-Q","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the renderer can render the specified map or layer

              ","params":[{"identifier":"component","optional":false,"description":"

              TMX Map or Layer

              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"X0jgWpV2TqH4J6qHjbyYs","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

              the TMX map

              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6KLFMkSNLMdK79fRdbghQ","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given tile at the specified layer

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

              X coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

              the tile object to draw

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zu1L6JfZ_RevnTkC5H9Si","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given TMX Layer for the given area

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

              a TMX Layer object

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

              the area of the layer to draw

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XsGT8riDcFxqnqbjNeeYI","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the bounding rect for this map renderer

              ","params":[{"identifier":"layer","optional":true,"description":"

              calculate the bounding rect for a specific layer (will return a new bounds object)

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R2guZSh8XkTUTVKV5DO2w","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile position corresponding to the specified pixel

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MKWXpFzswa-wtQn1rNxog","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the pixel position corresponding of the specified tile

              ","params":[{"identifier":"col","optional":false,"description":"

              tile horizontal position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

              tile vertical position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"gQnpfLpAu1ZlKvVnNxtzW","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

              The map renderer base class

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"pDy2inrSrQFJ8XrfqVMJe","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the renderer can render the specified map or layer

              ","params":[{"identifier":"component","optional":false,"description":"

              TMX Map or Layer

              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kiqdMPoPOYaByMJfCqdd5","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"cols","optional":false,"description":"

              width of the tilemap in tiles

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rows","optional":false,"description":"

              height of the tilemap in tiles

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tilewidth","optional":false,"description":"

              width of each tile in pixels

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

              height of each tile in pixels

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aPYFYziisu6ave2fxF6B_","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given tile at the specified layer

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

              X coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

              the tile object to draw

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xNnoNso65jmV-QqAmFAiN","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given TMX Layer for the given area

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

              a TMX Layer object

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

              the area of the layer to draw

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SGlBJCl_3A3xrUyuyen3u","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the bounding rect for this map renderer

              ","params":[{"identifier":"layer","optional":true,"description":"

              calculate the bounding rect for a specific layer (will return a new bounds object)

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uV_TAJvKxiHAkGG6xftBq","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile position corresponding to the specified pixel

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"27lb6ImiUDPba2f6BmfVT","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the pixel position corresponding of the specified tile

              ","params":[{"identifier":"col","optional":false,"description":"

              tile horizontal position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

              tile vertical position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"cMhhhuRPkQTLpfLngNJi7","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

              a Staggered Map Renderder

              ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"Id4L14rRP3qhidhLNp68F","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the renderer can render the specified map or layer

              ","params":[{"identifier":"component","optional":false,"description":"

              TMX Map or Layer

              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yDbjq0mvwO4s6me-lTUeW","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"kl-IDWYrhYKjp9viexyTn","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given tile at the specified layer

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

              X coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate where to draw the tile

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

              the tile object to draw

              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TwS_mjPvn1K-HkgTp2vxr","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw the given TMX Layer for the given area

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

              a TMX Layer object

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

              the area of the layer to draw

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ridp5LzBc6RaLfmyH0rOr","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the bounding rect for this map renderer

              ","params":[{"identifier":"layer","optional":true,"description":"

              calculate the bounding rect for a specific layer (will return a new bounds object)

              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DwQ7U9nB-gMiQ6VLzPw1O","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile position corresponding to the specified pixel

              ","params":[{"identifier":"x","optional":false,"description":"

              X coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rLNIzr1blW3dtJ6LZT4YP","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the pixel position corresponding of the specified tile

              ","params":[{"identifier":"col","optional":false,"description":"

              tile horizontal position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

              tile vertical position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional vector object where to put the return values

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"XTk9A9C690u_KOmhj8dH7","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

              a TMX Tile Map Object\nTiled QT +0.7.x format

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"k37rwSZSHckwm6bDTz_4L","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The map class.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s4KJscDGtO8YLEZL612zB","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

              width of the tilemap in tiles

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3ntowEhC197SgbMzLxcQx","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              is the map an infinite map

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TCZ22s4MZieHEAnropH2j","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

              name of the tilemap

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y8jrzOYIj_72a1PBnQ0Av","name":"orientation","brief":"","defaultValue":"\"orthogonal\"","scope":"instance","type":"PropertyDoc","description":"

              the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “hexagonal”.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cKXQODCtLX64Bq9XCoh9g","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

              the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3W37wpDmXWQ19GzvtyqnQ","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

              height of the tilemap in tiles

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9sJQcJJ-sLVRO7889MaCF","name":"tiledversion","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The Tiled version used to save the file (since Tiled 1.0.1).

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RcSncwmHPI0W5dj1X1T7F","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

              Tile height

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FA5USiJIqNaGbJSqaitpc","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

              Tile width

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DcJ77ggtJvySfNNcQLxCB","name":"version","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the TMX format version

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n9dgt0G6Ki39L75Qzdsqt","name":"addTo","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true, true);"}],"scope":"instance","type":"MethodDoc","description":"

              add all the map layers and objects to the given container.\nnote : this will not automatically update the camera viewport

              ","params":[{"identifier":"container","optional":false,"description":"

              target container

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"flatten","optional":true,"default":"true","description":"

              if true, flatten all objects into the given container, else a me.Container object will be created for each co...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"setViewportBounds","optional":true,"default":"false","description":"

              if true, set the viewport bounds to the map size, this should be set to true especially if adding a level to the game worl...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"0LX_KyYLmGyqrQRyBe7mE","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"levelId","optional":false,"description":"

              name of TMX map

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"data","optional":false,"description":"

              TMX map in JSON format

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zpb1wBk4heYwmbz2poHdI","name":"destroy","brief":"

              destroy function, clean all allocated objects

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2fTqpzY5ve6UNXV0lBRVf","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the map bounding rect

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OgNtE8R1HMTFOW_xBfgz3","name":"getLayers","brief":"","scope":"instance","type":"MethodDoc","description":"

              return all the existing layers

              ","params":[],"returns":[{"description":"

              Array of Layers

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"0lkq-Gi8GX4nDuZDzdPqb","name":"getObjects","brief":"","scope":"instance","type":"MethodDoc","description":"

              return an Array of instantiated objects, based on the map object definition

              ","params":[{"identifier":"flatten","optional":true,"default":"true","description":"

              if true, flatten all objects into the returned array.\nwhen false, a me.Container object will be created for e...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Array of Objects

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"04Y-eb39CBieriGQhc5jv","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return the map default renderer

              ","params":[],"returns":[{"description":"

              a TMX renderer

              ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"3QQ5L0Isr4RetAxy5EWm8","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

              a TMX Tile Set Object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"QngPuNCJ3jS-q8PYHsFRk","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the tileset class

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r60vpvH46ywa_wSOfHKrZ","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Tileset contains animated tiles

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KKhuX9gzT_xIzxDbsfF9B","name":"isCollection","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if the tileset is a "Collection of Image" Tileset

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MGdrIpmpAdPDx_duDs3J0","name":"_lastUpdate","brief":"","access":"private","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Remember the last update timestamp to prevent too many animation updates

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F3idqvy8TRuspjxCWY83r","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

              Tileset animations

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KOKXknGb-bNDMsfQ8-qwz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"tileset","optional":false,"description":"

              tileset data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset})

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"-8qVrkcjkcjd4Wr__jzmn","name":"contains","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the gid belongs to the tileset

              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QeOELKIUfzAve03NiDIey","name":"getTileImage","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tile image from a "Collection of Image" tileset

              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              corresponding image or undefined

              ","dataType":{"tokens":[{"value":"Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j38plJzrHaXTwM1mJFlBe","name":"getTileProperties","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the properties of the specified tile

              ","params":[{"identifier":"tileId","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"FQlKOo7BxN7OEYF2r8GAH","name":"getViewTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

              Get the view (local) tile ID from a GID, with animations applied

              ","params":[{"identifier":"gid","optional":false,"description":"

              Global tile ID

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              View tile ID

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"8g8SB_-qkUi7XMcJgZvTZ","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

              an object containing all tileset

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"VHTx9I9GwIBfpnQlUf58O","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              add a tileset to the tileset group

              ","params":[{"identifier":"tileset","optional":false,"dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zdQ003KQ9_uwtm657KQwI","name":"getTilesetByGid","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tileset corresponding to the specified id
              \nwill throw an exception if no matching tileset is found

              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              corresponding tileset

              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PjqyApRS9GrCmpSdzE5_L","name":"getTilesetByIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the tileset at the specified index

              ","params":[{"identifier":"i","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              corresponding tileset

              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"U5zY6SrnLJY7Z_sSBvMRt","name":"Trigger","brief":"","type":"ClassDoc","description":"

              trigger an event when colliding with another object

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"CFMc47BIu-klQV13JPAdp","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3nLg3Ctr0GXMAg2_-7BOt","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CIJcCrzLFennSyuLEC5Fg","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x-WT2Bgd9eAL9CEmJw-wh","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5NuzqB5u_jyTTPTQn7CP","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JqUrFY1B1J7KvuStBzULl","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TRJRlfhvRpnhlXJAWlndc","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8h8qhASS01vZhuja5s6p9","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dDbZwmlpivQ_ohEUFXhvm","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R9M_UOfGb58ex5MgY9N69","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nnfYsMfOT6hVzibtaaiPB","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EITnOI4AetA1-wRc4XeKG","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KuX-EcaSRuQnDx5CFyGfW","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jQg-iRnd5GZL04QUOoMGo","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d7ZswKqEIsgde_ZqemwQ-","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pItIvi7SXXSQl4zy1z8_l","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J7UdBP3cip5z3HDveblOE","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GUFb-ry812BLqvETwY04H","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yEddlABb-gl1lpA-WC7Or","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N_f1dlphgtHHlCSACz1dE","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1p_mUOYkBK3laF7v_YdQv","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xQWUDePsOZgGT4Rd5RtyH","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lL0Fo8wRGLbR7LHd0XSH7","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QIC14cORjPtcU7oY_G1Yt","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tHPaCmVq468fzyhJrx_b_","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ntQmJi2dOk9WILLHzDLPA","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gve4b9cKoV6bF7u2mlvxg","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z3n4EzE94TLQ13xRvw3Q7","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jKmO06CEJB0SXSdfjcQNI","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KYQC604i_6EBzakyOKrea","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5E8ARTRkSJ3qYAMKxS-Pa","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mx04krRGS2zx2zsRCCPtu","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ab4ehGvxfE46iRTmse6FW","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ypvvRQflF4hDt_qb2GII","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SbL84MN46RK4ngGuC3q52","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qjzL0ZgL7Y-oYSU3y0__2","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IXGY1bL4EQF-PUGlZKTJW","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uLA0FrYlRx539ntKvXAzv","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JcSOY98WJsCuI6DNLJapj","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"24pZDlV8W5D7BKMR853xW","name":"constructor","brief":"","examples":[{"caption":"","code":"world.addChild(new me.Trigger(\n x, y, {\n shapes: [new me.Rect(0, 0, 100, 100)],\n \"duration\" : 250,\n \"color\" : \"#000\",\n \"to\" : \"mymap2\"\n }\n));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the trigger area

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the trigger area

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.width","optional":true,"description":"

              width of the trigger area

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","optional":true,"description":"

              height of the trigger area

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

              collision shape(s) that will trigger the event

              ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}},{"identifier":"settings.duration","optional":true,"description":"

              Fade duration (in ms)

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.color","optional":true,"description":"

              Fade color

              ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.event","optional":true,"default":"\"level\"","description":"

              the type of event to trigger (only "level" supported for now)

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.to","optional":true,"description":"

              level to load if level trigger

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.container","optional":true,"description":"

              Target container. See {@link level.load}

              ","dataType":{"tokens":[{"value":"string | Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.onLoaded","optional":true,"description":"

              Level loaded callback. See {@link level.load}

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.flatten","optional":true,"description":"

              Flatten all objects into the target container. See {@link level.load}

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.setViewportBounds","optional":true,"description":"

              Resize the viewport to match the level. See {@link level.load}

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7V-0RWion2K6YLCk4jezA","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tEPPTiS4f9wIKkWUwTQp3","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L2iJ5yiqb_Drjlg7ZIlVA","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R8ZEGjxF-bInAC4RzfRrG","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h39fdYyedeIhp-HNjWV1R","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dLUhbHX2sl4-3Gf1rwu6e","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fpoqjx5aXwuwx6ffCVkHU","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"56KhDIyhDnTv_mw7COjO8","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zg_Q1zKf59WtGC3ev_kLv","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gMjk5U9WJECwAslcrpk-l","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"WSYeR8-UEjdv9SO3iA5IX","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GUsAFrAKSzJ_7SrLjRH5O","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qUUzz4oUrCoby2wlBEbpE","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GONZH_u7_E7VUwV7XRFEV","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zxWi1HOWvT9sAbPh9Xds0","name":"onCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision with this trigger

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0Suk1PdMiZWAdNQd1j1CS","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SL9pmvh93vzoCcSJuH4Wd","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L2XJj4Z9RnxMgQtZONpBC","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"7F7cZKxYeTaIwJ21YEy_9","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"uofGXFGPcmqR5ECjE-ie9","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jdMHDGt9y9arGNWOWaNM_","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iYub1RJTwXlOqoR7wH5Nm","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VTNCt_Wmg69SVjCOd_qoQ","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f9zCRZkRlDMepJOGmkATJ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G6VZrz0_YNTumEfu7NWTK","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IH9lDghUra50SU8cVOmSI","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X18xvo5Gon5T7DzUpjk7a","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V5Q5b2r3LFdC7KBz3RZR3","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"J8FwL2XoiMFeSJP21QOQi","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VJ_Dgtcy6b2ZDLDr8XIi6","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EGgCX-PKamXUotTsHr5Qx","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D6LV9coehq1XiFrfuDon3","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jewsPnU-EXdW5vYXbL0nd","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uFURTCdRh6h9uizXykwR3","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2VsqAd4mjbn-Jd-jx0B1a","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EkZTEgnrvOo_oTjMQ1Uvu","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MorzsUeMA3OGv7-ofwXYf","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              trigger this event

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ipK7---4X78b-ywqA9aEq","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"i6eXA79nuG6yDThkJToBY","name":"Tween","brief":"","type":"ClassDoc","description":"

              Javascript Tweening Engine

              \nSuper simple, fast and easy to use tweening engine which incorporates optimised Robert Penne...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"6z9T6Fk2fJmtJfL9AVwQe","name":"Easing","brief":"","access":"public","type":"EnumDoc","description":"

              Easing Function :

              \n

              \n Easing.Linear.None
              \n Easing.Quadratic.In
              \n Easing.Quadratic.Out
              \n Easing.Quadrati...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JaAr3Vq2KubH9sONUUD0p","name":"Interpolation","brief":"","access":"public","type":"EnumDoc","description":"

              Interpolation Function :

              \n

              \n Interpolation.Linear
              \n Interpolation.Bezier
              \n Interpolation.CatmullRom\n

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Hfnde34-X0fx-DtHH4Eh","name":"chain","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              chain the tween

              ","params":[{"identifier":"chainedTween","description":"

              Tween(s) to be chained

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t-vCzH42FrfS1N6_lGEAH","name":"constructor","brief":"","examples":[{"caption":"","code":"// add a tween to change the object pos.x and pos.y variable to 200 in 3 seconds\ntween = new me.Tween(myObject.pos).to({\n x: 200,\n y: 200,\n }, {\n duration: 3000,\n easing: me.Tween.Easing.Bounce.Out,\n autoStart : true\n}).onComplete(myFunc);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"object","optional":false,"description":"

              object on which to apply the tween

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"SsYTfcCLe1JpTUR6oRQpi","name":"delay","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              delay the tween

              ","params":[{"identifier":"amount","optional":false,"description":"

              delay amount expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m0cmrdLC7lKiZ0N0Cvsy9","name":"easing","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              set the easing function

              ","params":[{"identifier":"easing","optional":false,"description":"

              easing function

              ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NfEjRKEvkushvgstV064i","name":"interpolation","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              set the interpolation function

              ","params":[{"identifier":"interpolation","optional":false,"description":"

              interpolation function

              ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JE4qFb0UOfFAb7XSlXioJ","name":"onComplete","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              onComplete callback

              ","params":[{"identifier":"onCompleteCallback","optional":false,"description":"

              callback

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"muo7KlH15_yWkBxh4LuwQ","name":"onStart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              onStart callback

              ","params":[{"identifier":"onStartCallback","optional":false,"description":"

              callback

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"plKb5tRPxSCUN175t1GhG","name":"onUpdate","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              onUpdate callback

              ","params":[{"identifier":"onUpdateCallback","optional":false,"description":"

              callback

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fHz_fQrSWOXsSFJtr5X5L","name":"repeat","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              Repeat the tween

              ","params":[{"identifier":"times","optional":false,"description":"

              amount of times the tween should be repeated

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XXvFB_oeo9wd0BNBK9KRJ","name":"start","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              start the tween

              ","params":[{"identifier":"time","optional":true,"description":"

              the current time when the tween was started

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E467Cx7CilePfFUaJ_hnR","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              stop the tween

              ","params":[],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AY9xjhLUx_bz7oa8iQS-y","name":"to","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              object properties to be updated and duration

              ","params":[{"identifier":"properties","optional":false,"description":"

              hash of properties

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options","optional":true,"description":"

              object of tween properties, or a duration if a numeric value is passed

              ","dataType":{"tokens":[{"value":"object | number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"object | %1"}},{"identifier":"options.duration","optional":true,"description":"

              tween duration

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.easing","optional":true,"description":"

              easing function

              ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}},{"identifier":"options.delay","optional":true,"description":"

              delay amount expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.yoyo","optional":true,"description":"

              allows the tween to bounce back to their original value when finished. To be used together with repeat to create endless l...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.repeat","optional":true,"description":"

              amount of times the tween should be repeated

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.interpolation","optional":true,"description":"

              interpolation function

              ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}},{"identifier":"options.autoStart","optional":true,"description":"

              allow this tween to start automatically. Otherwise call me.Tween.start().

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-ApFl1H6rG90mAD1HpQG9","name":"yoyo","brief":"","access":"public","scope":"instance","see":["Tween#repeat"],"type":"MethodDoc","description":"

              Allows the tween to bounce back to their original value when finished.\nTo be used together with repeat to create endless l...","params":[{"identifier":"yoyo","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this instance for object chaining

              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"aUGF26usl5Fv_FkWi1LtS","name":"UIBaseElement","brief":"","type":"ClassDoc","description":"

              This is a basic clickable and draggable container which you can use in your game UI.\nUse this for example if you want to d...","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"3KxS0Ja6jQr5a0NSnycTM","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cp8yzZQpI0mrAwu2-vJoR","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nux53ft8M-GK04WR7St82","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mRwxD7jS6lj69qJ6TAnMp","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oxjjc3yf6QO7fuDBCTfEE","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children z index should automatically be managed by the parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wfCq_nxfGe3yTgEIKwEDS","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children list should be automatically sorted when adding a new child

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LjTUb28YUkpZtctigzlKt","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PH_TgEoZqOu6ue-2AcFEz","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a background color for this container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LBGGUJmz-lJY6ltD4KcsV","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eZIDDj2XWwUdCEOyRy9yw","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7zWlQkbzAaWrEdHDwlReC","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2IHmCAE-HxN0cwafhAgQ4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hOvjMu_rT2ZejMibwZJof","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MGLnME_FaqwaYvihbBtf0","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container draw operation should clip his children to its own bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ozp8jPcLh0SKimW4C05lY","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Qeie8x4KkJfVzlmeuVhM","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DC1qdV5-1GYlzbARdXLZi","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_XuyXxOPxDmXp-ILCOsbH","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

              UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VnaWjF6x1BM6zr0OLheKV","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2LQVWXFxf3mTyWIxDxamY","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Ju74jQy7k5dTFHDUucUX","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

              Tap and hold threshold timeout in ms

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eQy47PDHTAGX5Lq827YJY","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if the pointer is over the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D4rnioABfJm00vWHGQa3n","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9_c53vH_6ESJZED6Y8HE-","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              object can be clicked or not

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UHZ3jkgaN4QSmUTCe_TQ5","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WEx0x3AJpw7nnONgeBPV6","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              object can be clicked or not

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TJz71aKekfjbwTaCyv1EY","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HSDLm3JXYmOwEe-1AmFzQ","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z-j6spj9akCzFmv0XsNdf","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hqwBtETPEFWCXUcVOMCOC","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              object can be tap and hold

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"djLE2K4VnCIKPR8rvm6Jr","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SM9f9DRd0lbE11qxaPKfh","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hq7_ou2vr_0JEr5RYBllD","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4_e60f9CBh4eYKaN36ELQ","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RymTb3CgySQ7UmKb7TOAf","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cm3RJwtJ_eskoP5k1S1hu","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Hp5Z51t9Jta9Cc6fPOtA","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GXEJAfexW_oYwg1_69zRN","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XIVWHW6FwwH7e6OUMBm-N","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WpfmlwHe695YazbEQM1sc","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              false if the pointer is down, or true when the pointer status is up

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CPYjQXPu5YG_vnl5MMysu","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ic1RaCXm9NEsc9PH4hkaA","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              whether the container is the root of the scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B07KLcG3syCxjlJTNVwer","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T-RqcfJHp1DV3xsqY7W7V","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6yzcllZF7yx9OY3Cen012","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R75XIAA-jivLB7YnUs7bY","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A2MIxJDZqoe00h_49d5Xy","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EHS1898zWz4esZcZDW_PL","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UDyGqgiGqPlnyX43H_TSN","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pZ5e8XXA0Iwy-l3s2-cfM","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container
              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

              forces the z index of the child to the specified value

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hO-A-bN50-8IWrqL_fFjA","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container at the specified index
              \n(the list won't be sorted after insertion)

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

              The index at which to insert the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hUsDzsd_yVHm-4F--PDTj","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mn0pUkKg-ei7mRb8gOk9-","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TWin0ZC2DJMmTBN7N9R7n","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DDvjQB4OVf7yhtZne9HCW","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              The x position of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y position of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              height of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"78MuFUUEQcGwG79ScGmtX","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZSWCU5brIzxkagj_xpy2i","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hjF1V6spuZGvLUz9rZ-cx","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yXT-Wn4goa1z-NI1gRRIR","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ArAQQxk6dU2YBlzhbavLj","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zrzx0BYEa8XrURDzpfLDP","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N5gVy5cAt4Sv_ORmLR6cY","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

              The forEach() method executes a provided function once per child element.
              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

              fnction to execute on each element

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

              value to use as this(i.e reference Object) when executing callback.

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"mM9g3K_5APanZVhP5IBKm","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lcluhbLToMnByX3BuzFem","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z549DvNV5zJFXC1DsSK0_","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the Child at the specified index

              ","params":[{"identifier":"index","optional":false,"description":"

              The index of the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the child at the specified index

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2rpcSPZS_UYeU2QRxTXVB","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the specified GUID
              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

              child GUID

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              corresponding child or null

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aDjGvD6tiWJtagBaPT64u","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified name
              \nas defined in Tiled (Name field of the Object Properties)
              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

              child name

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"9hzMQgSalbv1sifA9X5CZ","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the given property and value.
              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

              Property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              Value of the property

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of childs

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2C1UhI_2xXU8UEEArwXxd","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified class type

              ","params":[{"identifier":"classType","optional":false,"description":"

              Class type

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"752M35QNosCfeT-n3gE1z","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the index of the given Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uxf17Gwmj4Vxb5VZw9JlF","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              return all child in this container

              ","params":[],"returns":[{"description":"

              an array of renderable object

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"65SypOECB21GOTELm-hnD","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"st-8g-YcXDt6QE3ZLeN-Z","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the next child within the container or undefined if none

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EmB_rJnV9MmSzxJ6gPLpR","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SRRPrKDyJ90Hn33WwpbTl","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the instance of the root container (i.e. the current application World container).

              ","params":[],"returns":[{"description":"

              root container

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kyvIqjXbqRujIa1OKzC18","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if contains the specified Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"A7Rk7N56vsHuqIJDMPCol","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

              Checks if this container is root or if it's attached to the root container.

              ","params":[],"returns":[{"description":"

              true if this container is root or if it's attached to the root container

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"54Uqt80fUrVSrlexzLvy4","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8SLwTPrUy0u505c08U33n","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZR8OqRoTCIM5njM-GYyID","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gAnVbvk0LACkYtHa-eVIR","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step backward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"rCYML2myjtl5aKPRADBbA","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child the bottom (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"D-mUiXNUDKUfCWuB6P3ff","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child to the top(z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"DupA2pnKUiF2DT2Mva964","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step forward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"xm-1tTXbcRMyq4R6Ovx4H","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

              a callback to be extended, triggered after a child has been added or removed

              ","params":[{"identifier":"index","optional":false,"description":"

              added or removed child index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"webRFyA8nbKkLXIXB2OCw","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed (to be extended)

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"K0Y9Xm4QIGj-ehX-qmwky","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BqoN_eOL725STpEq8d5Vk","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RQDIa4j8KtHcR1RRMOMg7","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and held
              \nto be extended

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g0B5mklCMR8kBGdKtP5p7","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is moved over the object

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"y5dkorZFIaEzdMTg7tceV","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is leaving the object area

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_JpLfQFNwWyx5eRF2YB6F","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is over the object

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FK-pZd4MdFyygoRzrA1kR","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and released (to be extended)

              ","params":[],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"f4ZnsobpnC2ypjIY0yaKG","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GFTUwHB4EvTg_VZihO7Yc","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"bR2UgtJonLZI7N96bg_Wl","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"runvpaT58pdMGQlJgDmIl","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iqB1B9QxNKtW-OdX6sSya","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

              true to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"oOveJpt16OTWLfYHWlPCe","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

              Removes (and optionally destroys) a child from the container.
              \n(removal is immediate and unconditional)
              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

              True to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"knSY0GVZBNXxjlyWjQLe-","name":"reset","brief":"

              reset the container, removing all childrens, and reseting transforms.

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"swGkGWAJuTbzqFwOU2A9g","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"molJlTOkA1Lvq1YqXZ-MC","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7X-Q8e4HOrHGR5XKUdAQV","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pa5i7D1j-g6sxihmW1dE7","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mfKY5MAErJFK5_faEabgA","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

              Automatically set the specified property of all childs to the given value

              ","params":[{"identifier":"prop","optional":false,"description":"

              property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              property value

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively apply the value to child containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"865sQ7qyHnAa10kAAHSyU","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GcTlq4SFP_3nSoJuSfyzF","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"15tYmLW_AyBufCQ6Kvsyh","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"srQXNL1nvUEL1248HfuyC","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XKoIZiR7lO_xvmw6X0xCr","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

              Manually trigger the sort of all the childs in the container

              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively sort all containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"yar5_4gR-R_BgH6JKc2sH","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              Swaps the position (z-index) of 2 children

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"PDrQzqT7PvRePcrL5euai","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1nbQaN5faSXCOIobMgBAL","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c7vtAsLITTvEBE05ZQdqJ","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TsXoU34tK9iIgeoxoKi30","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T2yVCEOFcvjN-4nOikAbX","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TUkguyXPtInIxrasT-IIA","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BCUJm628Lzqn857QRDSkr","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this container.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this container bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xjXvWq9IGeDMqdbLjemMR","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this renderable (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AMy9wRFC6t3TRxK5Vwqv-","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              container update function.
              \nautomatically called by the application update loop {@link Application}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Container is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8v_CYumKv5jE2_rdq1H4r","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"VVEgUEM4FjlI05ErygW4B","name":"UISpriteElement","brief":"","type":"ClassDoc","description":"

              This is a basic sprite based button which you can use in your Game UI.

              ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"Cm52ixBlBu5wCWfnDcg0h","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XwhpBu2rBct4UMhTQ04mX","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FrgGBjd_TThYu7ko-3PUV","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DALSR7ew_l1mh_Xg7npMz","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dU8usowZ-qrHJvDy7sAz3","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gSDEjYwYgQ2mfOihmzRa2","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H0oGur1Vw6d3TdxJ0q0o-","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KdB2xYFzP-QQTzKr5472k","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B8RlFXJ2lCO3UBga8-kll","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MkyLigtT2v05xWsOitnDM","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B83wFe_eTZBH64FQnaU0H","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nTa9QaHcQg2BZJ1ifGeN2","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_EY0ttx5F4O8x3gtwlDYc","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uJCe8rdt2hnAmJ75S08Q7","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-jNly9J19ytFmS54Kqqyj","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

              if this UISpriteElement should use screen coordinates or local coordinates\n(Note: any UISpriteElement elements added to a ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5S3mx4barJ9KS7SgSnAbE","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"72vDrLHL0PMGE2PlOa051","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4QDFF-9ONuQjcOK5Tyo7Q","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

              Tap and hold threshold timeout in ms

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cf22laMIccntQ-K1uMdLD","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if the pointer is over the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p2qTBXjJQcxJf7DXNQDD9","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8j4nX4sNuTkUe0NEE6HVR","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              object can be clicked or not

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vycXnPwDy63IElVqkYesG","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hjCnROxtvkf1CB8lUQoFV","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hp3CDADf0TdLhR8aEUU3y","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9XXxF-TsjxFhs6ijGyZRu","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VcOIORtQqJ2TwLCtgjsMq","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              object can be tap and hold

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a4-fLhtiLMOzae5uk6AeH","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D8PFrcQaVfVEthy5Jyzly","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ffXoMdkyzAuL-EqO0Pku5","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZruC5k-mvmlB-FtGpZQMv","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wYZ6iKj4C2SA4ocsT_efw","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3WBy8C3wofYhBZr8Gb7gp","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UHfpoExgeFNwlTZI-m2J2","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_KQeXAsGXN-0EqZkqurjU","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sYrEYOTbVmXRKiLSuP6NG","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5z0Zr4eRsk9_WIeUEFp-q","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mk9NteGvLiyTurb_9DRjh","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uph6ihSpWi_YslzHFxbkf","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9jCQmal5mWf1gpR7nRdHz","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UiqH1po53BHylkAzTqTYd","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o1Yk7hDFEUVEToZVXAdVL","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g48uSaNxL3kRdHZLh4zSK","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MqwxUS6pXIwyHgAQ4268p","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-YZkAYVC5MJx2aKHbjbAB","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a32zV_mTRClDPgbqRlHfg","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KE8cQPRapyZ7ZGse9PpFg","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O3RNQzQI8B6ECt0pi6mMI","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fywUFEVsQvN262CxnMzdb","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QnIYfUlEbSet5zDrf065f","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZZJu39LuVdqMOkBebRQxy","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a basic GUI Object\n class myButton extends UISpriteElement {\n constructor(x, y) {\n // call the UISpriteElement parent constructor\n super(x, y, {\n image: \"button\",\n framewidth: 100,\n frameheight: 50\n });\n }\n\n // output something in the console\n // when the object is clicked\n onClick(event) {\n console.log(\"clicked!\");\n // don't propagate the event\n return false;\n }\n });\n\n // add the object at pos (10,10)\n world.addChild(new myButton(10,10));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate of the UISpriteElement Object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate of the UISpriteElement Object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              See {@link Sprite}

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"TGwjy44WI5PZjBSQhhdsc","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zF1s6UEsW0SRSBHtu3qYQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RGR-MuZJFOoV1D3rmM0fh","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0P47GASuIc3VCcI0a3zj-","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ByN0tqeUMJlTjdpgZTUJ5","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LJcfO_QmYOPkdbJDFXyFz","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"huQLrLrePYjv2KPNOrGea","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Igam2JVdUoRL7TMALtURn","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PATagPJfN7QOvzAfd8RH3","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7kmr2wKPbmvPW371-yrq7","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PsX25-c19CNM-eDO87Ewv","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"hqUuxM-LZBsuyej8_-jJC","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aRLH3QHMAC6n68EB-wo-N","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aNA1ULGERmD9cubWTL-O1","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oqcperPhOIo9dcwP2cr1Y","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pI5RcWUg7CUbSHdTfHthP","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9vNHaOtVjmlfyZnb3SOc5","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ODgrjaUnELL3AXjrJ5eHw","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed (to be extended)

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6gq63YnNP-9v7e27QcRf0","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lm3EWYQjSQ3i-5BkFK3RA","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NAsMQQL64vTUg7TXHfMlp","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and held
              \nto be extended

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BOjb6B0Law3WO9Jda_fd7","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is leaving the object area

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GBexstxBrzeETZAfbZ7dy","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is over the object

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pRwTUso9y9wYd7nX28RHt","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and released (to be extended)

              ","params":[],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8ha2dHKEPSB4Cq15URDBa","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hhXe1CIu5MnbYQvwTnhiP","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jG3vq_rXmP2nrY7k8316T","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lhiaC4yfnCi2OLXDZlGMF","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"kw0bmYWGMPbAgwz2xdhxC","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"mXomy6aPU-bUMDQzDYseX","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ts6w_9-egcHf3FV8QrRIe","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t2-_Mk70TLcX4Y5k6Lxtn","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"At6HrG5BEezSnk04dkSt5","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xMZuLuEdzuMsdDbX4KIii","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OavhyiYDBorvIcGi0Wfll","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vovWUAzfISps1_DLpykHB","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aJTumfcFbakgTrucmJfPW","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z2VfJVKOW1dWdTliSfM2b","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QJYl6QHELItXSvKrX4hSd","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hR9USz7I-h33J0tqvfYpL","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8-6QYVZM6KroJejcsNOSF","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JNlu4XU5hNPgccw8S5pAY","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5VS4Meuui1IM7ca3Uc6cy","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XiKkjy2ajzv7GGhqotfuR","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zA9ZuUawKzxMdQMzhrHcs","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6htqiILKXcskdv0XITtiM","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X_bR9GjrHBHVlnD1A0TUO","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a7IuuH7NO9dhYTM3687Jd","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"307tNL0P2XPRLyTUXyl2u","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M2VFiQ7DlGL8a64uyZ7c9","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this srite (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n7VxkTswEehShFxlyQ_3m","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"b8p9Q5O79oBFYtsL8gSb_","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"9s9K6gw0mRg6qTtAiZKQY","name":"UITextButton","brief":"","type":"ClassDoc","description":"

              This is a basic base text button which you can use in your Game UI.

              ","params":[],"returns":[],"extends":["UIBaseElement"],"implements":[],"members":[{"id":"GXFtTPPFS6YWCbX8O91M6","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xoNV9_rbhwGMtOuM2KDxi","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zqFD3pY8j_1mMr0BxUnHu","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_43M1-8Dma8-1-7V1Axya","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xmuMqA-V3i04uGkrdVwKM","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children z index should automatically be managed by the parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XTMpiOvqvgWyfwa4PpCbB","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children list should be automatically sorted when adding a new child

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1k4H_jLh4mN9bnHPHBvf7","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fsu8FGFWeMRBvd2fdBGAz","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a background color for this container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yDvhhVcIvZV26Ke4BOoOP","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The key to bind the action to

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zWnfDLs2bz4nknnkgMdNj","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the bitmapText used by the UITextButton class

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nYXQRa7mJwaN41UuHuQLK","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3SYyqUecFWSy087lEovsB","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SjdltlmSBweXBm0y9H_BF","name":"borderStrokeColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The css value of a color to be used to draw the border

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2nUME8nMzNffP9oalJsQ3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BDgni-2h_8myo_Fszopw4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f1pQGYC4dbeJFe1kO_SEc","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TTsZCIsZB827xHBX6tSRu","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container draw operation should clip his children to its own bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-kRJGafdefQ31_oMZwjBJ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4v2J2eTHKEOs_NPFuBJ-","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uHckj3kiO0Kgw3rD7mvad","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zoNu6saV7XtusLwyk4wrT","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

              UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cFOqWMI41gaqqpWhM0orF","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kF0lk23ZBeQckRzz_U258","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iT14cBZi0Cm2Ts9xIU-HZ","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

              Tap and hold threshold timeout in ms

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LroL3nZcOHiHcwGc_bAsR","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if the pointer is over the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P1QGiws7j1nQ-H-2DD0vR","name":"hoverOffColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The css value of a color to be used if the pointer is nothovering over the button

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nXKTI3xWzzhth-2MvkMzk","name":"hoverOnColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The css value of a color to be used if the pointer hovers over the button

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wGr3lvjXAIHqEXcQxN-lF","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3mNwu1eSAfrpUoAki2ywN","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              object can be clicked or not

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qOcl8pcbwCRjnl_WCowev","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c2zxkA-7rvEOulbGrU9eJ","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              object can be clicked or not

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ugXSfihUBoOPBaI5RKzp","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QX0Gb-om4y1p7di8ulpYU","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UBs7n85TlUpiBgvcKiMh-","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AjhCkvLTUgumtWeBofHS2","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              object can be tap and hold

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ycYd4asRLGtZqLxUL7cDC","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-xA204NLomrS-8gVDwp6k","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NSkjRuBnLBVq3ndCfwjRR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iLa7x27BwtoqD253BZZCP","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FT8vbA016DpUmlC-0UGc4","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s78GS42q5wX_HIVY_zA-8","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vy4Da2nAZD2_tB-umcfyJ","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BAuqR7tDwmHI-18WYDBCC","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fjpEsnKiyF-R5Dwn4yWcN","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_1UYKKXufy1SlSE6hrxzm","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              false if the pointer is down, or true when the pointer status is up

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cwkTIdg9OhpzjcwzMtZZq","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sLg7Utov7DZTmAUB0o1S6","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              whether the container is the root of the scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fLHFe_bGHFqBP8Xkqt1DG","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HkyhvMl9T7GlbKajVWerL","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OoTS-m6okkncIcj0UljeY","name":"textAlign","brief":"","access":"public","defaultValue":"\"center\"","scope":"instance","type":"PropertyDoc","description":"

              Set the default text alignment (or justification),
              \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUH2v-XuSi_NN1N_yZ0XX","name":"textBaseline","brief":"","access":"public","defaultValue":"\"middle\"","scope":"instance","type":"PropertyDoc","description":"

              Set the text baseline (e.g. the Y-coordinate for the draw operation),
              \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oyq2TYrWhD84w9Kd0go09","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c5iMnMzLACIrzw85DZlXz","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E5JDT2bfcvypGYRu_lxeQ","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gq6wPl9-TIcSIKf4ELh1p","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gTPl6JbFsDfdqmCCEN0NF","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jiZ0LkMWmv_yx_l8JT_yr","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container
              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

              forces the z index of the child to the specified value

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FDCCxartOfAGYP2Y3iFOW","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container at the specified index
              \n(the list won't be sorted after insertion)

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

              The index at which to insert the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ULDPWnaZNKGv7m91_BIu5","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UmDWKG1zgzN4wQavXchnJ","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z-AWGQOSPsg_LwKYZf8Tw","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"93J1LvFmNd4VAqkwRSQBs","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a new Button\n class PlayButton extends UITextButton {\n constructor(x,y) {\n super(x,y, {\n font: 'my-font',\n text: 'Play',\n // if you omit the next two, size is calculated by the size of the text\n borderWidth: 200,\n borderHeight: 20,\n backgroundColor: '#00aa0080',\n hoverColor: '#00ff00ff'\n });\n }\n\n onClick(){\n state.change(state.PLAY);\n }\n }\n\n world.addChild(new PlayButton(15,200));"}],"scope":"instance","type":"MethodDoc","description":"

              A Bitmap Text Button with an outlined background border, filled with background color.\nIt uses a RoundRect as background a...","params":[{"identifier":"x","optional":false,"description":"

              x pos of the button

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y pos of the button

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.font","optional":true,"description":"

              The name of the BitmapText font to use

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"default":"1","description":"

              The scale factor of the BitmapText

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

              The text to display

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.bindKey","optional":true,"description":"

              The key to bind the action to (default: none)

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOffColor","optional":true,"default":"\"#00aa0080\"","description":"

              The css value of a color to be used if the pointer is not hovering over the button

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOnColor","optional":true,"default":"\"#00ff00ff\"","description":"

              The css value of a color to be used if the pointer hovers over the button

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderStrokeColor","optional":true,"default":"\"#000000\"","description":"

              The css value of a color to be used to draw the border

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.fillStyle","optional":true,"description":"

              The css value of a tint color to be used to tint the BitmapText

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textAlign","optional":true,"default":"\"center\"","description":"

              horizontal text alignment

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"middle\"","description":"

              the text baseline

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderWidth","optional":true,"description":"

              Width of the button

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.borderHeight","optional":true,"description":"

              Height of the button

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CyMf8nyO9JyzEn9IHdI1z","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SJMsoaIvlrhKWWwhWFxzl","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1y5HFXToQ43D3-HVnsGDq","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B4MdEjOMNYMvx4eEEBDN9","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7OJHRjPleVskNn8LMhfE2","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h_2a3BrPS5rwLtCAroGpe","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bwMTF7mBk00OyfTIoMoMC","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

              The forEach() method executes a provided function once per child element.
              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

              fnction to execute on each element

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

              value to use as this(i.e reference Object) when executing callback.

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"ALtoqHyi9O90vZi1EHMOP","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LJpkQnJIpJLRWMR2gD_G2","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sfSDa7KQBgG4Ltyh7caHC","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the Child at the specified index

              ","params":[{"identifier":"index","optional":false,"description":"

              The index of the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the child at the specified index

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SV80gon6E1Mz662foPJtA","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the specified GUID
              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

              child GUID

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              corresponding child or null

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NY4SCAOBBHuCW9c60kVzi","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified name
              \nas defined in Tiled (Name field of the Object Properties)
              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

              child name

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"kIMLWsGc-CQcsnfufCgIV","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the given property and value.
              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

              Property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              Value of the property

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of childs

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"omKL9JnqKadeLT5fKvOwb","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified class type

              ","params":[{"identifier":"classType","optional":false,"description":"

              Class type

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"cfbPJejPvjEluyrOHPIOP","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the index of the given Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W_OEeHuqAk1gIfWelNMSO","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              return all child in this container

              ","params":[],"returns":[{"description":"

              an array of renderable object

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"r21OmKEPjwBUTxDr7y78V","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"qQxrFprtuqPs-axV7R7-w","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the next child within the container or undefined if none

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0VPpkL8Osz8KtQrm_jqHT","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-V2CZlVIIaTcLxPCF_yWc","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the instance of the root container (i.e. the current application World container).

              ","params":[],"returns":[{"description":"

              root container

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UfSx72r70cFxt8b8uNlRr","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if contains the specified Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VL9N5eYxjpOOPl3uar_E9","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

              Checks if this container is root or if it's attached to the root container.

              ","params":[],"returns":[{"description":"

              true if this container is root or if it's attached to the root container

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QkUqxV1Did4DkmbZcD6as","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UGkcFJ6fa8h7SXO7RcWk8","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ea6yXWyBdZi5J-ad14NSG","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-9TBD8nyGj_k_Dx3pWvkn","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step backward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"7LoW7JnqJB_wKtaMpxjS6","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child the bottom (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"vCTSt5Jvb0_6bfj1M1OGN","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child to the top(z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"cqaI_4vnaaoHW3rPI5ceb","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step forward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"KsCHV69PQ1T6IJZ1JHEAK","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

              a callback to be extended, triggered after a child has been added or removed

              ","params":[{"identifier":"index","optional":false,"description":"

              added or removed child index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EKAAlCt5HA82wVRYPHtDs","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed (to be extended)

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NaBnQA9HpXiweQ5gFodRQ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kFow6JpF01A3Z9ch9hQ7X","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qdXakf7YrI-TZiqeCH7F9","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and held
              \nto be extended

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dVEsEDvStsRtPv0JZLX9F","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is moved over the object

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WMh1YBj64kEBj71DlhntQ","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is leaving the object area

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eNO4ymr4xi3bxfrcm2t_5","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the pointer is over the object

              ","params":[{"identifier":"event","optional":false,"description":"

              the event object

              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OE9JBWIkD0nhr4wEeSgkB","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

              function called when the object is pressed and released (to be extended)

              ","params":[],"returns":[{"description":"

              return false if we need to stop propagating the event

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YM3Q9jtexVwbiBb6NqDMC","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Vp8xaaQmlj3LXCQadiRqi","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ao71M3TkyAHNXrHPRJTee","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"kcz5G5UmzlCslw3B8nNm0","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QKpa-5B1omS8O0snwDj6y","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

              true to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"SmTXCWCsCKqIZkhdRSse6","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

              Removes (and optionally destroys) a child from the container.
              \n(removal is immediate and unconditional)
              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

              True to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"LnDM25asGaztQmYQdTLlY","name":"reset","brief":"

              reset the container, removing all childrens, and reseting transforms.

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2s470oCD6PeW_kmMrV9tz","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d1_Xqqjh2D_p-MVekKWWW","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ps8mGiade5phVbmeNLp-C","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k6P_sQ0XF2vzNSSHfp1FF","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9y9VMybkkGhigr94cIXf8","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

              Automatically set the specified property of all childs to the given value

              ","params":[{"identifier":"prop","optional":false,"description":"

              property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              property value

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively apply the value to child containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"grg_p5VVwjnswXHflm7o0","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hj1pVmh1RTkCUvz5o0eG_","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tx_-SJ22A3i2Ybmirx5RX","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QhiRNIWElRwaz7DsPPcYA","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yuIji7TkfwLNXrA-9VaqQ","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

              Manually trigger the sort of all the childs in the container

              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively sort all containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-EjXE0we-5_AHT8B7n_Z3","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              Swaps the position (z-index) of 2 children

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"I5O19_BFIn2FU1NEzsT9o","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SmIXpVGdjCdzOG_Uy1xEw","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ysDNZXANasOnpMaMXQPY4","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3WkbwBYY_hyizWDlU6xOC","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YL4aLxog7qk6rR3fJScZo","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zv4QJo4WAwEtxkEDLWPrb","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zb63iCNj0gZh-9uvIWvWO","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this container.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this container bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TOUe52U_pnoA5vPJG42jT","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this renderable (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kRsVGpF6SUvUH5lq9K9QQ","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              container update function.
              \nautomatically called by the application update loop {@link Application}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Container is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oTJfBLe3Dai_zHQ92uZah","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"oQgaLGd02qRxaxf5c9Ii9","name":"Vector2d","brief":"","type":"ClassDoc","description":"

              a generic 2D Vector Object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"oXW4RyUqPSyXzaHdD47p5","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

              x value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"alcZSosFGR5O5ET_1IRlB","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

              y value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Kg3pky5PRqMPxZrDj0f7y","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector values to absolute values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Um2vL6hnAzKGYAIhrCwki","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2F8KdViDRqpH1jwipIpc8","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bVUnV7ZnCAexV00gJgyN0","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L63oFpQXjAHy8GY3xwu4t","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bJGo53zTVBSFaAds1hzVB","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp the vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C_F78egYaxw1gE55xRiQ-","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp this vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MGB6sER_VSiiS2OfAA6oH","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a clone copy of this vector

              ","params":[],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PgYpaNnvtTeO1HMsEGIkk","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"P8mHLP0VXlVJNt6_Js8a-","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copy the x,y values of the passed vector to this one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2zujB_h1zKe7yCEocmcVg","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the cross product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              The cross product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O48TE6jv8ERKswrxJKWiM","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dSCzY1GA4fUuhOJAXyB9Z","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

              Divide this vector values by the passed value

              ","params":[{"identifier":"n","optional":false,"description":"

              the value to divide the vector by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dKOEat_EOVQX1DPZTubnK","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the dot product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              The dot product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KrIvYJzl716Lksj4fILGQ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if this vector is equal to the given values or vector

              ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tXIoiAe7w6_SQzai2-PQP","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iFt5-KKLDW1NMgQ5GowPr","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u69gHw5SR-_vgwWmVLWT9","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the length (magnitude) of this vector

              ","params":[],"returns":[{"description":"

              the length of this vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sqosy0cy1T0nFEyQz0hu_","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the square length of this vector

              ","params":[],"returns":[{"description":"

              The length^2 of this vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TLvoVG0QjOs8foUbhIdiR","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Linearly interpolate between this vector and the given one.

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uz6jRXB7VEzBp239M-rtE","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the maximum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EWok9eCPhiQNn29ww-sa_","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the minimum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zQybvE61EdmJsyZ5SB-IL","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

              interpolate the position of this vector towards the given one by the given maximum step.

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"step","optional":false,"description":"

              the maximum step per iteration (Negative values will push the vector away from the target)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WelwQmZxEhz4zs0_mU__Y","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NT5ErY8S5zjYkUg9Mwhl3","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iHD82P1reG6gjx3wCnoXO","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

              normalize this vector (scale the vector so that its magnitude is 1)

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2TkU3gXnfpQjRaEXXNvfR","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

              change this vector to be perpendicular to what it was before.
              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YYaBjISpTxOL-WCkltGW-","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

              project this vector on to another vector.

              ","params":[{"identifier":"v","optional":false,"description":"

              The vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lpljEenKiLW0py2aCeSMO","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

              Project this vector onto a vector of unit length.
              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

              The unit vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TkKWOSCwm18vpqO1XPLaX","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this vector (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QsukAM6E6nQ1H1qWMeH5R","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the given scalar

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zVt7HBy6thNuyYgnMljrf","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wfLDDWieiKbLw1FU-tVu2","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to the given values

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NfQq4Fcd7jzOQgK0GjvbP","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties using the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x3RjzeRrtZ4EOvsiNPdlL","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to 0

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2GBf_6KNJYHGQ29SYBicq","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

              Substract the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yKw8v4G7s6VmVt_LaV1E2","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into 2d coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ztOtsujh_0HPm_fhBt1ts","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into isometric coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DyWuor5mCLbJT5UqxCXzm","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"QxMqmdUHP0-nl5JqOzMsm","name":"Vector3d","brief":"","type":"ClassDoc","description":"

              a generic 3D Vector Object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"whucDJnLxNxG3lAsP2-BT","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

              x value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lmejnqs3-_67KHXp8josE","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

              y value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrdjWiZ96U-r5b1qNJfS_","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

              z value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tLNsniefH6Ps5LDoVBGXf","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector values to absolute values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iSaNvHN7jcaT1UkhrzjUQ","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nAZuIraahWKFwweDZNyku","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BjAM0Pt-M6fMtkpO2GzCk","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NY1Obsr_8xTtHkcgwQr9b","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s3xMSKI-qnBVnf6fBUfZu","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp the vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VGeotU_N97fF7wjXmEZGz","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp this vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hRBmf6WK7I2uN14XT7N5y","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a clone copy of this vector

              ","params":[],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kBC8mAo2SQXvKEnxwDray","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

              z value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_NjkcjYklKdr34qomBp0y","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copy the components of the given vector into this one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WP7HPpLlEHYodDYwv6MW2","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

              calculate the cross product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qil8dCwAFU49V1w9O2re4","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dmfGDn9MZfkP1uQUA3p85","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

              Divide this vector values by the passed value

              ","params":[{"identifier":"n","optional":false,"description":"

              the value to divide the vector by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1xiHXYrsJdLJVrwCe_8vh","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the dot product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              The dot product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TBf8qHqKFwykCMx1IJLau","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if this vector is equal to the given values or vector

              ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4QnOaFMn23v5EFFhgFyx_","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dwUvyWfBPEjopBV25jXBR","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r5ie2kIpXQmfVoZhdYLaI","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the length (magnitude) of this vector

              ","params":[],"returns":[{"description":"

              the length of this vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dQoZ4hCBZoLTT1cDtMirD","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the square length of this vector

              ","params":[],"returns":[{"description":"

              The length^2 of this vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PhWhxL9x-r_OIuhECkA1d","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Linearly interpolate between this vector and the given one.

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-SJKchXMyb9FaSfw_hyKA","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the maximum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HI4ovoRr7tZVc5ghu-leD","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the minimum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i3wH0mJ-clIx_ReRVLSxi","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

              interpolate the position of this vector on the x and y axis towards the given one by the given maximum step.

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

              the maximum step per iteration (Negative values will push the vector away from the target)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"adV1xnqrb6LP8lCBvW15a","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate the vector values

              ","params":[],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2QaOEg1GIq0S9ItFsAq0q","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D6z-emS7qWacTDwIwAAus","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

              normalize this vector (scale the vector so that its magnitude is 1)

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m-STM0z3G0-SDKCsRT3UI","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

              change this vector to be perpendicular to what it was before.
              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qRyOw0GMLCmEpW7crgAfE","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

              project this vector on to another vector.

              ","params":[{"identifier":"v","optional":false,"description":"

              The vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hx9V8AJEJpp7gAKY8pm7s","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

              Project this vector onto a vector of unit length.
              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

              The unit vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5lAEqfM3E_H1Ql8CLK-Gl","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this vector (counter-clockwise) by the specified angle (in radians) around the z axis

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around (on the same z axis)

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lu0pnAL-iBleDM6klXcD_","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the given scalar

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1Iop94OU_rPqDu1YcBXv3","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Py5wzdQVCILBIhP4iZVXS","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to the given values

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uMTEo-A0JX0GTDsPNjinP","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties using the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HTkJiNDE7ZOR3wZcYSzMb","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to 0

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VqI-4H8UoMZ-ifoR7PYui","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

              Substract the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U4MpOeS7QPBLCDGfeBDXS","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into 2d coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Dzep_B6AJtt1pbNJ7r1qT","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into isometric coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YoJtk2pkbl5KMhbYXY3Ho","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"nsj7HKr6s9NPdvFnPHFdp","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

              a WebGL renderer object

              ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"8V93cVEQhhP60FffZBno7","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The list of active compositors

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mqSXhOGNPMA4807WyFBQh","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The current compositor used by the renderer

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ekCA9qmgDMhkBINqGOqOQ","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

              a reference to the current shader program used by the renderer

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cvQXRZGuWG_6X2KJ-izVM","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The current transformation matrix used for transformations on the overall scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4bJMyw5h4ZgzWHgevj27W","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

              the default method to sort object ("sorting", "z-buffer")

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"otvC63MSQ3vY49-3a4rJ2","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              the requested video size ratio

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cvHXJwZoSMNc3VDzyF0cc","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The WebGL context

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zqbHlGTCclZwAdeK3QlaS","name":"GPURenderer","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

              The renderer string of the underlying graphics driver.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eFvS44nWSs_r5_4XBhAIW","name":"GPUVendor","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

              The vendor string of the underlying graphics driver.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fpvxr6M0nmyT1vvXbkzfJ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the height of the canvas which this renderer draws to

              ","params":[],"returns":[{"description":"

              height of the system Canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lwmf7xwywJBZIaRLq5fG9","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              true if the current rendering context is valid

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TDserbCqlh6SncX8hGoP8","name":"maxTextures","brief":"","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

              Maximum number of texture unit supported under the current context

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xbmxK4o09pg5bkDhcLU4j","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The Path2D instance used by the renderer to draw primitives

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6avfWn02x9Ux475RoMOhO","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The renderer renderTarget

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j7Bte3Bkb_iCc-wQbVwYQ","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

              the scaling ratio to be applied to the main canvas

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V15cV6lfE-rmb5_07xBD-","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The given constructor options

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FSz8kK-SyLjJDBGHNM13O","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

              The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"COSj72Pwa6TnefqFw5sak","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the vertex buffer used by this WebGL Renderer

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YTbYL8_IR8UwpEn3lsuLf","name":"WebGLVersion","brief":"","defaultValue":"1","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

              The WebGL version used by this renderer (1 or 2)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CXwEIq2Wh70wLe0D25KGe","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the width of the canvas which this renderer draws to

              ","params":[],"returns":[{"description":"

              width of the system Canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DOrPUuMaEpFr-2U4EhG-g","name":"addCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

              add a new compositor to this renderer

              ","params":[{"identifier":"compositor","optional":false,"description":"

              a compositor instance

              ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":false,"default":"\"default\"","description":"

              a name uniquely identifying this compositor

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"activate","optional":true,"default":"false","description":"

              true if the given compositor should be set as the active one

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"yyqmPYPBa9mIxsL_LurTw","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

              starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u0-L4nwQm_uZ4ZcLYk9k3","name":"clear","brief":"

              Clear the frame buffer

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8n_AEdBAnXCo8dF6Z7yGZ","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clears the gl context with the given color.

              ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

              CSS color.

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

              Allow transparency [default] or clear the surface completely [true]

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"bqvQfg6_ON8ZG-cnzPkIs","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

              disable (remove) the rendering mask set through setMask.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1zG2ZFnu_0AOupAxGEstF","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

              ","params":[{"identifier":"x","optional":false,"description":"

              x axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The rectangle's width.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The rectangle's height.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vfamchUkgwWBqXMSjLIq5","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

              clear the rendering tint set through setTint.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JxVMvWTcKbB45tKOCXVNG","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"description":"

              x axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              the width of the rectangle to start clipping from.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the height of the rectangle to start clipping from.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YMhf3okRjowKBfpOAComb","name":"closePath","brief":"

              add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1KpcMfyV1A6isMm_a874-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

              optional parameters for the renderer

              ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HYqO5SlybBA2IiEMkiO6p","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

              Create a pattern with the specified repetition

              ","params":[{"identifier":"image","optional":false,"description":"

              Source image to be used as the pattern's image

              ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

              Define how the pattern should be repeated

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              the patterned texture created

              ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-JzgafWH9AwXAGSMY_bXU","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

              Draw an image to the gl context

              ","params":[{"identifier":"image","optional":false,"description":"

              An element to draw into the context.

              ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

              The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

              The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

              The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

              The height of the sub-rectangle of the source image to draw into the destination context.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

              The X coordinate in the destination canvas at which to place the top-left corner of the source image.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

              The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

              The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

              The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CfrIcCY1h2ZkUHPD1QH_r","name":"drawPattern","brief":"","scope":"instance","see":["WebGLRenderer#createPattern"],"type":"MethodDoc","description":"

              Draw a pattern within the given rectangle.

              ","params":[{"identifier":"pattern","optional":false,"description":"

              Pattern object

              ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              x position where to draw the pattern

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y position where to draw the pattern

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              width of the pattern

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              height of the pattern

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4P4rM5EKWPab-iuN6h9Ju","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

              fill the given shape or the current defined path

              ","params":[{"identifier":"shape","optional":true,"description":"

              a shape object to fill

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"fraHjwidiG2L0wXQs7Hzd","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Fill an arc at the specified coordinates with given radius, start and end points

              ","params":[{"identifier":"x","optional":false,"description":"

              arc center point x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              arc center point y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              arc radius

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

              start angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

              end angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

              draw arc anti-clockwise

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"GZymcPzDjmwyxPRa6hGTL","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

              Fill an ellipse at the specified coordinates with given radius

              ","params":[{"identifier":"x","optional":false,"description":"

              ellipse center point x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              ellipse center point y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              horizontal radius of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              vertical radius of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FRiLb8lSshDZcQp7AfZHw","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

              Fill a line of the given two points

              ","params":[{"identifier":"startX","optional":false,"description":"

              the start x coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

              the start y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

              the end x coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

              the end y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CvIkydz3rNhuo1uVCjoXq","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

              Draw a a point at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              x axis of the coordinate for the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y axis of the coordinate for the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3FttDy5nStM7Lg4Yo5d__","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Fill a me.Polygon on the screen

              ","params":[{"identifier":"poly","optional":false,"description":"

              the shape to draw

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"x_2e9I2RxtbTvur4wbpT4","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              Draw a filled rectangle at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              x axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The rectangle's width.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The rectangle's height.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m72XVYZRoFgt9gZAlpf4i","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              Draw a rounded filled rectangle at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              x axis of the coordinate for the rounded rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y axis of the coordinate for the rounded rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The rounded rectangle's width.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The rounded rectangle's height.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              The rounded corner's radius.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AVPMv36JsXgQ1w-KBCDux","name":"flush","brief":"

              Flush the compositor to the frame buffer

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PRU23DYOqmZO1TcCrQAam","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the current blend mode for this renderer

              ","params":[],"returns":[{"description":"

              blend mode

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"yACleDathN8Oc65Q_76mz","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a reference to the current render target corresponding canvas which this renderer draws to

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hGl_JwevIm7RALiDxy3HV","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the current fill & stroke style color.

              ","params":[],"returns":[{"description":"

              current global color

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i0PFcxCRgIcquMGAc7Q_6","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the WebGLContext instance for the renderer\nreturn a reference to the system 2d Context

              ","params":[],"returns":[{"description":"

              the current WebGL context

              ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A1cKgcaKDvueRnetQdrNo","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return the global alpha

              ","params":[],"returns":[{"description":"

              global alpha value

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nNPRZcVp6KHRkmFMAE_Fo","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

              return a reference to the screen canvas

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_j5nsOOyp6akOwcH4VBaO","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

              return a reference to the screen canvas corresponding 2d Context
              \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MPAB2uMLSslMwF_dEkLLN","name":"getSupportedCompressedTextureFormats","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the list of supported compressed texture formats

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"extends":[],"implements":[]},{"id":"ilNwE-j29WBJWjtdKJZf-","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current global alpha

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bR20sf7cIykJ4tTJ-7qov","name":"hasSupportedCompressedFormats","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the given compressed texture format is supported

              ","params":[{"identifier":"format","optional":false,"dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}}],"returns":[{}],"extends":[],"implements":[]},{"id":"1YMDijgCYUW_s5McplKbI","name":"lineTo","brief":"

              adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

              ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"Qa4Bnj_wPE4NvlKHgangy","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              begins a new sub-path at the point specified by the given (x, y) coordinates.

              ","params":[{"identifier":"x","optional":false,"description":"

              The x axis of the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y axis of the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tGYoyaWU98KP2Ix25qRMO","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if the given rect or bounds overlaps with the renderer screen coordinates

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FxhLWEK8G1K4SQrIKs1GJ","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

              creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

              ","params":[{"identifier":"x","optional":false,"description":"

              The x axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The rectangle's width.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The rectangle's height.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tBE5XXu6LWG6KiTjfFiZn","name":"reset","brief":"

              Reset context state

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z7zVOsnXPfVFF77Caj28q","name":"resetTransform","brief":"

              Reset the gl transform to identity

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tsDgq9Jm40RAvdHIOcpJE","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resizes the system canvas

              ","params":[{"identifier":"width","optional":false,"description":"

              new width of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              new height of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LY71a46M0cKVSV_4nmXbu","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

              restores the most recently saved renderer state by popping the top entry in the drawing state stack

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R1N4PDThY7HHNghXNiiHw","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

              adds a rotation to the transformation matrix.

              ","params":[{"identifier":"angle","optional":false,"description":"

              the rotation angle, clockwise in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1-A1yJBC7gIxy-yQ9xJuH","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a rounded rectangle to the current path.

              ","params":[{"identifier":"x","optional":false,"description":"

              The x axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y axis of the coordinate for the rectangle starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The rectangle's width.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The rectangle's height.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              The corner radius.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"q-0flxxmd1ZeRIaOhT5pg","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

              saves the entire state of the renderer by pushing the current state onto a stack.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ahFKlWV62ZHwOcjKW37Hq","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a scaling transformation to the renderer units horizontally and/or vertically

              ","params":[{"identifier":"x","optional":false,"description":"

              Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"diF9ONBxRjYrfG2lJ0Jui","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

              enable/disable image smoothing (scaling interpolation) for the current render target

              ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"aaJwC5oqUEeM-pGp_-cQ9","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

              set a blend mode for the given context.
              \nSupported blend mode between Canvas and WebGL remderer :

              \n
                \n
              • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                blend mode : "normal", "multiply", "lighter", "additive", "screen"

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"gl","optional":true,"description":"

                a WebGL context

                ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FhyRolm9eNO_bI7yP2KuY","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                ","params":[{"identifier":"color","optional":false,"description":"

                css color string.

                ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"PDqXgz456X1df81W_IUaI","name":"setCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the active compositor for this renderer

                ","params":[{"identifier":"name","optional":false,"default":"\"default\"","description":"

                a compositor name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"shader","optional":true,"description":"

                an optional shader program to be used, instead of the default one, when activating the compositor

                ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                an instance to the current active compositor

                ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TWHGmq3gnP2cwwRMrFUOy","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                Set the global alpha

                ","params":[{"identifier":"alpha","optional":false,"description":"

                0.0 to 1.0 values accepted.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-kAza4LSZhKDsvqfigRmZ","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                Set the line width

                ","params":[{"identifier":"width","optional":false,"description":"

                Line width

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"K8ZZ8KyW5vwZEHChZIufV","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                a shape defining the mask to be applied

                ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                either the given shape should define what is visible (default) or the opposite

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"w_ZdGmsGenFJ3TvLg8Wwa","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                set/change the current projection matrix (WebGL only)

                ","params":[{"identifier":"matrix","optional":false,"description":"

                the new projection matrix

                ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"swhvRjOWooY9e9FdXcQL7","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                set a coloring tint for sprite based renderables

                ","params":[{"identifier":"tint","optional":false,"description":"

                the tint color

                ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                an alpha value to be applied to the tint

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-cQ_dq7qWDNuU9JSVooEj","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                ","params":[{"identifier":"a","optional":false,"description":"

                a matrix2d to transform by, or a the a component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                the b component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                the c component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                the d component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                the e component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                the f component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ERK1fcoXirYIPtvup_YQv","name":"setViewport","brief":"","scope":"instance","type":"MethodDoc","description":"

                Sets the WebGL viewport, which specifies the affine transformation of x and y from normalized device coordinates to window...","params":[{"identifier":"x ","optional":true,"default":" 0","description":"

                x the horizontal coordinate for the lower left corner of the viewport origin

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y ","optional":true,"default":" 0","description":"

                y the vertical coordinate for the lower left corner of the viewport origin

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w ","optional":true,"default":" width of the canvas","description":"

                the width of viewport

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h ","optional":true,"default":" height of the canvas","description":"

                the height of viewport

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zfOvQBdBNGjbzbBM8uMlM","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                stroke the given shape or the current defined path

                ","params":[{"identifier":"shape","optional":true,"description":"

                a shape object to stroke

                ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"QURtDtuYf3xokxkf6YJ9e","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke an arc at the specified coordinates with given radius, start and end points

                ","params":[{"identifier":"x","optional":false,"description":"

                arc center point x-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                arc center point y-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                arc radius

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                start angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                end angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                draw arc anti-clockwise

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                also fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"4c8vqncmFQ28hzVK_zuj_","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke an ellipse at the specified coordinates with given radius

                ","params":[{"identifier":"x","optional":false,"description":"

                ellipse center point x-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                ellipse center point y-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                horizontal radius of the ellipse

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                vertical radius of the ellipse

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                also fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"8Lknvl2CYGwpURmtgiUA7","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke a line of the given two points

                ","params":[{"identifier":"startX","optional":false,"description":"

                the start x coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                the start y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                the end x coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                the end y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Il8z4oQRqqyQiP2zP8FXs","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke a Point at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CPd1yE5qX1qRUgMI823Tg","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke a me.Polygon on the screen with a specified color

                ","params":[{"identifier":"poly","optional":false,"description":"

                the shape to draw

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                also fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"l9l_KENNcponHjogsaNEP","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                Draw a stroke rectangle at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                also fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CXQaCmXTKC0sbrSxzuRiO","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                Stroke a rounded rectangle at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the rounded rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the rounded rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rounded rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rounded rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                The rounded corner's radius.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                also fill the shape with the current color if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"n6azCo-B7zbjx8HWqF-DK","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                tint the given image or canvas using the given color

                ","params":[{"identifier":"src","optional":false,"description":"

                the source image to be tinted

                ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                the color that will be used to tint the image

                ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                the composition mode used to tint the image

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                a new canvas or offscreencanvas (if supported) element representing the tinted image

                ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"AWkUkqbC8m8qC6byNrh3k","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                creates a Blob object representing the last rendered frame

                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                A string indicating the image format

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                A Promise returning a Blob object representing the last rendered frame

                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s9Bl2Ku-abnBxYz8Zag_5","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                returns a data URL containing a representation of the last frame rendered

                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                A string indicating the image format

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                A Promise returning a string containing the requested data URL.

                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sszt0mDhd3vKekHWAUip5","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                A string indicating the image format

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                A Promise returning an ImageBitmap.

                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UXSkWuxSLzHfx7mIkAamj","name":"transform","brief":"","scope":"instance","see":["{@link WebGLRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                Multiply given matrix into the renderer tranformation matrix

                ","params":[{"identifier":"a","optional":false,"description":"

                a matrix2d to transform by, or a the a component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                the b component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                the c component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                the d component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                the e component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                the f component to multiply the current matrix by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DaPBvY82Wd4CL-wPNlMEd","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                adds a translation transformation to the current matrix.

                ","params":[{"identifier":"x","optional":false,"description":"

                Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Distance to move in the vertical direction. Positive values are down, and negative are up.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"MHCZoh0EEVzGeFZ0cEqtX","name":"World","brief":"","type":"ClassDoc","description":"

                an object representing the physic world, and responsible for managing and updating all childs and physics

                ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"0nC5bm3guDezaPZXyKVqQ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2tiNrHGE0EINynohnfegF","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pp_ClNGqaTjmNGBjb2Kk3","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4dvwkfXjE2dgXR-pgaFJy","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Id9dVfMkuCCo6P4ta1MJ_","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the application (game) this physic world belong to

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"11_d78pZ6bBLCKQyKg_7G","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children z index should automatically be managed by the parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L5A1-rGoOSphGa2Jingxu","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children list should be automatically sorted when adding a new child

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p3ULAKtF8kSCKg6J_bTBy","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_iBmlO0tI4NFRwgKL1VCR","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a background color for this container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VZEU7fGO1UV31SKusIl8k","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u9C66_UAauQqappA8AG2c","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the active physic bodies in this simulation

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Go1905P8HCe-AkQFeU1ey","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5oOooLExDoIoIBawaOw3O","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H7c65pztI9TUrUOMebbtk","name":"broadphase","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the instance of the game world quadtree used for broadphase (used by the builtin physic and pointer event implementation)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AkRf3lFySY6ZY_KfshTtk","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Milz41WZDOYfLBR6_FNgi","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rDE_bWOiHRn1qutxv9_PU","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container draw operation should clip his children to its own bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BTP47J46GpBJRH8zs0NoU","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O-Kk5qMSgvY00aDyM9iuH","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"13f-1PE-Snum_hp1mgP-p","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the collision detector instance used by this world instance

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z_3noFCyYKPe21oSpnuyX","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3fTPLOmuRgy154QGT19Es","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0p5I642ZD1kOEwUbn6Bzf","name":"fps","brief":"","defaultValue":"60","scope":"instance","see":["timer.maxfps"],"type":"PropertyDoc","description":"

                the rate at which the game world is updated,\nmay be greater than or lower than the display fps

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"78-NZEHME4kOHHVcW5PBU","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

                world gravity

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4FSVFg2fNqbCEo8rE0ZBt","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ih6ux9QJ1r76ecq_mmyXs","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qlmG8Bwyj4yPZl2N3i8Qc","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aHQV1K2PsaVu_m6mDE_gB","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UpVT8_aJo2KXV6ethLSGL","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CPQl2086ZzrJhOoPn0EVa","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tK4pKoTPbvhBsy7mlyezR","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GXscGqsptWwlBwKuIOpjq","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i9mg5yUj-Zh15jtyTw_GB","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VeqvwxrcZDa32CQjrge1Z","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o8-vRDIkfS4EwgAwobzuB","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aX2LEUN0Qizb6uRyh0D6i","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UUPqk6lDN8CY4HWEG5cE0","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-izBh4nLOxZF2DHML2fW3","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ryeYj3G9NIXGbNhEqZvee","name":"physic","brief":"","defaultValue":"\"builtin\"","examples":[{"caption":"","code":"// disable builtin physic\nme.game.world.physic = \"none\";"}],"scope":"instance","see":["Application.Settings.physic"],"type":"PropertyDoc","description":"

                the physic engine used by melonJS

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1mktAhSGB5Mckt7cQvYDs","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-0SpJQxF4lTVvRmpt0Imj","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zDGS1g4wjvoodvgRYmSzc","name":"preRender","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Enabled pre-rendering for all tile layers.
                \nIf false layers are rendered dynamically, if true layers are first fully r...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sidkbXerwK2tJUhbVIcoz","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6OWE6smTijXsb5P6dWIiS","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                whether the container is the root of the scene

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIxiOpETvJDFQS9KIfq9X","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hYAG-XyCpj3toGmv_jtWP","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PwFPKwflpEYjsWYTkoraa","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DWyFzNXaEmIKWTdgZPLBg","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Abv34WGmt1F8xuGL9MhqL","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kFETaozc14MGA9SBICfxD","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"As_5UBHQ3WR-K3jxG6UNV","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zPzj2g-GjJ3L9FlTcesae","name":"addBody","brief":"","scope":"instance","see":["Container.addChild"],"type":"MethodDoc","description":"

                Add a physic body to the game world

                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                this game world

                ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j2RQvaWMH_dQacSDUw_Dh","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container
                \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                forces the z index of the child to the specified value

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DoofMrNyfMkvDnnrOt900","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container at the specified index
                \n(the list won't be sorted after insertion)

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                The index at which to insert the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4fGbm_tKzqORFFiJm-YnG","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DKx4tFQYWR0IF-W1tD00w","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x8l6KXCQBZ6Z16suSD_XF","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wCS7jMhA3DkhZ-4cwgKT-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                position of the container (accessible via the inherited pos.x property)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                position of the container (accessible via the inherited pos.y property)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                width of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                height of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CtIPdm5ghcd6dyzKEsXgz","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aL86bLhbxmmKD1S053AfJ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kSbHDgrzaiJVbSCSccic6","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jA3pignTnJbSWFo5lGMJe","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1dhkY-CsBPJyFe6vTph3t","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DZXHyrmp8_27IugR-zIIW","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6ncO_LSRiBHm6bfUqMTtx","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                The forEach() method executes a provided function once per child element.
                \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                fnction to execute on each element

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                value to use as this(i.e reference Object) when executing callback.

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Upd_sBGNW08568vaUp_Ij","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i4gOdHlGwPDOuNcH26NUO","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rXqnTZu8w3dI4SIoO1dX0","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the Child at the specified index

                ","params":[{"identifier":"index","optional":false,"description":"

                The index of the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the child at the specified index

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hbKwmiScy3WzEwAvNMujU","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the specified GUID
                \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                child GUID

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                corresponding child or null

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4vG-5obCDMejxYEjBTGLa","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified name
                \nas defined in Tiled (Name field of the Object Properties)
                \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                child name

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"zQQRX4PRa5ZKgZy8H7hOF","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the given property and value.
                \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                Property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                Value of the property

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of childs

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ZFQeksw8hlGHlQAYfAk2a","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified class type

                ","params":[{"identifier":"classType","optional":false,"description":"

                Class type

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"KT4tuD0zmHv2uCwrZ2QmH","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the index of the given Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ml83zXGCsTxw59yxfM6VA","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                return all child in this container

                ","params":[],"returns":[{"description":"

                an array of renderable object

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"7d66uM4v9BmLw0H14f_7B","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"miXcl8DkV99Ej99ACWhA3","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the next child within the container or undefined if none

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0UjVKjDmJ71basUwFrGwe","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-SSlRE0bOeIOby921ZJK5","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the instance of the root container (i.e. the current application World container).

                ","params":[],"returns":[{"description":"

                root container

                ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uFosor5dJqr_WEzka-ud0","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if contains the specified Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nei6uOGQg6rjFJK3L6ukM","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                Checks if this container is root or if it's attached to the root container.

                ","params":[],"returns":[{"description":"

                true if this container is root or if it's attached to the root container

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k5ysQSX27wbLzK89A60Ai","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7sZcLB6Ssk_bUkz_q5ERz","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NxOHCWTS2Ad5V8pmJ5Q6j","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uBFYmykflq7QcmAdBJgbV","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step backward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"3CuKaiuknCiXAiy9xIsBv","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child the bottom (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"SA5WpwnnYBkJigbD78T9n","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child to the top(z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"DcGMkLov7P20FKk9m17GE","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step forward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"YuPMqzCpMhZqwEWjoyQaP","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                a callback to be extended, triggered after a child has been added or removed

                ","params":[{"identifier":"index","optional":false,"description":"

                added or removed child index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HZOi3zwjWeRSVQFJFe0Re","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oqbmp_dHWDhEfVo6EGEIr","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BGP2FCzk4MSn2UnipuNbO","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5MG4G6wf22rIgqYXuLfKI","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"V5CrVpsI-R3Nwu3tZdF8Z","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"jD9EmQOXZdsbEl4-LVxql","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ojvHJ6UcGUQ-pdVUB7uhf","name":"removeBody","brief":"","scope":"instance","see":["Container.removeChild"],"type":"MethodDoc","description":"

                Remove a physic body from the game world

                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                this game world

                ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r-FksLKwNgmv5HkQIL8hU","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                true to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"vXhOvap4fzAi5CI0YAYt1","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                Removes (and optionally destroys) a child from the container.
                \n(removal is immediate and unconditional)
                \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                True to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"aHzJmWiAlY7_BvdVM5ewy","name":"reset","brief":"

                reset the game world

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CZmBARKiiDjK6Ya2PdotV","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oe83oRvOC2i1bBMK1BNBm","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H35vcM7uOmpyZj-UVIi4v","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mBz88O25f4xx1MhC8hmaU","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mI3Ifpciu3tFnL6dAoqN0","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                Automatically set the specified property of all childs to the given value

                ","params":[{"identifier":"prop","optional":false,"description":"

                property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                property value

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively apply the value to child containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"vrHrZCfUMgVXJgL6G96n6","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6_VpMgFlcwsIooOY_pIBp","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LShBDEEAmenHcmo-q4ZyG","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rl9JThWKgF5i91LvfIQ8v","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HwHJKAXxAfNzctAMHJqz0","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                Manually trigger the sort of all the childs in the container

                ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively sort all containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"24OCe5QqmIEGCJohsRJoF","name":"step","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the builtin physic simulation by one step (called by the game world update method)

                ","params":[{"identifier":"dt","optional":false,"description":"

                the time passed since the last frame update

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"te7Up3RMdoo-NGupEpUeZ","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                Swaps the position (z-index) of 2 children

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"NwxgjlkdM8TE1rbkozv0Q","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W9uhpv6yoNG-IW8vYDbs0","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GpH0pqPC5bVJMu98FKdRC","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"17ENyq0d2vthYEmku0t9t","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZzGbA0Jh03JUL4SwxuRfb","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wsre10kr8Bp2Y66V6MwFi","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SGlmRyZ3VWdlqZImvZOIo","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the game world

                ","params":[{"identifier":"dt","optional":false,"description":"

                the time passed since the last frame update

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the world is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"e9ctWhGu-YBbMVMNj3CId","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this container.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this container bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qoI7NSzo7UYuGf0w8NpjT","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                draw this renderable (automatically called by melonJS)

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"bcJ78zD45_AQTfPnNU0VS","name":"bodyApplyGravity","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                Apply gravity to the given body

                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aGZ8p8dQO0FhXL0AR1Vhw","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DWxtMet7KKwn1-Ul1QaEr","name":"AUTO","brief":"","defaultValue":"2","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                constant to auto-select the renderer (Attempt WebGL first, with fallback to Canvas)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RfgltP4QwW8KKx9ebdzX5","name":"CANVAS","brief":"","defaultValue":"0","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                constant to select the HTML5 Canvas renderer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HOo01Z__VQemEokD_IKym","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                current melonJS version

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tSt2s-VNiR4x3RF4FaLQT","name":"WEBGL","brief":"","defaultValue":"1","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                constant to select select the WebGL renderer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"drTS5wx2v4ck9IH8Pt81A","name":"failureLoadedAssets","brief":"

                Assets uploaded with an error

                ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jv_ZdHKmZcFsTsG7zEK-4","name":"imgList","brief":"

                where all preloaded content is cached

                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xo82IXdOBpX0i4e32MFGz","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                a flag indicating that melonJS is fully initialized

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uojtPKrAsOn8h4gxWLgND","name":"parserInitialized","brief":"

                keep track if parsers were registered

                ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qHjEmUy-vmqMSnXvJ_TMi","name":"parsers","brief":"

                list of parser function for supported format type

                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGyTkJ9KNCFcooPATun8Q","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                disable melonJS auto-initialization

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3mlgAiUOgo4nHKJxnwdAb","name":"boot","brief":"","access":"public","see":["skipAutoInit"],"type":"FunctionDoc","description":"

                initialize the melonJS library.\nthis is automatically called unless me.skipAutoInit is set to true,\nto allow asynchronous ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PEGweekcBbZOweYZ9i7Or","name":"consoleHeader","brief":"","type":"FunctionDoc","description":"

                display information

                ","params":[{"identifier":"app","optional":false,"description":"

                the game application instance calling this function

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GMv0a-k45xImR4trgPsb2","name":"warning","brief":"","type":"FunctionDoc","description":"

                display a deprecation warning in the console

                ","params":[{"identifier":"deprecated","optional":false,"description":"

                deprecated class,function or property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"replacement","optional":false,"description":"

                the replacement class, function, or property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"version","optional":false,"description":"

                the version since when the lass,function or property is deprecated

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"xxXLrDnF0usu6Nf-wYfiS","name":"onresize","brief":"","access":"private","type":"FunctionDoc","description":"

                callback for window resize event

                ","params":[{"identifier":"game","optional":false,"description":"

                the game application instance triggering the resize

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QVO1WFpfPjie19iT6s4pW","name":"scale","brief":"","access":"private","type":"FunctionDoc","description":"

                scale the "displayed" canvas by the given scalar.\nthis will modify the size of canvas element directly.\nOnly use...","params":[{"identifier":"game","optional":false,"description":"

                the game application instance triggering the resize

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                x scaling multiplier

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y scaling multiplier

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},"registry":{"pkg-v095071x-8I0t788zh8E8":{"uri":"/melonJS/docs/melonjs.html"},"ZORo4ArMeMqxX7qMP64WW":{"uri":"/melonJS/docs/melonjs/audio.html"},"S95XJRmEBp5wLaI6oaFwQ":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"NfGdZhYg3w2KPxopmcnW2":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"htdrkfMpo_2I9G9OX4GnB":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"BgITnPux_0UPZUSm9JEgq":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"1I6u0pSUbZEYyY9F3ze0Z":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"ZSza4w7J3K84gdsVV2R-0":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"mDHUhBvkXlVBYBC74OSwy":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"V-id07bT_4819jWGOvz6b":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"1N7M5nMijVD-FHi5oJTF6":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"C4tElCwmIApReGkzwzdAX":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"j_hc8r_GnUdERmxFILWwD":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"fUMNnKHIkE33ZPFL5b0W1":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"UL0-IKi8bZiMWlXY5rBah":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"z1THCENos1fdd43MNWyrU":{"uri":"/melonJS/docs/melonjs/audio/orientation.html"},"03jxlWuvE1LMfWyN_fc8m":{"uri":"/melonJS/docs/melonjs/audio/panner.html"},"0jFDMxJ3eSNasN6CVF-hJ":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"vGYtGonxwKlQbQqBA9sWW":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"9ndyUyu8kBe-wyJWZCizI":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"RwZLGJ8mrGOTZa_stfkG-":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"NAHzCx6voJssC0dkFHlOH":{"uri":"/melonJS/docs/melonjs/audio/position.html"},"QQT3EoHSsklFjJOtaqTjk":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"iXmEMxxHClqWIbL0AYwDw":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"i5_P9PiIQsmVECbQuOpzm":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"uJnkCVYFKic0Gqz0AHc_O":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"Kt7Cr6mI0AxvOJ1sMARJW":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"SPipZHUGs4PBu05QBCTuG":{"uri":"/melonJS/docs/melonjs/audio/stereo.html"},"Dooxi-leghCyBs12CnVhR":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"zX4WX3q6W7wyfW9D85xhW":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"6nJtQemugC0ITychQFjPc":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"k9ys-YrymQy5GznzJgd5U":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"adOI2klCWdAtd3kxRzC44":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"LejiLotRVehyz00FZY1-E":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"lcQ7vG3ypTJstSQyCsKkC":{"uri":"/melonJS/docs/melonjs/collision.html"},"3DdZTajHNTDiKZ9VaVHiZ":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"B4ZAh3JHe_zzvhtSA8AUC":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"kHMDGvFWzt7UhsWRMBGmx":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"MOmovwxP1OJWWZksMZFST":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"XAvCwmcS_76bEDabZ4tld":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"zRlAczr3NDa6H3Z_mEl1n":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"xF-Df2RRZQT-t6bjjcY3O":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"-2Ym_Lk4UU4-6FWJc-Nr9":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"3GbRVIDQ2FqbwwEeKIx7b":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"ACfor5lxgoOhoyC4DcKjG":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"tfvxtOtxVfVYFg8otrAat":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"A1pOThjb17HtDQMOH2yAb":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"lnYhGr83_a6L7gH4EIDjW":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"Ay_3l0wqBzbwlUIbuVTX6":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"QkeicF6VANx-rsxXDS5iL":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"XcK-LSEVTA6ekblYCh4Hp":{"uri":"/melonJS/docs/melonjs/device.html"},"u6EODXEEEeyUuJL7_0oIs":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"niZK3ZhVy0YW04mBMwvSu":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"vxxW79SjkrGRJ7EJ1JJbe":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"MDLxe2h3AFPOwsvANjuSC":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"zeKDcfNxy10XhBwiBtZKv":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"G1UYvpQLFg0KvDoqFOPTM":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"iQbBRpXgCdjhMayrTDWRP":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"Z55QniULRCs1T-cG4CfDO":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"qRKVirrvopIr064Lvh42y":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"OlXQmO0VgD551RjKpqVl3":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"dsCJRf3elMbxuPzeUZRa3":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"1A74JTYQ5d4vR7dax1v4-":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"FKp16--rfD3mKAU8ruo8I":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"4yT1j52usMXD_wEDdPf2o":{"uri":"/melonJS/docs/melonjs/device/platform.html#webApp"},"ySg0ECPB9L9DNZce9-iMy":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"UDnL-mknvGGcT3ByY-vlC":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"gV_B_IQFTX_T1JmMcjP1p":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"LCSdyfMgbUeHHeKSjlMJN":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"p2Y9thgiEBbdQ-56iWffI":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"xWoPTqUuYKz4oXE1b5upq":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"eatmW5XSg6rWNi34sGj2s":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"9IAXzmjdp0sZmhkcXh8kJ":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"ontcbxaaeeLwSAKuvlrOv":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"L7mssz6n7xKmtGXLwNyVN":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"llXkJIbNuuvEKzx3kk2Ku":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"cJ-Oom2fpxsoJkx0hsYsX":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"H_qUtnqnz-0BXdxQlYvH1":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"TlP22y4UIBqGMPdSyP-FX":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"z5tQg3SqgDYE3TVxubXzA":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"5cCn6p2jzTbtS_PmdHPGn":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"mdI4TpYoBcXsilaURjNbS":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"kg5iR2pWzZdTFOIYFgsMk":{"uri":"/melonJS/docs/melonjs/device.html#language"},"bPUoLQhIIJUqUdpk9B5-t":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"_REu41gw6wvppicY4Pa9Y":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"YGpX_5Vht2iRcQ8Prp6SB":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"x6anzFEVymFOIg2vZoGcK":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"KxBsOKCwrrWqke88pGp6H":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"JqXAf52RbK1zdB0qbyObk":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"-W84itN2DEIWJN3Kg3LtW":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"1PkC44tP2Nzty09WMKyuo":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"Anui4Z9iKzEx0_E4Ak2H3":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"ih5l_WrhzYNXDshG0YBgV":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"ZHcsRhoivbmAzrumLlg-V":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"Nf3_Q1sIMZKWitvLiNH-S":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"F_SeAcwIZB4b7M4bzWSM3":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"v3QzEs28nauvZrZZesT9M":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"MopvTDQy6jvnmlRgvH2ZY":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"esBLSfRZm-5rTHD0lwSAs":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"N0BJ3k8WwHVaHQ-BbhlPg":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"jQZa5lqfggAlVV78ilqOU":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"dQRkNN_Fa_aZkiGBy7Ggq":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"9ON_ZqxTyPr6T3AZuxExN":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"iYtRJyEDsw-sX6s7yHxWn":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"vSgLQx5xvfTOZrcXOrMzU":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"Q8MUvUGoFUCSpG20HraRF":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"qVsV1jKHw3k1a22G55jjW":{"uri":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"1VpnVwWuGCAHqqx9epVAB":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"9Rcfq-69H8IXm8NN0R4kS":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"soemyuyjVuO_L6lpCfY_X":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"qNKux51nNdr7imz5XbyrT":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"DX0_0rZsl2ebhFvuuBLgX":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"A7nwvXrxc8T7uw9bkUAAc":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"W3pJx8ElnaIpGBUBy9nuJ":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"lVa3vOdiZncxqcwWMdpa7":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"UYLNsKdoUfUiMmaVCol6u":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"x2Cms08uoTiA1wNM-aJzF":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"6G0n2R0rmrRZc4Lrq1U9o":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"0QhmJvcpd9kKfT61a5q1H":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"jqS_hgo9pst5DEMZJjDfK":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"LItdNXSYuC12qIGxKG6Jq":{"uri":"/melonJS/docs/melonjs/event.html"},"08-TavDvm4ZLHNIlttVSS":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"dAqGHuEm8wosQVIZZMbrC":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"KRjYwbfWHVYUYssr4vjrR":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"Pftm92kOwVD-mz4ecvSEU":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"Evy_f-U9JFO0HGAosPj3W":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"lOxSHGqlqBXPDDftHmDg8":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"6QYFqanBV7WcUBvCoiu9Z":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"x17yLQspXNrWLPtuIINs6":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"_fOEh_LIY7-tMQx2HU2T5":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"ukAIhfUV7vcYY92xV3rr-":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"qJKRUcWEKjeQ4itplxVK8":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"e9CTjqHJvQCAJmQqsh4uN":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"iyDftGbfHQKvQDFY4UMRv":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"mH1nDRgOMTPp8rMQOiguS":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"4vy2pdDrIEvRQBPrUIbrY":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"UNPynj6Ms0Duqp1p8XmZ_":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"_EBbbTp_NLvrXbfi844cw":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"CcxgNa-SrR552rPnrWHok":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"T02Xq2bRtL6oWh-Y4m3yu":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"Bul6eN9MzrheHPsSkunuC":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"9irJNtwVXRLSsvfPaA2pn":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"-HZfAUBOYyzJSwZpRLqYL":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"eQ3lPPf0qNQL16WevMRs5":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"4oNTWs-89bj5w583pImas":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"iamMZD-U3tkEvRzEycYKO":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"PrWhVMl7GY5KEUh2-jWbC":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"U-yGXZEDSFJa1fJ21CvhC":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"k6Z2swhJqQkLOz1gEFF4Q":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"9sPavI0R6GLOgziR1uHFi":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"ECZDRANLD6GPiuYB6u7SN":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"HS2XPZlodUK3G4m-0TrxG":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"WNWGaVWRwymm-IdQovOwM":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"46bqj_jz6VbEzT021G3eT":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"F01GItx3l4fDIBjXzxw87":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"3yb9MKiPK8JR95pRSZpIc":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"2_63KEgbYPs7_moPzzWRJ":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"bnSilmLHpbIH8bhiXsz0G":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"uTwzOUsN7_K0jPh6KfOqA":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"hzsifKbZ5lcWEfFDCsu68":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"l7krgrTTX3nq9xHJ6U2mV":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"id3u8TwVUB_oZAEM2HmFl":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"GiSn3YRLzBYipdPxpvRaD":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"x_fPx44rSIS6sFmRZvvU3":{"uri":"/melonJS/docs/melonjs/event/off.html"},"q6BBetHtkbGjTZurGsI3p":{"uri":"/melonJS/docs/melonjs/event/on.html"},"S-ebioEFJit4ipAXA4ciT":{"uri":"/melonJS/docs/melonjs/event/once.html"},"AhW9V62GMoUQP-Yqoh4nr":{"uri":"/melonJS/docs/melonjs/game.html"},"jK6aK4G32Sxdn7vbPzCvE":{"uri":"/melonJS/docs/melonjs/input.html"},"FZrqCDCMNc-Eat72PWThj":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"E4Fnwfuj30iq5W5h6qlm_":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"HaUbLsfCFELx7SbZz1XJn":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"I2zReCtXRgI3nFwr83pc5":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"aQSUCzV6I2PvA5giANwxi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"aCv0UB5bC-gI4pL9SpUpt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"rDLdAWOObPlg7_3weJUuA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"_4o5a-RwY3EozccK4jolh":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"_kSDM1OOP_d_yQIxHl6lo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"iiuc4qoe6FcvibhpGYBbi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"9Dvb1HMg2dR7nkCq8YuXv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"JJYorMQLC7dSNXKjSBDdp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"O71dlM-8bWxBXZW1TIN5f":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"7wYvMcnSi4hNYRHvfoP8J":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"FxwYhx8OL3gyr4xpryuQm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"0MWgPzRDRekPbBKXap7lo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"pm6aLeBSdhj2rElfZtZXC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"Qh_H9jFVmTR7ow-5HxL80":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"4hm515NMaY2Fet5C2Gs61":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"N8nC-X0QL3YT4PtwtHG7n":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"GW8_z-UIvQIxd--4jBpZ2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"l6_4u8rnVPagSAO9k6XOA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"zLIyOeD1JZFAInjh0BgW1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"_pocggUGnRRC4vyak0MGv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"-kxWKuglRfVbF5FGx7NTK":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"5PeAIHx7rpm1n1y_0zJro":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"RFi2xTEXRNCNkPZ2UGCZv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"3d548PCOLpGkNq2wAPyWM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"blnVtcr4RoIdKJjNPHd-X":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"K4hwj_v3TbxZ07T4_NJFB":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"ybFEsK_gjsrL4C4iGDKYH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"JLhsVAozw146EWuED5kf_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"XB3KB74yWfr0eQzRaBY2G":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"L0zVsImdFKsyW9uXz9Nou":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"OLCUytoIGLeap3qy5Xso2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"iQKxMpAK-x6QRXBpzM8Oz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"DZQxs7TOsn7SKG0KAfuVe":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"rK2kN8X5EA5-lzblHmJDZ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"GiOQQxPvnk4g_PfQua3_o":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"7yMEMhnPl9KKuD0ellI7f":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"wBSbLmGUe6F9-EubjHWqp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"rKskvdm7lT1TmRseqPTlp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"kxPhDysrrzbgd66Rlf0U6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"s3aF6fsVctGYXI58kzhO6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"wMAdAcjc-5415J8Rs87mE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"mQXaOaeGEEKynHm4zFt-r":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"T2gKsOL3ywueMC7-zyBAM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"TMPOuLSkvUcWwuWL_idQo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"gyJ8-0Cf_8NB7zILoNiWR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"e5assGuVbt4mpEo9bujoS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"qu1ib75Rs3HYZn2I23S7y":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"SXvzVfrOmIctg4dKReGJT":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"Kce6I2Wq15lGyN6iubnvI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"Jj1VUKOAbFewc1nDCusA1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"VDM7wc4ZBLjIPfXxyfxd-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"m98sHIvj25TkgDVOs8ELl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"_e5b6GsFOVqeBXYwWZuEF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"4dPvjhO5IxMU63dMuRheP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"4wLhsdikviwJoxxvyrCOH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"K4aEb41n-l1vo9TulOaHh":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"ENwILpWY0ENUUmc2B0zuO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"7fKKC3HmvvFJQpg4pOqvh":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"mP2T-g3DTRtYhzs6Nz3sd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"noeat7vvBdSK_d_ijJik6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"Q7iEXJrOyYjXalBs-dwA_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"xV33WQx3-31MkXeP20iaO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"kJMzI5thf1ToFwZzIAXq_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"6Ur1Dp2QFh9b7TASTeLBi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"9_LHHWlLLuasRdVmzml97":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"nnWpV1a2Up1H4PynfI9JQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"dTOljLdbGiUAQfNQiEIJc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"wOfB2iRTCQRo4HqE5AUpp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"jf4sVPA-zsgNTwtrESDyy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"FlbNd_svr-1jYcNMLDSi7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"ctD9L6v5cbu8VQEZ5IzTP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"K3BQONdYVYVIEx5ZCZTAm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"vjyWq3CfaB-mvWhw9qK-Q":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"N5yRPIeZIBQhOyG8chxX_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"92skLuGgL1cn5C--4fsq5":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"gmXc5mo_cHYw7gBgvf-As":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"TuSRQI9Hv4WH4n9Bt4A5i":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"5Kaf85GIbL7XUp6bfOpnS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"R4fMpKqSdnmN3N2B8dIZJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"O8hRXjyyW_YMe32_FXQBz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"ad9gs8X5_FQ95UMmq2X37":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"dNK0A3HOCGktqt6OZfjLx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"mZMh9iuXjr3xpXanFgw5G":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"72eg7npSViJPKFpGPyL4r":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"7CRn--FLesTtRUh5AVvxA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"fCkBP-HR7A20xlVgKx18u":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"jcILludpXJKRG3uT6Q5e-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"AIeWIWy1BUAiKxpF7agvc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"lA_8sG9L-HKEyXVUZywlt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"fdBmSipowFI5kS6_Dl-K3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"9570mQmmxDcKcsodYDlN2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"w-mye27WZpbHcB09pPKqP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"b4VsVlXVer-I1Zq9p-0Hp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"NX7xV4r6y4E-0MWnudVd_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"1am9_g7Y8D9gLiX7TLUmQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"9QIeDsQuxHu3crLAIeB6s":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"H0u0-eoj3AqWTIT-kbfGa":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"E5gFgdZoGUVz14sRs-nCv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"QaM_CqyaE4aQI0fTLRi8h":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"HEa9nGBwPj76JcnwTH7oc":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"WLH7i1ooggFG4xtay2ljM":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"cYQJtYG93RaQAcwVSxOkX":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"CGbE8bpZDiJ6I53shJm-W":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"y4Ardj9Fj0qHqIXzC6HUR":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"XzWuLLq5n1aNACwu-KcEh":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"xD1REJbtA12inGQkktBtG":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"xaUT-Gtgaz4K6uq8n1spv":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"AUDZmNts7l47o9naszY5g":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"lWlZ8Qot_0TMmr4Y7bNOx":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"SKw9wNu1m4U2TW_amyiiR":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"UEvprSCazuZwZ24Xe8_fk":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"SGl-8UX_UMtTeOA_Z3ujp":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"PgRlZmHTQIiQHPYhPwQYY":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"9H_3GKbeb6vZDphM4H_K7":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"wmtAYB-7cpPf7oWz_q5SZ":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"KbE1gGmHua8Bpe_i3HasZ":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"GqnirneonlHQ5XW-m5-mN":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"un3Sg4x4MRJcZW2EJz1hP":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"Win7Am1A1tX8MLgpuBpuK":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"PTOMlR_Zr3HawziJxhYQD":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"Wc47htHPau4mK8P1tpjbj":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"l9akghO64SR97it8SWcXz":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"YGVtAOIEd-AgP85V9z3AO":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"SdYBJGtMD9sGC_Y4WKC6p":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"IVAwR9DzJ1ssZVKAll1iu":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"ZHfIXdkzkS3psgJsXKxKk":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"nYV-eUSAF3igXDuUC4xfr":{"uri":"/melonJS/docs/melonjs/level.html"},"i_CuP-AwVRV5pORaaR1HQ":{"uri":"/melonJS/docs/melonjs/level.html#add"},"CHlRXcSjoSj7yUgbujpVe":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"ZepK2JaWAwMbNG59uWLLI":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"iPiEC86SZXWv79WtAK8IG":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"qFlANvsWehqKEqFSTocmf":{"uri":"/melonJS/docs/melonjs/level.html#load"},"cOTsRfquLE-gA0UebmqWe":{"uri":"/melonJS/docs/melonjs/level.html#next"},"loCj61rrxFrq6cDs0akVt":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"2XoxRq0Hjc4sOol48GHpL":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"uXDwpMlJXV2z-vqJmarxn":{"uri":"/melonJS/docs/melonjs/loader.html"},"iNUvQrteDCMb96dwnvn7e":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"jCDdYtWndghDE-1503kWF":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"qAdn1-yPgPOSEjsmwbunE":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"1ajCKwEvE19uAOMEYJgSK":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"LhKtIo6Aa6p8ezqyUqW6t":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"36QfQzmuyBH3HOPx-3EWu":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"pOmHF4wbtRKWAIeaiAlt_":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"UZ5W5d_ggCYfHygbuDc1n":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"d53TolMaEDKzjqqlnkhV_":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"0i9clh4a5D952c1fKIzbF":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"yQe24CdTvA-4UQ2lUGrO0":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"Nfpc73c9fsxTqKZRsrq4L":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"vkl4BwyvV41d44Kquvf1Z":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"gfrHnpqJk3_0ccaFSleAW":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"NRZ1riv5yZruzcDJwX6S_":{"uri":"/melonJS/docs/melonjs/loader/getFont.html"},"eIbohN4pbkqykoHMIG7vz":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"OLAPyly_DNuBLLNb5zT2U":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"ZI_afWC2vSMWGCupuD5dk":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"8zjAE6SIrkabjALZdokKX":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"Zbq2YWMOwnzKZZffbP4Dl":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"-QKRl3GJUwN1ejT4hSHHh":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"QU_-nypZPXLsikxnWyhaA":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"3IpoRwB2dmG1nCODeadlk":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"9ARg-WoH989RotvXvC3lR":{"uri":"/melonJS/docs/melonjs/loader/setOptions.html"},"P4t5jhPn80_FwrXxSDryV":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"eYqLDivNi_dhXMsQWZBCW":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"mfTtTFm7xKOR9xeTsToNE":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"dhBx-jmrlS_6E4LS6p_6F":{"uri":"/melonJS/docs/melonjs/Math.html"},"gUfXYcQFCm_bGHYCpSQWW":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"iJ84y80VNBPw61L9RQxUI":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"W-_Uy2uufqlxLqi95P8Cy":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"PF1Y4IJ2h97CVLewtoObM":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"AUMo_Z31U4D669G6XVmf-":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"fhPx-DH2omW4JR8LcqpHC":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"IYxkFZEiR1fpnO3rxHhuV":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"DHSO9vJeveB-Jcu8jTcjC":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"zY0-7jHI75RTUq1_upanq":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"vtVn4dLdBeJETcOCNAZE1":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"MKGoo9yYxyprD46B7vLGS":{"uri":"/melonJS/docs/melonjs/Math/pow.html"},"zu8ek6Rh9E4hwV--ITWZu":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"tMhWzL4IdvmRARc8pAwdU":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"a732sEyi7JgzpKH7TtI_r":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"RxLkOYCJO-y-q01NrtL1q":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"xdwiwqZbpD9OMhnCgp3YQ":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"uUeDzAKO9uYWHdQaKfvxR":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"-fA93uOJxdt8qBZiJJzOE":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"yI6sk0Qd5u_OaD1jRISvT":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"6B8aUpvX-krer1A9sHkb2":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"tteWilwVSzkqbkcoxCZ_l":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"h8VBIQYZWdxVQx9i6TyBn":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"AfF-vvfI5mPYmzEZNwzbT":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"zKTE-9WuUWGoeWm-DoHEM":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"aDhgKUKDsq8oWUs-38l29":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"8H2Cl9-VaYOQAWPb3ZryH":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"B_Lhi3kVMddA1lYy38oBB":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"smKT-bZTmSmLXcQefJ5q6":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"Q9oisVOek_8AGmzYt9jlB":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"4d0mP13a5yzokg3vPq2Er":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"Xy26It2xDdpG2BooQHRT-":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"0RRkvI8dcLH9y1ZBBEPBE":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"06nJ7_ismXAhPQIWX4Nb-":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"BBVEHzPBdnFCi8Q4RuYWx":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"92kI8yqlDq7XK4epPkKER":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"GuuQ1TntJ62vJE8vy1IF_":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"84It-N-A9QsbdUwup4zv4":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"XFnf3uXPbAgoV8S8vrwUC":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"QZH9KnYWmO8EGreM0Wgbg":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"l43Ytmwzzd3cZMtrmRl1M":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"RwVgWFMatm1tEcPYO8WhD":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"8EBqpZ8PWRmYNgRK6kroR":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"TNqrf42Eq9gdC1ImVMjB5":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"dp883JY0dvdg8ETpZrk7w":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"PWes32hneGhbMvNmdeAz_":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"AuYxHRSdvaMTIJLHvN4pw":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"5ghPxrbvPvuK2GcIFX0t2":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"g2uVGXn2oCfjS-V-xapsW":{"uri":"/melonJS/docs/melonjs/plugin.html"},"frWDNz7HIDAKM8_XnhR5k":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"BtuwTgLQJnUymFcVgURjM":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"m4OMnjoDvPkoHwkLga0R9":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"bkdquO2VLQhS7XSgW9xOm":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"liNoFTus0-vWZEeUCSq7e":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"jo-TYQzpGa8XCiHHmFsmx":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"AU5QINZ8_cWXZzf2guPz-":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"hjt3mDaF6CDnE1AApqUv1":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"_XYz8nkkDmxn8tIPMmWHn":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"9zdvMf1iI2b39XaDw3MRj":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"C6WOus-CVUjuD6yz7H1zZ":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"fqT6zatf-tYQ-dqK9I2c4":{"uri":"/melonJS/docs/melonjs/pool.html"},"CSV3iqJIs6BfHk0rVqH5Z":{"uri":"/melonJS/docs/melonjs/save.html"},"NFDj2dbYunMLNP8w75Rwu":{"uri":"/melonJS/docs/melonjs/save.html#add"},"qktZYwM7QO61UgcU6zpq3":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"DZ46TMTuxRwsOMG6BwGq7":{"uri":"/melonJS/docs/melonjs/state.html"},"X5IKfSFNFK1CDyP1l-B9b":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"fVRHQLv0I0JeREolsouVD":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"8pgMi0KLgDEuaI2u4P44Z":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"cwxUsUEK2z1waFaymhS8T":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"vrj_t8ceBuxhyTDaxEDMY":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"E12zbD4nA7vgrBIXrvu3r":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"xl3K7_rcqg-NW3U8V0eYp":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"NWPZAlDY345Seo1cavJWr":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"PL-v3LQdeTM0Ue_9_oG6t":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"kMHKGg8ujrkYYH-RCK_gi":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"5t-iNGIlTeobcKObtvvyD":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"np5s2cU4uNmxsOLoAO07q":{"uri":"/melonJS/docs/melonjs/state.html#change"},"W43t3Ocr-Y044-Cg0pr-v":{"uri":"/melonJS/docs/melonjs/state.html#current"},"1eSF-X5Kea-7MFuvnPVnI":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"il2rPohEwFPaYNAyYncPY":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"tAUEs7Pe00FcU8hPUY5lj":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"zS1NpT1cP1mQAnCrvdHLc":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"7Wnik_e-DANYUjICrb1w2":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"NR8yeAqqRAjCzm4XgTh5l":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"0RKZND_ouNdYEMr_KBNsS":{"uri":"/melonJS/docs/melonjs/state.html#set"},"_4_sgYZnb7uSRZJTs9oIw":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"dr-m85CP2rNLzB5wGQRPj":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"GjDt0vfe-khD1gpNKozQl":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"M-yrYe6JwG0APbV4Q5m-I":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"owxZrWE5LuMsvcm7VHPwD":{"uri":"/melonJS/docs/melonjs/timer.html"},"mmcxo0URbAVdJTxtOGqi_":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"MQlrORgD0AVytN3QmRMtO":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"o4ZqpQEB0JhKD-xYs_-Qy":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"xmr1NPM4FtdVvt-M0AHzU":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"2FGOH_mbpwy_tJsJBMYWJ":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"Q1qVPIgBW4dfRlOR0Q-pv":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"d_CQ10XwVRKvmV1vufvQC":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"Dl08B8pJDJcF9BWCuutlW":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"Dhyf02TXEtyJnxiTOGk8H":{"uri":"/melonJS/docs/melonjs/utils.html"},"qSHHfA2kawbM3K-Kidvcq":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"ZAtqu5O75JbHZvru3gOfK":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"OxdxJfpnz0Wib_SSaaz12":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"CHmwM6GTI6I-bwqwFRs5t":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"U0vkqb7AbWFSnWYDkNBek":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"_v-yF7VbhO0l4TbYpYpFI":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"Vl5qyXOL6LWtM6MsFPu50":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"h7VBxtSrmmns7QMOSIne_":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"BzucGDExWhbhcPOG3SPWD":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"pIcgcYP2WOq4KrrCRPvM-":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"NTTLwqCQCH6eXxnQf9CYl":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"ooxLyyOq54yNB-W8eF8Gj":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"fzFwc4J__sq-de3R8P3Zc":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"4kNk2RYPW7XuuFp_V_AX1":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"EaYaVxg23GzEaoeAP2xXZ":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"382AZee7XjkUk1k_Bet7z":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"G4xuMzAJ9uydyAr0RWNuo":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"TOMUgLw03Yvnq2sck_MzS":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"kLB7Sc62ABVl_kkl6XCud":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"tsgN3S2jzACjjjnrzMaZO":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"ocywWkPEU_axmypAl84jq":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"nMBOAWQVaNPIEcO4jb9jG":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"4y0IoZGEw2Q1VSmZWXQ3W":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"54KiecKYZc0m9z6IsFy1_":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"tEK53pHwV5gPOu1uVu7K8":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"FMsMwrkjt3GE31nGj2kDy":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"Ie-MpCtN506an7xyzDAbf":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"J2lqraswLyjFdhHf35-wm":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"sAOYnHu37QpiejeoPd_aj":{"uri":"/melonJS/docs/melonjs/video.html"},"yYhEv9aNsLEqUkJOqXzHL":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"VG4YDNLhNDQaWgXIr04au":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"eIqLALHypi-c4jsFEkEaN":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"0Wrm5q9Dz_n4Fw6UO0bK2":{"uri":"/melonJS/docs/melonjs/video/init.html"},"q6n_gZtwxkQrrxp1lggIt":{"uri":"/melonJS/docs/melonjs/Application.html"},"h8nJcSiCQl6TpXZ1QJgBE":{"uri":"/melonJS/docs/melonjs/Application/Settings.html"},"lb6IPbvzjWHRBM_HvzAzT":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#antiAlias"},"LJc5cA43YTfQ-MuIhdMw_":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#canvas"},"sTyS3c-3d_a_d5dKD7ThS":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#consoleHeader"},"WZpbs5L2a1qWr_8NHu8-f":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#depthTest"},"_muoyk_Sc0u_GEn18rP8y":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#parent"},"_l-lA21Hkf48EqjGHubw3":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#powerPreference"},"CqzhpS8HHkFirwCyYLNOa":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#preferWebGL1"},"vI0O8zpeJPigB0FkqpYCB":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#renderer"},"uSQzU6hU5ZaDosSly9-On":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scale"},"z5OF58GoYtma7PpB65l76":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleMethod"},"okyT-Bmt7A-fiiU4oXtd7":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleTarget"},"oUmHdR_Bc5MqfEmX3q0__":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#transparent"},"4qlDOWxN5tfM9QG3zTrY4":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"2Lm2zPkxObFeoHiTIVADK":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"YPxn1ya7MmtrMOu01io5A":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"9-Vbxb8FS0QvJihEQb6M1":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"rM2FfCHPtPV3RyYsRPyJD":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"-AvCUYxe4Mc8sQOhR5iRo":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"oNIvdtjwD_nMHUmaOjNRI":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"bjXsyg7KIvzsK_Ruj9ts3":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"YbmJxCaa9GU0PPbregVdT":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"6tauJid2EzrERYiVLCGzV":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"-nm9B2fr5zKmM6Ae_c4bN":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"NLySoDiz6Hp2yM5Jyg6OG":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"p0NEaN_uHZBwDUR7lZ0sa":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"nOFyKayRxb0WlQlLlYc31":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"8oAIYKGXDtHlHCM7m2qox":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"aMDlhogEgrPiGMtC2rZ4R":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"COUkECGit_pOFYTk6HmhD":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"dvBL9JvCwtwOqDUwSOAQ4":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"DULeAfZUH_jmxEHR9eONP":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"UMyU6SfMNiAkOlC_TpBey":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"dXmZoJS3RNfIXdnxP8KGY":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"JgVc9LZgVwxtb_0Y-nNyD":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"7Wm9gAz8M0UX4gPmg_yme":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"yMz6C-cyATED-9wJcPX99":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"xZOiXOC8KsVpSnW0aUtZw":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"dr2t_Bee8TZjbLaC291Bi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"90QaY09Mll4Q023GLaA2c":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"M_3IlsOG-UvN7tNEePnBk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"EIzKAcj1PO-6UYzonZANC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"SOQv_IRiONMnG1gudCZcg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"c8upa51Hk18mpuHLH8g2v":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"tc3YwnAQmsAMZ7NVh8l2_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"kiBKDeIMSjDwZFqkHclzP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"MD0U5sra_0aUO5L2BWjZn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"gGBJNRS5FSw7B0EFfG_1R":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"r9Nw5DqpLeL0iP_vfFJgm":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"I-34LliMaHstJ4ZblGGzr":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"n3vj-IvPuTB_Gmx_TiJvQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"orWU2gcNMqMJdH7Q0t301":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"aTdqK0AHox3AYJ-NLMUAU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"y_0WSUb5mE7H4pUmHHH1M":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"XnxJhx5HnsgBokXbXYyDa":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"11d8s0UamRPf-TbJumbtE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"k-bUatgDBx7jel23429C4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"RIMPf-bUnGRyPVlePcplZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"sY4UhS8rn4jL-9P-dNF3d":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"cbMjBx8ZUMazmjd9TlU3I":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"tRgSi1DlH-PSk458Nmze2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"z5gRQUNR9JXhp6Bre8W1w":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"T6f_yxj6LHy6ieegZV-Y5":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"lpFB5rzI4iuf60W8LI1M2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"QUnWdMUru3bFHrE1kLVt6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"AlX_4mHtT5lRJaBd6J1By":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"3SGnn_yOF_TYCzyKLHr-q":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"bmD_FXI_x_hyd1b839BCX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"c_gpYwfZcdyBwmxzeVhf4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"eSNvgKCH3m-k1rHn5ossf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"3pPgq3kRU7StppK74XFZu":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"NEH-7T0SD2kTlVxJkUnmb":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"6D6LQf9s-KlF-U6fBZYh1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"B3z5oVQB1BC6MsvcXxqco":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"GtHLyQFwt0EFadfTPlcsO":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"ntmobDzAmivnHTF3njpL5":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"OJQ_7T93ulcYktLbqZQQd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"6QSqzjhv1TBHV-nsjJT9Q":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"0u5Svjbsw-Rw9iSDO4Hnp":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"xol_pIsKtUsmCtgH6YJka":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"B82Ba4E3T-zaXx-mtVDoc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"Z8gZ7hPN5DWg5uOhFBgiN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"KIgHdPWBsihr3Bm_LeCAG":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"nwWt3q4dglfHJkNbbRTz_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"4QzBmt6d7BYpUZCGKuXM7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"k4WSceH-xWXcaM9KRLTtk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"Nb_rWG2ZKVF--3wNl9ssC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"UP8cAaPlhcaBnfLMPAaQH":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"VUjvXcY9xdtygbMqWgnsl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"fCihpNGvEJIfFJemr0R7Y":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"UhkzfuAJOOxmKOtVQwWBr":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"KnuQihUA7xppK2PFpzG2d":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"PbZcRdGp3khsHyV4h222E":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"5kIphcJaVTmdhxaMi8o0r":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"5v9ZS3Er47jdjsgyTFnlR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"lgqkQz5o6DyEgco4EzGda":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"m4qjhWAn0dnA0o7tE1CNP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"6YlaWV2Vzl_y3PEeXPnpX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"cRiI5cJB3BL6TRbs6nfRQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"LbhoglEEke44M0NGmTv3r":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"cGyZwo_uFDY5rIEjUjGb9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"twofzx8auuN69gcl2Ufv1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"XckGV7pauAxpvY7QC5Tyk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"m2Um4l9Dr3dnARAQS9OZ0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"26OuY1zyvzluHyVVsWytu":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"HelU6sAKLRYFu-BgZKHjc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"lKW9aSdv7P_CJsa1abF0B":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"vgBb8jNG1PvLLPy7qXxoz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"QYWRzFpDgY784jOz1VVrB":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"U729-OdUz37_dIibLwYpl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"wf8AAjhpQY2aw1QibVtGN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"sPjoU_Z7B4jrEssqFTdm_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"PrBGdnWvRidHCDsoIMxh_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"ms4ASbvps7KbyiDuau_1Y":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"Rw1X3Le7U9cHAsmz7QbYC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"a436d4cCe55n5vYt1bo4T":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"JzZdAtkDtVwO75ul6PdNR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"XhHyJi4GdMiGPBgzvhVz_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"Lw-XuUupsB5RJ_kvG1R5-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"MK8ciyAEYBeFjH8Lldfsm":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"H70zcQHrDuPCWAN26UHr6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"S81fPc8ZGlGWOY-qBYFaN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"iu5Ekx2OuSS9n0GNX7v9F":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"MV07yo3woxMYoUqUrkFtj":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"58HqQZiVjdCeUIPeiAGhx":{"uri":"/melonJS/docs/melonjs/Body.html"},"i5oITrk_9wOo8yTgWauvv":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"oBb3e_OiHpa2jpCaTVQE_":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"i_OgfoaG90QiADRvWNqb1":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"u3bBMUA4RYPGFIRCiS3NS":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"_WoDm1uZnR74yay6raMSK":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"0RlURyzDGRHNtRIXPdTh1":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"DSz4J7DTheHm9uNlY3eaK":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"3sMSzhEY-8m6R9Y-Rx1E-":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"3S80BKK52tMiRjhpGOuHj":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"UDhc6FDo48-D5bL2oze5d":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"cCfopZTgUJrlvzsPzhd7O":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"aOqjEuy6kwEZCm7LagDAF":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"dViL6bGYftvsE9qNuEfuv":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"bgpuCQ1ykaYZ9-Dd6olH3":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"nYm5djVrOBLLEgq9Aj9cz":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"6_9T9SY3b3rU4urWEqf6u":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"4a2ZF-tIaTu3ccRIG4sD5":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"_xFQ1Ob6kuOaxuxPpZzTa":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"f9rdNcjsRhSlIeGhDWtLk":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"Jz5ZmdG9f7LRUZMZYSnqN":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"482vKs3MRD6GJeGGAnqTo":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"Ejku1el-QSuF3AEY3xbys":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"7JszHftpEpJTRTo7iM9hT":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"t9fL0gOtVBBM1gqP2AKmx":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"L_XF3HBdQ8onhBx3fBZmk":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"xacCA83IC2ZX_iGrakKho":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"a7_fFcMD1EaZ5cIGRDCjR":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"R_zwOTS_iSiPeTGQGq43K":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"sHMv_nj9H4kIdY2fAVlDX":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"Aruw23Sub1IdursNuHowm":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"wOqeThL5ZGDLOJ-fMqKNE":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"h2KBvq_UDtef7cl-U0P_3":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"_IbFy1cL5a3FJD0hA-bR3":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"MMFCKHfUEMx4FCePq6uzm":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"JpxhqvcaknQBL_qKOLaG-":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"ZxPBRO4jLkQ1nliP0Np-m":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"kqtOdkmSnFuLEDcDWwhwV":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"SjaypRXxz7sUudpCt7LxG":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"XsY6XCiqiBBFtrvHcpubn":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"oMxvyTfCHG0a36coMzBzx":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"8307LG3jDyzyjx85zI8ig":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"1zMc0gJUqQA8mMXfFV2ln":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"ljQcovyl9J5oJ7kkhOilO":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"koYs2YGreR4CDtc2wSyjI":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"32mDa19nxiIM-Y7fQlFQd":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"FPjOlpyOL256O_ub9AJMT":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"lwhb06siytjfm2Iauk3Bc":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"k5JpSMUqeJ6vX94G5LiF8":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"H9Q10DGkCDcW4JTuOhd6y":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"avz9cMujqdbk4Ktl0olYl":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"M-2i0DNy-1x3fbl2FAlvY":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"PtVOa_5XMGPGDShNEIgG9":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"vYfp0dJUsX-BE80eoQjs1":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"FjQIKauaT7_R6rj0zYAQv":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"-7icY3tVe-vk-lEEGzzIM":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"pQML4YpnNrXsjxtGMwxVu":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"y6aFYKE0yD0Idp_Dmma4v":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"kCMZlTXSRJMtuWWegGtOT":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"P2pn6ffLF8rVyRNmqI3gb":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"XnK9suWEJLzAtls7M_hEo":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"YtySO3NkBqF3X8KAUzat5":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"SwrUTi8AUzS17LBchmc7d":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"PkkOy03IdokzZoUZsdVPy":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"r0ceeC1UPcMClSCjE1T7v":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"6rtvfNEyjDzAB4IqGgoEb":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"8UvZF5p5oH6ci_7S5I8NY":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"vEaZ3sZso-KYnT39kAyOg":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"YyfZku-mqYJ3A7HYRZ6LA":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"9Q3dk0L2PYT2FBdCMq7Jh":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"71U3gy6GDx1vD8eF5o_Gf":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"4_5O5cVnAc3U9k-YofmmU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"JeZCPVP011z-2uBSyLDtY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"_OC8YgJOs3TFiq3OgNWs2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"PXQPZVrzC4XmmyYafe8vP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"yli2HDKtrgGLrKU5sech6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"7c_mOSqhHSWiFH8aS1LTs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"A6ueBgwT-tmpiqQPaT89h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"o8uJRCpXKBF4DKStnniFI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"yNF568XBAtQNg-xN9M5j0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"3w6HtoxZ08EKMG-c0ycCx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"J16CjLX6rcSLPv8oa6qi8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"twSpVAHGMn4YzHBzalitw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"SuwAyMHIqPGyM3leQmdG4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"mmxFuisVyboCSbRdVe2o0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"so0iG1cbMKPgCx3fA2Fqw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"g4AZogTXrJRSjow4bzbAD":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"x3i9R25xILYhjoDhBbi-R":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"544U1pLjh0As_j1uH4YAE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"VzRHxqT47pjzIdDwplAQw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"TWM39Gw2cfqW1J3eWCHL0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"gNZMhsDuy9chZw0Q4ZK5p":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"FdcXX6CT97NPldPHgblGw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"rbCBWL3GB1_xgvUtyDBnz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"LxS1v0knYO3rlYM9CBgpT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"Zup1cdrgeiWARwv9S6aI4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"bSKU0dPlmH5EFZPoVkqE6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"b5KelXLUE-1-gjMfbM4h-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"CrJcOxAmnbIYa5NA11iYj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"Gk-r4wUeOzq1gYMXmIjJv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"R1BY6_M8AuFRWw0X37bCu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"yd2hGVlHM7F0JCBr_uKIV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"LiEgkdi6IomdEywos3DDm":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"cmQRNdMETbv0xW90nS7Hq":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"1dMgMSJivaQbRQmQ-aDKV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"Z3uWrbmZejV3xCnxsTPyR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"mz_2W9dskIReVlwk658qX":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"aCb-NsDMFn7wTHowlaPv0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"YFbveFZXusvaDGe1IO3ZU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"9svHcGkAerbQidKbLmWG4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"lRcyyBeANA3eR6yWa1PvL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"z7THqu4xUh6FG_uDjMHpz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"-LZmm1r5ZSmGBFAwR4l_A":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"eONEfjMRxJ8f7iLnbrUhP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"_faURET-ql4RAzJCR_64X":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"eD31fFAW3hgrDGrYplI0P":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"gpFaJf13BH4B4Hc7IQRJ0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"XG3C_fri-EMvEQ3qB0Old":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"63-Z6UidNNyS-2WS4TWax":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"KuobmxeKINFdYE42JwU2A":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"uuL4Q-3kcV0XzpPdzThxM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"X3a4wVbth7zj_XA9yx0wK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"TqOVZ4CIEqdd51ffI5cFo":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"nIPFWzpxtwexWD3CzFUtP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"piDvoKLu4NnvpuK-pc4WO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"JdAUjiXPQxNIY3-e7ISYt":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"_kijihpj59xAY21yGj2QQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"k3zwPJhc8Wrv89JSOPWuO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"V6oym3Ul5LMpHXiQZQrwU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"E_SfpVNb47Ba9poyKx2mm":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"0PQiP8W1g6L0IrBy1UjIO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"g-HXZ2l7MiROj4o9t1LDa":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"AQuPa6KA3aOFnXpdZ--O5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"0jTwZ0QGe92UgDXjDan-s":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"uvHOm5h708h794uc5Psqg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"dC4ZUW_4xxxebjVCWjziR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"b6wONhZbO2banqlWUmoUK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"njdQ-pDuM6AS-kFk3s8Db":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"4yNoUVqelwwF8FOa9Pjg8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"zkYuxhGwjiTvInUKsJDNp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"NdlTj9HtEDffnaswxJq0J":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"pXXWWLKgTRlAq3kNepIQQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"K8BT95Z9k9pmaAQOhmgD-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"NVYbmBCzMg9ocNlW6YzmY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"upxK3bM5HFV2-2oXsJmnK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"keWZj9pWVm_P10eHAZQCc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"hOFHkd82FegbshD8UnFxs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"KsF-eKwBrSv-pzGsNn-GP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"TksMoQtcX_M_IA5harVEu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"0zDdthPUNzo3o7qyoz7ki":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"9nPOkayQGR6Utz-QHBJQj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"sNJqPYMhzBdcf5oPv8SdA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"SAI5-sKagaBVA1q8ILJVn":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"RetC2_-JN1FRLtNjC8hpS":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"7L51Z_o2AW9f3ULQXnycF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"5QVoH83dVSrtByxC0hULf":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"lIqGrvJnKLtxcRuVejjSP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"TXrMhS9VNDjrQWlrytotb":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"zRyA6P52FUPYH-BUsBEiF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"XYgsKwW4IGbYLMs9S2UJ_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"LCZD3zGRhi6UpUCmG1x74":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"2QWtQIAY7lWh38VaHfg1T":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"s9xAYgIwSQp9VccbByF9P":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"i5MPTids8L9NAAmjquW0q":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"Wc1XIIVbpH8jaONt-mJHg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"qjq-I5rRuwsXnTfExmSG0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"BEJHHSX6dzuWGDLRS4KZj":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"ICyVcRQcDfLW1mnFb8rRV":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"cn0nxhtfIZarKD9KEfSWb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"obTEY4BQQlMcRY0ezR3We":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"giRBkvq0BPAM4bKE0zAKx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"VcAtywdDX0_wFw_ngjlCQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"nfaOzUyURuVFIBaXfsgM8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#renderTarget"},"FnMkWyxILWLhO6KOjOv8g":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"-NZmcfpXlKp0Se8jDc1DM":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"tfqpMpfVO3GAXUI1U9yd2":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"UZzGTvycC138ZA-nYqASo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"_SuSddbIMHQ11oZuV9fOJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"LkjP1S6Oce2PnO2BYc4jJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"m0DbYjbrNFkag26xADd2X":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"82VKbI89O3CRHmH4NUmM-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"IqHXe6qTkSAW5SwVxP_XD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"Bmjlx34XTtdaXjmBcL7Jt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"qvZhplJB08SYSPPfORD6T":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"1ltsm62aTG8b7mtmU_jaj":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"kVRFL9vz68lioMMs71o-5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"DyELeAK_8BofFeQ2LSXrs":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"cRmYt0KaADuCBnFlhN-go":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"44PmEDkJNunexGdWyrJG5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"aWZtjSGKaFJ--1JQNI4Rq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"XzEZwmACiC3wFC6FyqbvO":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"pm3WBJ1zwek5_XK7GDp5H":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"_yT-Ocn4NrWVfY3w93LWE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"iEpH0FTLGiUfZryBlHXiX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"NfP8R1pi7ghA7v0B-gOwz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"c0rY8Us56RhM_fYTnSo3q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"fF5ulQHKwJebp2nOXC81R":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"R9tyo19Lr25Q7wZPiJwdf":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"mDAjyVrz-mt3FeFjIkpVt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"bekoKRNLhuMLk2EKNM-OA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"ClfLs4laGd0XZzGQinR3h":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"v7KiRG766yvYue6tzq4GQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"bC3LqGVyI6Tr9I8m5snPg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"ySZmvyeua9fBnulyVei97":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"Veh_gNsVBL45A9u9Myygl":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"daGPClBoBM2_sT9t_urcR":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"a5t3KtoJObGYD_6UIOXYP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"mKP5lmkFwba4Pxp3rkmfH":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"ZAC-_Qffw0n_hJngnl01T":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"tpLBKCSReqtIDPCqQgRjY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"4PC9w405ZTxPdoFu59a91":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"btdcVGUKwBbPGHnCKD97d":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"gk4BWlh2fa4saBS8VFcEF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"lErlbpma0Jn_YTfyJx8xv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"HEFPqaZ9oS4mFIsgskjIz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"I1NYauI6acTkAX_o67oXH":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"VMZ5ouNiHyhHco5WyICSM":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"AnqsIaFDVWPjgqocmjqY8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"X_SJwtSOa6ER7CmrGpVCB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"6_th_bWJeq8GeVyjyexxt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"vWXszpIzChaEqbE8TzYnD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"trGbo-8gMub47LTDTlRRv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"yKCRGxejEyiWzqhXFcwNk":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"Xr7X0zzipxzbUvmEEVCVX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"YxZ5WeKf4WpxG_H4hVA0i":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"95iSIq_85Mdlm3UzxKXo-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"pcTY6Ykl9lbUa2jC34OS5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"vwti9nbqMjilSD_zQDQB7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"Wkc-cL_gty3dtpUY0yFyn":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"TtNNoz5WZjOXzZco85OIy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"HY-8V51d0gPnsNzuwKhqr":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"iFV9Uv5_PDu0BdeFILMy9":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"-6OzZD7e96a1KAj31-Hkk":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"QColvVrFDODO_AROGmHak":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"6c0LjVa5Dlj7O59oa3ELs":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"eeH4WTywPHVW_MBjz3Lgn":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"fSJZoxu3hiHOk9x8nMMo1":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"pXWk7bvsUtsEP4IoD3z6I":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"Ohu0smPZEXyIHZUb5eNyH":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"ZVspU1PYXGSiBlyGHnDAL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"91AxyupMsPoHwKBWqtb2V":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"DTzQLMRE7U8oENrg0dZK5":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"1UMlOrWAVPxDG8WYjXeXW":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#height"},"dp9RgKNYMnY3rjGv2RRd0":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#width"},"VphVs6N2cJXdZuvByRWQ4":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#clear"},"mv4awYs62vK0AD8WuPgV_":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#constructor"},"sNI_h3ZaD6KtjJh2w3rpl":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#getImageData"},"f478v1DfrRDf5KHSJ1rEX":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#invalidate"},"jUTBrhGkhEu68TOcKcG4m":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#resize"},"NyPxms25nyDn1qpx0JAsf":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#setAntiAlias"},"6b5FCnNHTNHuoI2nVSTn4":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toBlob"},"6UreinxWYkCW3xSO4ghg3":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toDataURL"},"FnNlTXqVV-Ys8zCOtpuu3":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toImageBitmap"},"HsEAr_Ihyv59TG9JU9Swm":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"ex_7LQ8--wO0rGYpq6XV3":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"9BevrQvNqPF6ZJmeO_l6M":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"arosDKfFLR-kB3udeX1Qu":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"0C4NXScbgCL_IWW3izQSZ":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"TsS_lbkFFXQqwhva8ECJ3":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"jT_OSTub7Vqz32ImJxwt7":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"1t3h8WQvEjb1-y8e5yWcW":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"VioWqNmndArh86CL1ge3M":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"5AXqBDFHIOHHgc0QXf454":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"jdJS4ZQC1LgLUJEBoL0Cl":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"RGW95n9jL30c65WiAWKrg":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"7IAihFZNjRza2DhnB9hgQ":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"qLcRZXB875rMIoSmpZR2x":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"-JeXee_erMykKDSfl9gGt":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"NkncZXoogQRCvjXyQq9Dm":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"370UEENd-EORl_lhPX31d":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"0Qp2yk64VJGCSds1wClxc":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"7tar7gJAThtNFBwciV3cP":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"63ITLtPrNEnp1cPTxY01p":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"vCQU-HzS8VdIezIskSdv7":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"wZSo9Z3AinXRgor9aURan":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"5n751BEOANFFhUusT5lbJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"xPZTvI6DS4pZ8FwHeNJkm":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"-rPsziqknac4mNf1F9N-7":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"lzPW-co2sqTeeBzROBYn1":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"Wmf5N_cYosPBMT2UvV_s8":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"WXY19rgvG6Ee6N039aTAe":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"iPGxpWn32g4L_vcCZgd7x":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"JSlFN5Xj5l23GxANQXsq4":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"8oWGvlaUNKyaqKrotsgj3":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"OKSKnxGx9jNSCLSazuE0a":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"oagGff03p5nm9FoNmiCVF":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"g6xERKB72DpaxDjwd5wXW":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"6xtaIikh1Ru-pli3csboy":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"Z5cV3C50D_IjFj-TbeLwl":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"hYnBOLGngoiWec5T1aaCz":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"dLwaQX4XjX7lqhwLQ-VwW":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"4R7T6f6QArxqB8F-doLRO":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"48JsRnRwQsHCR0jUR9rN7":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"Xz7Jf06jaiFCClMWsz8yM":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"Bl5e0fT3I_nBBTlrJ40B8":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"bdsgBWSS98wOaabRCgJ-q":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"ksShqPzU3dLNpoCj5c-sV":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"LwGuv47k4Uzmt_dnp7JXn":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"zq8lPTPtPIOwvjXRh-dEU":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"XBhV3ANeXf4_voJW85cPF":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"V7lzC8xSuFeUrxtW0n4Ht":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"RQ3bzXZNYboeqdcJXwA0p":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"6cYjB4wrNPPAHktXERUvR":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"aZwGk6y1wsVtzRtbIFS_6":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"DUqs-2xclB78HDmXcIORz":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"zSya7gu5WzGsd07Dbe8Aq":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"3OpvDb1wxxTV_5o1wnHLO":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"wP9Dy8zER5EZuuRclLTrV":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"7oyslXLYPGbES1wKeveZW":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"XaEtLLhoZaXrE9xnRRVN2":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"2IDDyxyeQNz13bL7AZvdH":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"RY1s-oEQYbV562HdfqI1t":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"rYkMPyDqz3n_4ZV421zBw":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"52eF1t0W6JzkAyNYAFJdf":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"Pq7nNvvVFmiaSHkCo7K0s":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"4YgmPcI6N66wPEeYZWMGp":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"gITs-BHeg8wicuZop4ylw":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"9wkvB76Z_Kby9IcO0fhfu":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"pnylOiLfmpB4hMD_ctxdq":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"RBubm2Mg50nbwM3e1s01I":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"4N_zVAsBEf3ZmIetFTLOx":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"PuIAlTKnlTT8UmHFKgaMn":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"-KdQgy3ktG3QyBauZGAUh":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"pXIFY7neZesFjingeF0y1":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"azxk44VViFujFJsR2fFPp":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"cVs5QQjKmA3sZ2iLhG9cY":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"7_Uvpoo52EFj_Z2F5OOAk":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"xD7CFeERZsfEWKJWJLHoy":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"QemhTw7koohCkdgVkK6UJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"Vm0_2Xew3M4WimZ9O4DwQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"2j0uwPvnwyE6DuMnjo1MD":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"bfhHd77fVoEVZxEk3ZDmj":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"eMoGoRSeT1b1fi5H3LeVH":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"qBQDmnBS_sc61P_krKoPz":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"3TTkyKK8rFVYll0QY1ItB":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"b5W8TaSCTKQoF2S7lX19L":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"pmRVpuUE9ErIqy19mjAbo":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"R0tnDYsI9GWmNIVU142Ed":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"1utJ5vtDkeamaiLjCFU0J":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"efI_vZ0syMzkrZBpr0GBd":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"AYSfUqyyL4nN_EIPu-oth":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"vC5A9FB_7TVR9nSvHcGY_":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"zLEdQ5ehMEGhNjBMNvojk":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"5DUHZN4oVYWdwuuzG6Z8k":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"YoQH_UkxVF-pB_gWSGFzT":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"UR9kJP9uERHrBAL3FJCz6":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"S0uZCSK-B3CKCMR2qJw7y":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"P9vZsm2ZJEJ0D1nyL-P9y":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"pcxh4KV7NSIewF_Wq4c8W":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"sDCAmse-5-q7N1tYpzSNV":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"UpPRLl2bw17zoSAELKUXM":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"erc0aVoFOZS1e8pzlZZjq":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"AOXtUmK4OEAgtDQtXgkIp":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"_W9jwyWWlCiuaQVKY5J37":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"Mk_Isd9Brm2byrVWDYkY4":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"utPlYJAD18gu7LEAy_mV2":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"nhx_uDJBWcfEh3SP_DLlD":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"tACnIit8ECgdYcSc6cV3b":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"ch_JgLFY7R8fHu5lnhjTQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"3ZMWy7D8KdGgGY96cpY-0":{"uri":"/melonJS/docs/melonjs/Color.html"},"3nu26kL6WYhYJXgzDZGzh":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"QsjgoWP_DkPqZTaMxH3OL":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"G0pdRsQemR-AUMXRKSD7x":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"z-6TbtQOtPsmp_RKnOmE0":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"WiHU0cnYkPF67wbWbInLp":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"gfc-fAmEODvGrfw_uS7f1":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"sZNhpoeZng-K5NBCTW3on":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"cp0U9EkmE7NSMtYM4ASOV":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"-LQ2MpSaW3VIWxVD52vXX":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"8gZjbuzMcDhWWZq1TIClG":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"T5_tian9U-GCRPB0YZ-TP":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"Z-44tr7LO9bBcskT8eCXe":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"aM-pyDVXUisKD_f04sWNY":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"RIQMUqKCtng3WKoZ2Q83X":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"jOtNuX5kqy1RYoTlpKXOq":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"c3qx_gb1MT4BaniiXOHyU":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"nfipfv_xt0hHV40t7RXcq":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"Y5IAU1W72k3OgJ18TAkwx":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"Eg8-1MLCGNjlhJqeEPTIf":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"gQLOL6jLM9OagiSNHonlx":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"sXQ8d2c3nYAAlBv0WkDO9":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"HGanYC2RzurSqisCDHZ_3":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"OWZlXDgSM5Cy97yruQF1E":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"avU0ShYVhwfgfgnRDLWLf":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"m4l3z3gV7wO0IijiZB7hb":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"g5WeDJsUu-_4tm8-FZzH9":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"eEi3J0UBF7iZm-HuLc5pv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"pNFAYEd60HQQ6fGUoV6aW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"HCAA9FkLjdH6bx7_62u0X":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"JJESVn7vUrro-mlZNNwCE":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"lwVzm-MCBZ7XGR7yg_UnI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"sFhetCp_zysf5qxI85DsD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"GofsjtbAjO9f5OmR00FU2":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"3Uh-NFNBsD2qh6vmhezEX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"oOXemDmZMce2P0VfauwEX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"llp9LLTCr29IIWW1J_bZm":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"wXFonQrCM7GKUurbrVfYy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"d19gCSMyz__MBEzkmRjmi":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"GdjCM1FQdF2bdvHXRez2U":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"j_gmr2E51HY0w7NpoHWT-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"17MZWjMJah_geKugwbCSn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"66FQ2t1jHv4DehHioeWb5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"LmAmUiwUpdkRPyKKN9Q06":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"8rt3HySahdj1AEctnK8Ic":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"04w3U5hbgT8JuIYKsHfrw":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"hRu9Vkp1aqv4JcFTsB94_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"go-lsnbZAlZimuU00LMaU":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"BnGoljaPLIUwsCjRLqRSX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"9fFh_xsV_EWBrbxegJNco":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"bJQ64rvDymfK21ugmwovP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"Gsp3JwmdiebXawGZOYtTg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"i7CCpfh5HkI8xBDllOE9M":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"J_Wnd6jprBU40drDLiTXh":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"FQp8ZaxspBb45K9z0m5xS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"wqCIOK9nYZEEMCe6CJyYq":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"257lJAlIi6c-x2yw1rIRc":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"qWzOgkl_sEUvaaUQ7WMwE":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"HGV1w0dIbUSwrF7t8yX2w":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"rkiFsq4TCTW5KyeW4E8hW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"HkBPE1nZ8re3jPs1Jlz1W":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"t9DTK3LvJiOQL1Q-BhEht":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"U_dpiK75HHYaQZcfzY3JT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"KH1iydla-umMS7cineUje":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"bXfAIiNoVEUSHy3KLjDBP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"9zd4m6GxcvB1TKw5Ty9QE":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"3Ivwuceg8oxcRZ6tpPkXQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"_zfl-QBrP9fHYqzjB9kdC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"98qvn7RRFBnPN98OubSuL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"yKr68fmU7uPFsIiMn5xDy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"j6vjy7U36TjamiwaRzVD5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"vDwNU1PyqP5bDUk5L_EQJ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"g8LbscdVVTP8et8aZInzk":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"Yw30ythnxBqhrD6L3m_c6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"UO9oDh9GYwspnF_HDWK9v":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"UTiNKsooJZsn9bzR0j1K6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"u3rWu2Pgo3lRL50IwogZD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"JrfoU0F2hy_j4LALveo7_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"3F-ws1_Sd0hnvsbgg-9Ij":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"lGJ5VjvMoFXIHyjJwzk3h":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"2tOaPa62fujLLNlnm_T3m":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"ZNcECJcHKnyQa1QYPuwql":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"4YpvtPZr05zYhGm6BsFuV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"Eu3AXplk-pRiP9dx-8MFS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"d7PxyYHnQqCsLwON-dIMs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"ghncvvSKc_a_ergGpZH6k":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"h9Hs-e_9kOezEQRq7tbIQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"C-kSFQikAWnOxGWwQuHmQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"Il3ZYaU2rqndnerbxY-V_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"ayye31Axnuqc8ytN48sPs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"XNqAdEvwk0l1mDTGwDO6W":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"nQUjCrg6MF9pft82bPgor":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"vM0X4O1dEzhleznY-uNhN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"jSrBto5yBzJlzfpuOT420":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"2FcEGCCU6X2xv_HfHsVtZ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"D0OxFKnlfC1l2k4ul8dJk":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"YcLc8ICyAxfhcdXBR8e91":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"wOv0IJEOL_-uPjTxN3It5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"FqGngBTYz-AY-ROnTYpqt":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"kvxdkuSWWDjbDDjBDvhDD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"qqXQLuCtHvccnyOJT9b8M":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"jR6Y8Xz7iQ5CYO6_4wLlj":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"Xb7u5paUEmwv8fm7eZ90j":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"4J7oUCA5Qumt4Ws8x7kan":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"UBPdrxgofziQihu7QtgDS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"g4T6YjY2WqrbYxLWd8THU":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"80V8TIBcawcc17bsD9-7F":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"vNqRylqrr6dZ-1T7tbALb":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"si30D6Xm34tqo2rFn23KS":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"tNJqLOroF2_RfCIo4N87f":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"5QVBgMgBE8T_mfao3lbY7":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"ZnNFL3gx3jNlbwMDp0xe4":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"3WHRKYkdEbG2KbwAZ6kLL":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"6qj7R7RVYi0DDNJR01txZ":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"OkjWIO-SO1UAIlIbwrkuk":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"eB-PlOIoF7OlibQ4sBM7F":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"HFxU5qL-A5F99KbaPrSYR":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"d0YFAYzwpYCElzE-t1QjR":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"jjz1dZLcUsva6bMq0qsIa":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"R0R3dceh6G5BEXw0KSrDL":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"P2NLSX81ENxVbBaB-pTEh":{"uri":"/melonJS/docs/melonjs/Container.html"},"ScGZfig_5NCCGVdEkgc9L":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"g2nNwEBsm4ZmZ6vP02mak":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"MQ1KYpw2_WlQ8KT7-NcB2":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"H_1oGpA9A34MR0dv6USdJ":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"3b0GUWWsViRkUwOcLvBGA":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"cU6YnLcSNqLeABtp5tFxT":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"Puz7oRByNQcJs2kAuKGa-":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"RcLNGAoCsam87hJkebPsC":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"lJgktEMGLphhF0tDDnquO":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"SyaOETKGzcOodxxyL28pN":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"DbUN90TSnUEBm7zbSgD3H":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"yVaVpn014-IjmbQTgPbL2":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"VAqY3849IqcLP-pSsug_b":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"jOWwZs0wykGxoQh7VABnK":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"Z4YV0neu5ukBozshFy-e3":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"KbCcl3RN1F4BEf0QTIdOO":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"ei6tX-h-bLd5GMYlFyBFA":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"5928XrZ2-vup5skfb8P_0":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"9KOfRt29kDpDiv2wi8exJ":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"K-vv2r1Aq_iIuThkAIr1V":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"79P_QuKeYSmS5zkO3DpaW":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"JiN2XlEXUOmrtd1jfDWI8":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"dds8VZLE44EA1EepmDNZ3":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"r3oVz8RHqym_vmutfrqXV":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"Z90hUoLRnVssclCeksP2z":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"wGbnuuM14If7c0q6lQxCs":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"Lf6fTzvc0YhKDRBVSovIi":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"499MenSLoSZBYo38jrwKG":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"_hKUHoj2hlgvgMIfPmMuf":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"LeXX8gnoJ7MjhIMOA6okC":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"8o83YVFQY-Xn8TVvFrqBE":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"YtJVmQ5DiT-zwudOZxY4N":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"Wgk2cUsL1myV8uUvUDpZl":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"HVd4raoezPZTvYleU4WxN":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"xp5ZRYT5nMbz7F4ZPmG8l":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"fCLd2z7ChQuawtSVEAHp-":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"c-dbDNlBmBvuFIHctNSem":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"sTzDJ6VvuNLQ4M8F8A34-":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"9UomFkbfeM2YC0HAulsHn":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"OXm1nAMYk0XYD7V5wmCKD":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"vHpMJhGboP_a6Cm6by99J":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"C1IW9hvDr91v437Fx_KY2":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"55IS4q8NDeR2-PSvh_643":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"rovSWk-JwjlMdaNqIUEnq":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"lyFktOV1uQNiv9Pr4EQLk":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"Pclr4sNSm2mnqj2D8I6Y-":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"s-KKpcbjEX8fnWOB3gsJX":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"KQGpBVL_nGUq-K48_NTud":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"kEvSW6P8aUqGLiIZnG5nP":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"Ukt3KduHZw-9qF12ndDh1":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"vw24Z6GlsoWB-dPYkH7VT":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"kX69hABT-0w1m181wYtXx":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"pHynxbINAGEVI9X6kHdQB":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"bGKoPx2LPARKtvS9Wwa_5":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"UoZX1_wKMjJYvo6aTuAHZ":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"FnpiAx0maw1XeAp5TBazB":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"k6VqSdmPk4IQRxI32GzOm":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"Nfqv2dl5ADoe6FK_2hBux":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"z4Wwg3us8R4HVVKHSVSQP":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"DsHTEXEczo7VscqlZuk0V":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"XvHgjrLYodCpqemUD4IK4":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"6vJ9i4nHe7sroJvXHfpCQ":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"3wHXXNj6WscSwG1jukm55":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"iZpAnkJfkI0jkrED1wt8G":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"kgfOnmqBOo9x18-MhXeUw":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"HTVzfqg7PRrJ8shwzj_A0":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"oFEssP_Je90eqn6wYvE5x":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"ctwbYYWvj5-XVWXiwrNQm":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"fqBaIqviNmUWyA-S-FIIM":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"G5vqWEXRDFPCecX36mCc8":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"VjB4lUkin0oSWavnxgFZP":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"wiON-5ZdAaf_BP7P38IeO":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"-cDlEox8JEJl3xQtFEAGi":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"7UKfAgfb8V18apfVQC9Ji":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"SaupyNX-4t7auRzLhYu_b":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"wuiaEBugaOlGBir1qPUFa":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"RJ8KHk77AomVvK2OsSK4u":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"2IKSrHBxz-gJ1GGVOeabB":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"0QP8TSe71Be8t3d2nMRdb":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"Ajp7i8Rxf60k_6YEqjDm8":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"NXSFZkvobaHXBlWqn-K6Q":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"OK9kw0wqMGeHGEW_MX3PF":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"m5s2FCv0apED5EmqivR9_":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"-nLkH9dE9rk5-emI-AwNh":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"gFmigwiyg_5nhhd-fssWQ":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"kCvfuQSo7GnSkVOkqWr-J":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"6YQqeDybLkEPj0cxBpKJ4":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"Os7N7NmnOsL9y0tE6Vsgl":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"cfEQvKvvVWKdbfhl7p84d":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"R6OLFAFmpxewdQxz2mljX":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"yfCmlwrRo4KiCsVmHQRHg":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"rcGX5KglZJXoncauJCCxT":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"aWcVspbTbohlh71v9qMXa":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"fvn2XNhcE99BuMRJVEA-r":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"1ppN6pxQnQvK4GddZFRl5":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"5d25ewoN9H_EaeNNDIPBx":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"62hYgty-S-_j0lmK4CKOR":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"de9LTDI2gYn0ZdhMcHc0y":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"6T851ZACT6jRUOpRG4MjW":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"B7-u56sz4y1EvHrUGxr-d":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"QeCPMjA_ww7Z2YjeeCx7l":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"jb9n0VBWqc6aIwu4jbVsz":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"SL6OsBuzF0Ntov59HUeAx":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"iDC4qe-5jspkkTPQHM5Y6":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"4SxLe95aKvS6O1CuDi_Z5":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"q37Q9WYc_COptFywdDe6x":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"mfCArEYk6OGGAvU8XGMf5":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"VW0eCLr-pokUykY8SAdQA":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"zyw6MnPu1iJEdzabpP2mh":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"UMHZYN0aJhWdBE3sHCpcq":{"uri":"/melonJS/docs/melonjs/Detector.html"},"fV158ETwqr3fwCBZ8KtUf":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"dUPmaE2BSWDeJnQEKw2Ow":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"3O7hNcH2Gb-17xxjLJqaY":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"TTVkAPHp5_MiCf4IY_9CL":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"FtqP925HWmlxxbiJj__KM":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"bp69Ik8GivNGiE8_AKe6F":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"4uTvViiX2zpOwY7Vw2B--":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"tEy0MIy8nQooB6PZsvMet":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"Xe0PTwhrOl_MEH_ZUKpoV":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"o3pUF-QzT0ndAP1S8c-1J":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"2ASUanuiIti9I9-l5mOHm":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"HlQz6F4D9sKV5pzbn-_4Q":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"DcyaRmpgaVjLB12K6ofc7":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"itHolSrdepZ7nTetADUZq":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"4j-2CHNIk4KMxs7oWhsqk":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"j_oKzBZ93IBszbQceqe5X":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"i9hHG8BqV-Fs5sbYYV8Fi":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"NjR5VAJ-K4aA9iAxBwSce":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"frHMif7s_4Pf8R6uvPX_3":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"n9cGJXLScWpmcpMONT-yg":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"CJiMdnOy9loyR0pWlBDRF":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"WggnJHVF3eSF9hwgFz7l4":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"Z5Yil7EH5h3AayM-iTlH0":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"3zpIipv5Zibbe9jmpBu6A":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"wKLzKiQlStNvHRE2jCYRj":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"C_DG8yKo5pxH6fpS9cMKz":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"jMDKnoHAw0tFRQQXprc6y":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"CQ-4V6K-YcYD8DwJwfMr_":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"FScxVKuPQojP7kZhDAS0S":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"1BfJg-doLm2LtOPcXvgRO":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"Ydzyme0OJOgo5rTBYq6ur":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"bPRXSrDOX9kxt-fiJA47I":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"Kfjzz7AkD1a4fzJ3kQJLp":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"zmJ2KKYMO9I5mpMLZWg6I":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"6qnE5nlG3Y-r4udeeGelx":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"yC-m8WOq2dpZ0Bmv7pkKt":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"9ny5taiyuaLDN93T4fHlO":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"ZK2bSxiuPOvcCx4xjOWX_":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"bXNpMkAGT-SHVcJjg8Yc0":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"VO_S-hS5iFOQb9FeC1vNl":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"CuNECWg4JfB2RwEZ_QNGO":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"kx6Cqt-B3Uvra3UFc4yK7":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"gfZrtfJLiHgxPkRsTo3Ck":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"VOQgMeG9GNPcI8XXE6cGy":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"UrN91bVmY_x3IY4Ga83v4":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"4ie_QFv757FacTSKy9JJu":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"xMLl2BqKAslJt0qCTeGA3":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"4wmgA88A9U97FhTPve0DF":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"-BwVu13hM50w3rkwTp9w1":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"0VgPy5CIA7AHwqODJGJ0K":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"DyckySSz7d2cxnV1OM2nm":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"4zzHfLiD3-0idS_wGFMid":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"71Zf3LYzEBZ1SzEwd29S8":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"ndJnQhc7xXsnyaW5azNJB":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"-rvQmeEIlwM_mHKVY9xmq":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"ISRyY4oWI10gTzcxt4ZA7":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"fwpQQU2qPWAyoGZhAPidK":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"oFFgSTkLJzoG1fL9rsw7A":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"E-F_LF0YZeqzttEfEq5MK":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"pSH6bgWKmZxJtx0aio4B6":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"fu0t7nHcR3Jhz8X_QarvQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"YxtyKiDaSfikQ8_ZSzuB1":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"c9YrAFVWV9RUsuLYX1Ipd":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"0qXVYqpYB1_Af6vu6p9Uw":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"G5DMeIxKIziprk4ipa-UW":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"JxPQt8Dj0SXGNBYDiJ2ai":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"EyzX_dDclLWMGTsSAVFdv":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"TAMd5sCojtu9hyx-Ht0X5":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"OibTuIksuYbkBaMXxiuiB":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"XG1ruEj5DJBBcbVZwd9j5":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"QWfUZyszjuu0Fcyws7erF":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"gzT9K_VoQ7eF7yOJVTRdZ":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"hYnOKqwO8KV8CsYfKatDR":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"abpJuewt9R9HGq4qaEi05":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"2XIiysVRhVKtsjVEUxxHR":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"VLhqVEliAjuhKs2ABqPTR":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"c92ThiI8xI7RfYpyHkuAF":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"nsFra1S8DJHKDbOVF-WM0":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"c3BxG4T0ZMNq85FBanm03":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"9142xAa57NIEF6cWhZ3Qy":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"jH19Pjn4X8TAG3YsfbR7e":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"DMtsFDlbSeBWzE5QFNfYa":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"sOClt8nIZnvahYjCYd8qM":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"DjMN12Re45WYPJqWyk2hF":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"vuhAHldEViNt9RcQLf7mQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"MOAC78ZSX2bvBrp6vT3fx":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"Zchx6RPMcisj_6d0Yq1J3":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"XQUrphNPzdqf_ruUB6QRL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"eY-3zU5XDqhx-HOQmcJ86":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"ZWDQQiH5AX6jN7ivHMwbn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"PZEXpndkAXnmBLJjjsgRm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"N9LGr63Jn7c2ubnGVKbVA":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"Hox_T5nq72gshKjurkPVb":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"DmVtl-8hIe0t_AdGZimho":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"gH_J1OiwgtvRxsYdMRdPI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"HlWgGC9gNwNUAy5ymK3ve":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"HJWOAQXCjV3jUI8KY1ngo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"SWvjJalwNMYKUnZ_MCPL2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"jcAJ6mKkO-L99M2WS-Rtt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"CVjmO_Xx6zTZCt7vSBDdP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"DdyEp0m44TV0gYql5B4wo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"TLPkSQ7aToFqGmwg_UfHx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"BQr7d91UlNsvmuT2eXe5E":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"PGJnyF2jOJfkzSYp56Mz0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"iyJiCJlxKRW6k7OWXOX9W":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"X0srgMXP-XUN5Zg_Bp-iD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"EzPmrOf8I2nHVVIPBJXzr":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"39qsjMBsjkxorJEg4SzIx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"e75au0OOCOp8Ly_nP_TNa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"BB64uOvykUeSBtrIy68CC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"qvos5zqTLOTWnqZ8T6K-1":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"42ldlzZz1ex669kitPDWM":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"XkR3Z-CLMtL1IbnsbUopZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"nEjlJVZvHtqmlX-eaL4CC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"lSsREC6S2i0bYeXQ0EZtI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"JcfHu2kNhX1C-HzUfpAbw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"gpS-FgugVpqvp_zlkYcv5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"Ox5mTC8_oYXdoQf3ErVPx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"WVPI_LqT8TK8-B8VmmvIg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"SnLXqcQ_CthLGDHnAoshe":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"IxaItKEgVf9lW0N7jbt8Z":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"BRAX29wfQRkXwUOyhjFUX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"oRph5MCJkO6bg67xY53Nu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"A5x6bnSnP32_I7K-TAFWE":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"WMZCF101JNqoqyCzwT3x-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"KXtYByIRI6pvYpWfC-WVL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"3x-oMLHaCFJ8N28VK1Kkw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"gq08IXHTyoPJaJtxEwZgk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"3uQZXWqguDc6EhlYmn19U":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"r4rei2Huf0Qso-sWHQaBz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"H3hhmtlnaPZ9UcJWnB76E":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"NctiJQUrgSGUFoW9fp0N7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"lIZlR9itEw6a6DDpt-kKa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"AubmHTGVvsamPNDpn7f7U":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"-YDvk7bRtO4eyRU0mBv0b":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"M1WxnlMOxjHZjHSSdfR1M":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"lnk3BpxiJrMUINBPdAI9c":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"ZZMBkkZbqar2nLqi9dI2a":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"QbO-7bQW9E2eRZeH-d-Og":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"bF2phcb36Pkknn7aD0JXs":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"zOk_PlHSI0gkB4FwK9o7F":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"AmGYwkT0Wquev7DkV61Nx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"eFZqKt58an-AnT-SR6CRn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"5Q3u9O4XJf4vWoY8Rn-hR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"nnHh1W6mQyOYeFxtUuB-h":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"kGFltHEKxwdYSvBUMRHxZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"Ff7ERSGDEY6bNfRcXSds-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"8RI4Y3YxTLLtsMrp-LJGx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"264PpsUnncZkCn8LBLixD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"yvGKB-iuLUOvllhwq08Sg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"RO4yfdThTFK2HFFmHNl3x":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"ofy3efZXvJ9rUUCzOJs5b":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"02qLAswG8pIdDBR5uQMss":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"Oe1Kb6LyDPLqkiobp2icj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"3P7Gy0KTju6bouCxpWBhM":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"gY5fYOo7d7wFLFw705Yu8":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"9xRnKKSi5p7MIhDgdTnDK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"ZPWXvL-s2gbTBHPCO6kVx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"bTqyptulkV2tD4WaE5NKG":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"7gawiPuW4BLzSFOVXWJ3-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"q74KgoLWGc_NdXEUUbdXF":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"9ETUo9HokWbTkKm8qJ5f7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"4IFHbgn9doMpkJlifFkYK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"W_Q5PGnkj8GrV2rMpXZEw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"c9XMafbMBHJZxCMpKxYn_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"CB5LzSYEXffjsbXyW4T6p":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"Ir-gY44bkk9JCgMVxFwLk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"icbcDzGDbIO6X4ShlGsHc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"3_6Wmat8P8UWC1AT_M4Wu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"WMEX-zqFlN6NLnyOkGeCe":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"1TQvt88zNymBsAdnYViMO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"az24VAUOBCvqvyROMH7L5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"Xv8bZzmD6Ii9kuIb9oK4K":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"pcRis8jIwRy4qrGUNU2G9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"66vRZ8S88TJyDIefCD6Xl":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"HdYm1Scnv61UGGQe5oUO2":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"TVb3vyxIA-GOdgaM7sUNj":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"vTtttQP7AlI-W_DY2wfH1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"uRSk8g_YpQphyT8eKt1PY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"0G6b1XVjrFAYyyMa-XTHE":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"SkxnPpZmBv7WuNCz0rw8o":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"9qz_Vu94ILEuVpa8Tyg_J":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"58ee8-fLAGBgilj-GN_4I":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"uAvcmcbLFe_Qr69Oms3jD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"uOOpY6RFlRh_qB5IouqZ7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"_gctT9grV4IcmlhiZN4Xv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"rLP-KixQxc8dHeDY6_mMW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"NZJQ2b5kCmkP870IzJav-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"dnJQDv8y5Yx8coy_aTCdY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"G8RGAzi51MuLmypKjMOWv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"ZtBvfjpfvsFFfs1JpPtrx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"UgX-k7on-cOuKGtKr932X":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"22AxZd1snsy61YThPBJb5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"v7_-E9tVQsLz5YHGsWWrG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"mGyGtD7H_XLu7ZXSy4B-v":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"tg2eDpbLMf_MRj456Khny":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"CipyIKZb_6EFzMoGr-mhh":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"1TmbXHL1xcEfF_hpO4TGM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"q4XbJuEnAS7LOY6wyJoVi":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"pjCu3rTpfFGFi70gL4nQI":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"GRXn325vEbOiV0GACAFRg":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"5xIU_oSYlDo63sOXusSgQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"1CJkcw-HrQDawotn_SBxW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"o-Kyms5bktjQEeqbszEZa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"Zv6k7LL_noL3RApBtH09h":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"XHuQ2KQ5JhyMEJNg3jCMp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"iXl1KzIsQLlZm-gSZH1sp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"0zDWenTl6iGtxqdHqFda2":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"cVpgElhBOkScNfC0eiBIS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"wbAq12ua-AoWAnPsoyiQa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"y8uaYfanwuTzRjz8EG_jA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"z8pFrF4Oes0qAVwLTRA5_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"zCcFHU7Xq-nrccFl7PauQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"XWNmDLwYfsH7pqDtiOpk4":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"EIYcdwIkoOGzE7mUfn6r9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"xpzn2oAuY2hyvE8VacI-8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"Jhdgb-eNFhbCcXoBPq7zN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"BukGgmViaK2HjKBiSpD8d":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"OsO-bv5iI64qDvvb-HJui":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"GZysXpGL7rxPmL6lpaMVn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"HGR_T45KNnSn2CuZTqQu_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"ZTgk1dHa4reFMzC5o1D9S":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"RLzTfuAs5BjIcElwYFCtH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"JEDv7oFpvSm4TBQ7dKmop":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"PSA2PFOpC0VhyvLrCdgAv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"K_-zjLpVqIAcE0Rs_dPHh":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"M5_52cmydpEOso5LjJKm4":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"ybEt7WUue5omGaOTk_Wxk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"5llIkTutFF6EN85vTaMC1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"4LbJCjitFDO_aOaE9eKXp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"il2CJoqYuTruNAndL3oVY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"yoyfcJfljzaozG6YCnoIM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"c_6ZTOjOWU3Cz7I5MvUbm":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"Rb2uggteONWbjKNrb6XvO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"rOakbP0iGCbDft6Hdw7_I":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"dospniiupMIY-JurLeWKV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"lfqrZWSIApIx_XPeWDMj-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"DMWjW7z8wIlATA2X8Wm2j":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"VCh7M0B5eakWUg0gJaz4-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"35Hs7MqM2ERRyR4hs3cpW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"14mvZ_rhOzMMLBlJaAl-T":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"wshn-eSdxKbINWglYngRF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"s9tBwZX5EwXg6Wu4z4eaq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"f7Ti8fzZaDy4ZR1tZlCSy":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"m9mIwkmdwbCcVoCgaUUVY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"5EUF2io2_EFwNkhjO3JBH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"1p9pqPXJYgqqGax50kkz2":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"Ejg30Q0Et7XbtmXGg7VNO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"07K6HnVAMjetdmW-Gp0N-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"EDHtZyC-Oc2cjC8qjtjAp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"2980GXTumF0eMXBSmwa95":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"kRx_r7Zz6D1vhnrkzjem4":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"E7yyFHJNq5ixgodsjsfAq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"iuGXxzrfho8Wqjy_hYwCq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"Sg5b3RxsIOPiHlQMasrRQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"111W8BZ-KFaDwANkGrq5G":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"CVvHgHDyy1by_irPwDcGa":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"fofulmjwmj4YzsiFvMteE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"56s1J_g0H2-gyB9Xw-Mvv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"S1twB5Cey3XDuKVCuDwfB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"5YvqJipjSOHBDpnsJPD6b":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"vQVESy2bpWq1XHv0ewvsu":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"dJCuauN2Mhhq5MC5AiYTZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"itpwLcFqEsu1K9fC9Jtyr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"AxL2s2iBRJqfvyOnzICES":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"zKZ_XAkD_PvsaFZv6BhkG":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"K6fh1PlPCkjcijzv7Zn4I":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"L5zo-vAYcmTkdU9rtybcR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"7Qwdw2GAiF1c1c3v_3SLs":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"ccEC-xzLRvHImzSH9Mlzh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"vFWd3jl7ktV4JZunR0CwF":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"3MKq2wPWA9rSXuMVFGcCX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"Y1keCzgvBfD00wpkeSAx9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"CezGWmn909w6Ivj7DKRjg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"-YUsiUrFbXQToV_lc_zdn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"LNgLfqnVkE1SqDYtnjuyr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"n98zMobRqyuFWjKRM3FjM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"tIYzFkPqZbD42mF2PoBEn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"3kcmf_gwG3bU6VSLg98sL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"XuJbkQ5sjzzIpm7gU9c_S":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"Oc-j5vUpSLM4E06TDu1K1":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"0a-VRzXcAgL3QS7EMnA0k":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"HOLVXW6xNlVnL2NFFnp53":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"gtvhy0MFdFdKd3omFuOGi":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"Q2QEq-ODk-8yTg-CvmqZP":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"FB0oNTQ-8yqZPP9PLsl3c":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"pMaeR3Saz0BXaaEsi9Ao8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"l_cipHUz701vs9-HM7bGr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"lIHbqd81p_UjiPZ6COxTk":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"57PY_VyTifBr3FZ1z8OG4":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"n-tdb1pDhWrwq-F29XS0h":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"3MZcFFr50U50TsQgfW1Tg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"DQMhqj_9rP66Sz4uY5nYU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"sFMw3UIn1LSTEFnQU_rzh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"5htiPG9NTDRk6LtSzaPLS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"lDbSiHf80Ph2ENldX1RS9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"598-AWVc-D-E7nFZ5GJe6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"CBnbxIGVxh5Xm4s4Newjk":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"ujk94u4k3D7dDIJJmBK4W":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"qUe-21JQA-RUUQUWw3054":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"BCqeJacoeGkH94XeuPRPI":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"L0i6DXCzjV9Txogbom0mJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"ewDrkmFySTzZs05DXxcOA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"H0Qu82eW_-uXhJ0Xx0LG5":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"oVUNjd39S2nvDTn9i8xnE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"EGGlHxfS2Ixi7v5kMx4tq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"aHWr_cdyF3eJkiUGpauv2":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"WSKto2MKIjf9HZRPZQl5-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"B4nDAMwR6YeJHgm2zoZvb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"PrvW7gQ4b0I7OFrwGB0s3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"8cAe787ex3tKF44KIKFmx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"eXwQNyaooxpwgopZUa-JJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"k7h1fM4aAy82ylXE3qVe3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"I34tSXruR1flzBQpKfnxG":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"VwrnD6qMRfY2S6GGaIHVc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"Gu1z4ABi1ROk39VusCcBz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"GxMdMlGLb0dAF96AiY6Dl":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"SsdVh8kG7nLy0I-m6Q9SG":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"5C3rDR-m3v2YjVIv_C90P":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"KF2YVvOCKuSK29LL2MVXS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"2xD3k1Y8Yisj4CKYteDdA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"Ex-H0CV4uQmyCKfjai9hc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"AnG1cH4JBSAyFA5JRAHky":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"0vLVBa-25lnVv_H5JNHjz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"U2-NKoO3hR2h18IJXTQrI":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"KA3sVHWvpwqLptpPyoFnb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"wivNOFdkyjnISrTvQwFFS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"hGfDUp4tC0S_5sBp7cu2Q":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"oWSXgXMsbmuaTogl_PhAH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"ftpQfbJC6JOi0GJ6D65Ny":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"q2qASqB65evv2fTdYlFQr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"JN5CrR1X5Htfe478E-LgO":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"AGpFl2BvEnZxEXfbFtcD6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"uyW7BE5epidrhwWrzRDyT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"VfB5xos5Kt7vZoNypEs6p":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"EDLhqz-h0_7Y4GUQuKx2I":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"VMbzbu5OHbe47DMjdM2qn":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"BQCs3no3icLaKKHFbI6iA":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"lsRwTsqZvl2m19sTD_QgV":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"3dlmAgdJZAMkbAFnOlAyH":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"tUdhH7HWJmYBITKhKNBJn":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"zV9ADE6fJ5l22y1FKEXv4":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"d8jPTmcxODwBuoncsF9Le":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"K0_YjzUt1IXcT8EciGOi1":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"ZEVAIG4AhYf1j6AHLg9gO":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"7O4aRO3KOpW5sF016b3jJ":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"mUxbFFX4uoMNhJK8Dmiqx":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"sNaVT3RIA9GMfUkshwu9D":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"PCQm3Zq_ZSwnFHblLSH78":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"Uj-WX7r3D6QMAJ0H2_Yre":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"TG6G1E_gYvPWtIt9_tDkD":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"vKhlqWdxGiTaByHrW8gK4":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"9Ilsne50gZpVYvxNoKWXC":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"RNCvpI_mZRy-QoCQu9j7O":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"iwJRVm37br_85H5v9AUxD":{"uri":"/melonJS/docs/melonjs/Entity.html"},"9lv7UJb9EbEuM-1ypChT3":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"mSnU9p6hZA3OBiiv2NRUE":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"5-bTp9idIq2scLenJPPBq":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"kZ1YKQIW5DQQqkBiSeRwz":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"eaZbV15lEjC7h56D9RJbA":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"tnW9VOCjd43OsJvqcjPQY":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"ymcB1yU_UGZdDDYgOaR5n":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"bWyQbEOrYEfDWgPaPL6Fk":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"K7B6HiKlBAUMP7PAEv-Q8":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"ZOJR_cX-BuGFDzyTOgBaN":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"xvi4idYhbzX18gT5r0eNb":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"nb2PQPniwVUmoC2pJx7M_":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"1YWpPAVTu8YhDOFT44Bc4":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"tfTZvMj68sCvgWe6Ap-Gy":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"bhqB-rRLCJtispSkPsZG_":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"2YOSqjHN_uvLs8PClRBQu":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"vZ0YGnbE-eBPKlBjkMCmj":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"iwyntmw2RSsvY_jBkJA25":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"M42xiTw4g4Df1a51Lx7BM":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"MNvx0mZMgfkaBsgQgznyD":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"mfZzV8TKmP7WAebl3fD3B":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"76v6Q6FshRrGwAFDd3Hup":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"QVrrhXxjmG4XINVrMkjnQ":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"2A90xlt-4rGVlp1Hy_nM6":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"ESTtRMHjrirWrIvucf7Wf":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"sb7-d1yoqbYSPPekpQvaS":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"4w4L31p6_w-JmX3AikQBB":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"xl5XX1R2SqjQ4s6JOb-N5":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"z8jEqXKJ_NvJVDnuHaCPh":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"8dvVVsc50cE96JzxIkUqw":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"WZhC77CN6Q6dqJM_eUcxe":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"QAymK9SzuMmjT0m38a7j8":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"MKRgzln4Zrm6uYXUeJFaf":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"3RQRPYtytDtDyZ27lO8os":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"n4NfuRjL0xdg35ytijV2f":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"YmRQ7S7-mz8uNhN7r4ogC":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"0gDyBYi45fyyg0JJYEmti":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"XhRa4L6jY1WKDSaKxbO2p":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"ZDLLC9VQOQZBguBnisTC9":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"5g58pM91beizYLHVmT787":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"H2qhZ3Qliylp188HQyZSE":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"-P__8irm7yStZYeF74-V2":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"lhdXMP474q3I_Wq1g-M-q":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"jBl2Nw7fbNAR062f0SK7B":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"zH8FMUTIbYuc_UMbVHfq7":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"wFsQXhNXvY7cKIHIXwoIw":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"gObSn2YSqTwSHTBG9POOK":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"PpE0ZiRWRYPC7QnnIzRHd":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"QHO_aA1l2X6GH8mISB3Ts":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"hK5iY2FFtsgD4rDfNZlA7":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"v3t2rdasEZLPIgC6X9mN7":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"nWKIRMTWuju5eTo-Ku97Z":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"FuK7aaFNTnVJjPmeT4P4p":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"Wao3PHFQkFZZw2XBILf_6":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"qOxbg5F8w_cIQjl4Y2J3V":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"K_jik2Nl7uAZ4ZmsFOBY9":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"RGuQ77vLTkbV8rg_oJyQQ":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"tSoUSpEg0Q5hhZJfXyok8":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"nqXwE0irzhJw9gHDVxhNf":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"QUNdKcoARUC15nUNiKc8P":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"WWTp0B6oLM034naS4rzX3":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"BueY6zMQ9kMaAjDzyBKOS":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"25QTRmzpBxeUP0f76yNXj":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"51qW1cU0U0dSWTlUCvjB-":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"a7d90RoJJb2WZOrfJgSpP":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"GIKtYVY6m8qgTdMXH-pL4":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"4M1Oc5sZy7dHbO3OIDy3m":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"NAPy0pLpTNAB5wL249wAv":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"WZQ1jWzeC7ddOx4KseuXC":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"pHZW78fbH6NcseDzaprR3":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"rA4a-cno3u1uqfMl1H0fH":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"64ox5lOeTR0sLdJvy6vn3":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"iDcXu2alPtsMqYTf9A63b":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"icR1e5JBJPtm6fKVfPmBd":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"wnFG0qK5MjzsnlIOGYUAj":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"4Sw_RKOVDs8ucTMStcVog":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"iLTOaD_mfbaAprpnqXuKj":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"Ytk5zJEIUWGHthh_vWrZy":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"u-yBpo_1f1RBpu6JAOztT":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"q4Ya-fm24k0pQp8OgCIhe":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"YKrF1qKAprntHiIHFxOvI":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"uQ6grOqTM_nArMWTLQWdC":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"zCAk9emC0SBQ_WPTeT4S-":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"ABn3CZhMgpLfioWQVroXi":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"j114UrRXe_FYXyuwi9Pzi":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"ClSz6XKkt-1HlR3BoYZQp":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"EH9b2AM6-qmqSnlDiZihv":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"gHD2v2G9kGErEJXn_ZhXV":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"_veuc0J7mf8zYGtuRdWw_":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"4uvtJWPBa78oMXTzYcwrs":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"Q6DMgjyQ8WEZzPHbhWiJc":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"6WcUbfjpk4pp3ZBz4tggE":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"aKU9eZwOW-PFXWy-tNNWm":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"RSou3stUHtIkH2CpLhkVX":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"86-SkWluWghB_mmYQG8fE":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"h2hq-rLAD_yilGxHc8076":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"kbRSxR3OFwvI4G-KS94e6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"FGRAufwVlWWeUy4cB291r":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"KTBiOl4Rms79V6X-5jn2P":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"60g_WHzjlO9NX1FGGLnJq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"U7C8pEqT8b-hSCwXTC-of":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"3MITWaqe6ICsd_NsEm4f3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"IyqewAhIrBuv_xSmjlR5V":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"drlSYFQKXtI-IE8ob236O":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"j9u0sYwVHa8LSKqvDFmy9":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"cj9dvmC7_xhvMn9loWwY6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"rDz9ZQxPLb_6HxG0gfTY4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"rIYqs2HI94djklXXmW0Pu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"xPdUBNG8hYl94O97ylpnw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"ET8PCp9NT7abJp6SdpVc1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"oNohQgp5xdYd6GTjjFuJo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"05CdJTn4pgVYKZIk4viwA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"YlSY8IKDrodREcabHLs3K":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"wk76-gmdCXIWhECLRxH2l":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"yeD9_voUQU7M-R0YvCoCd":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"PT5L0wdNtqTiXiyB8Z5Hg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"PUkM5pa55BC3RXW9ZC3L4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"pSUmsUpxNG7CR6EXBgj3I":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"TM9393sS299s3OE5ja5gb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"LxwXa2B_j96uh4slRk9UI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"KXor80IP9ExGZgQJBRqlT":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"WSzP5y2HQG4idh__z8-sE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"eZ--e7M-DY8W0BlD83ND2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"3lidRc1wy7eUdK2Z2C_p_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"Sf6qavHPaI4WVc8yFuooo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"0fDvusyVHfZRemlhSq_5c":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"hEkVice8x3hlh5OxiZOXs":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"tuYwSHKAvxKSbYBq8B4Ur":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"6DoNG8-gWW9pcmooO4VUs":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"eLPIDBSWTyK5_X9WAch2Q":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"AkPRbiaBBAOptoHTyMBIk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"oM-CUk78keIVUFTKN1L2u":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"eUSXnib4gZv5H83P7IeRR":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"Zud1JteVfq_pWp9SQ-3ok":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"NbPVbdQrr9VMCi65PXNgp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"RQy4DvjlIb45c-GTtamsb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"A5vk7N95kVWsvwURT09az":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"K2_AG_W41YzCIt5BZWMvu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"W9Fdglz6GFH2jjJnSCUIZ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"saHhh1sWW4AQ6JMWHHxzF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"zGVCB-euMSoY0fOK-UUXQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"V8tCo_kpJjReFTtGzm6G1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"I-vNPYjsRqvwJMseQfCWF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"I20o1wPWUZJ2_Aaol3wV3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"GeeTZZK4_Fiph3jNyQ0QQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"jXmm9uy_bO0-4iNyauTaN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"q2RL7aB_IQlthPU_oESem":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"zvDAuKyiD3t64yuyOmRjD":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"hqNl9ItvhRgtfe56cZ2Bn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"T-Ch4W_woeLhNcWuWVCjg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"lb2gt-x_5I56G4sodzDKG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"wP-nyKnneSnCDKg1Rga2W":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"5h-D-lWtHnuMUMUSAQWlw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"K80U7_Z-kMJU6qa3YYVbq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"Xfz23KUw4zfu3KE1enppb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"vfrUboBdwWNgDqZwccvhz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"sRZZGAFxfy2cYuxelWz0b":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"Dq9NvPxzxrHB6j-MxEFso":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"-3uipPU9shb-kufoNEO0m":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"EwWS8TeYOeTPaZq2TvK2u":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"g_z2XkDZ1XyifU2bXK5uQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"Hua4Xi-dF3lYQwMzCNu26":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"c63AYr5eF4wgO4_guJ-JY":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"PGCThrlXx_wdd7usnZujO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"N4jUVq71zWsjM53NUyTNC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"3Su-qUjQ_bI9dr5O_Wpb_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"qCn81grmOcGsItyVgUe8G":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"U4p1iagL76XVoNPWXvg9W":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"iIoKxX4jCeNWOAQrSa0fK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"FxgY_IaxK0oAaYY3XjU5Q":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"oSFgjRJ-s0nqbvc-Cm84r":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"3JU81phKJN5D-tf7j0Qsg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"wUQlL4RgB47fzohA2vxhB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"f9DZEcVcpX5YtJnuxcOh9":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"Q70I0scMrOBwRjAMooMK7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"ncj1o2QIEsKJ_CPOnL0jL":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"6c8_4jwXmqFU-F3JdPfbm":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"Pqmb0UzIg11ShULgxLA7e":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"3FGFcxp_ZIec3Tp_-uvw6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"wTbNo5vEos0-YU1kv8uml":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"yxXjdHU-iiZD9kBkH99W6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"yOZVu6L4cwH3vgw5z09xj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"c5H6Kg8MGLU8dCRkTPP8u":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"1gBhPqadFqxAXfHqfworQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"Q5Fe66x3A2hbyFzwGpZXn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"AuhnR-QN0u5dGwxjFCykz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"kpJQ-l2ettFQBFHC3ttP3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"O0-B_3PoZGsbAUSpRVB5o":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"Nrgk5KpynX_Fi8LrxM2yT":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"Na-WBVNy-Tf_yY6nWe0Lh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"MImqR3tCZwQkOLQYO6qPq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"TRucSLMbldcxWxCdkquYJ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"v0hu_7ZqAWfF-zOY1JAwp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"gd6gAmcEOgzVmG7DcHHXn":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"Wb-1dYtFrw1VEiNKE_aRm":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"LA02lrXcrSA0kVDKrjmqd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"mqRRQBU8q-q62kNC-Juis":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"O6pGzRa0kKM1mj_X0nr1e":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"bnTMK8Vud7nfFK2vtyydf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"akcO1qjxM-qdyJV-PmU6i":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"5oDmsq2hnwB-bSfJ4w4As":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"L-MCR93abXlF71ynRnMrP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"5A-C0XHtGEWRaQwFB_sR-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"NRbJ-pDB2hWjxYFuWmKE0":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"PMb9kri4Bz5Og8QVoy1q7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"sfQsbEr2ZrG6cadcyhmUq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"YXqRyN_z5YCaHEE0fwlMM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"MiKeTiY555jn1ibmQSPuq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"TzZBUBMwlmwZESEjf3WS1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"SYZ9QBWxKXNnAPBTF9g89":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"OlIUXPcK5Q0PUvJP_g5VG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"_VCPuri0Zz9XDlShbGGBQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"giZX1qLDVbZVLjzs0oTRM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"n6YJYFySkTs-B52hWHAxq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"_1o6Pxk9qp9KpBypBjAYk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"m95a9e3w-RZ554gzMqy_p":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"hiqdZ35APTS6FPriolas1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"Op3wq6nWyKmeeSFzZ0cuW":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"qJKtLfArDvz9JGYTOo0oA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"rQZzdmGaUeySoFT6RRt1u":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"b1MOP4bWiQEF2Ru93mY4R":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"95VC_acGRswaYMfbR5tP7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"IzwQhQOa1lDUxatjiOHKU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"VL8TYn-bM4NQGNc5VYwg2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"PcWBBaWD2VS1c1cSV6cyc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"NkIMrPAM3Nmfp8Kv_0VE9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"BwGFQ8SRSec9LjUyTXB-B":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"xumDJSenyAROVYsplO9e7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"nzL7LH2_4UCWeal1i0XFz":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"RjebtLhjp4JBcDlvywlSq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"BRRVDePIxxtKbGo0RWtZl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"wVoohxhrH1r6j_HF2ExVh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"sCjoAvr475LIX1VZ6t2Hi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"F6z6zUdMtLnkXd3hvPwdf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"psRbY5rGiYZI7fUg7liyG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"LXAEBSrskRSy9Wqj8LqXt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"UvzpWqHxNIza6d8AcoD2b":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"sefLiDmnKRoUxvS8ckJwl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"Fl_ypBwO0EhZDnVeAfJsY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"_92G0hBI6rMX4WZfWtzp2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"iWPsOFRAAJjpiMZm8Y4ei":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"x11yLzpZJk7M8gPf1d0GJ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"8-BA3NkKdqQcHER4paYKB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"ImxfBBIwedzdjpZjBrDwy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"xjOQC8BZLyYOGVia81DQK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"rA-B7rYkK2LMt9Sxeyru3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"i_poxPnMFX33hITd-Dzf2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"Lf1EZ87yjmrhe24v1ZBmj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"Kb7jTQpHQRZKpfqGewrNo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"QbFOan8XKG8l44qckig5A":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"a38gqmcmFj1nm_tcjIkG2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"4bJgbc0jmvQC45Fk4qGCO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"_SdUjZ461OafF-TRgwixy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"Hox_oQASK-GOY0_b2ubYM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"sdWk6ra4pwYT4Ny5BTNWi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"XQGJe3mNkJCMuRmLFhaeE":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"YVIXIvsU8QPXoR_18qXkp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"Pzy_rihC4NXdDYY1njfGs":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"z3POniz1aMwqd7JkFN2J_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"M0KAzTvW46xP9AA-mt5yN":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"hRFvNRQiNLgIdXH_ArSAB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"0Se2ElR_fG1K3vpPVSmh9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"RWrGpCwwuKXqKdTVGs7E3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"F212vE2iaOFX0yf_YLL_l":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"IuzUrn5iSq90VHrhdtmu8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"xLKGmd2a1mlF_kBxjSHaA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"QZ7RpqBkL-_X8lvuLPjo4":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"d0F8mx7TsWGQNSyMwDYwb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"VOH9s244Eq3CAScTKcTXB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"_A2Ti-VlSWJj2pXhiubx8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"wH82nWCDHUrVjDuOKSmIg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"oANhOlEgVW6eh8cGclaIe":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"tdPScpwQDmIgKkcyxP-jm":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"JTzMxRy2FcqQyV-Ryl98o":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"fxs6s0C4rTkyXxvc2RR6H":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"KN3wAcrSzncK8U0pH83xK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"Y4lzlcvoH0NbyfCoy-eaI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"3ruuByc_1rI-mMW4KW309":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"GBPu8g9o52OnFTkLJVsdq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"7R4rIHDby94L-xutoAH8z":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"_dD6upP88ETIvNVnWf8B6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"i_AqKdAurffu2BTB2BGz5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"VqMbauxsbP3yQc1-Lj_jk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"FTNZ0cQJ6LEjQLroEVcEI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"hI9Arb5B3FPIdIAvLUMWf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"DE0uDZL8WvOsqyuJyqVk7":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"xGKbqW-Ggzu6EtWFzX_OO":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"1Yo2qwIqMlFkS2nfbY3CG":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"gkIPwXlw4SiY6uj00YaUN":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"chwaVKpUaHodHhhUS_HRq":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"WQ0HdQyDhruwO50OfySEv":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"KdnWp8SJ9TUwpu3OVCxD0":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"v6Gl9lx42N_qAPizIXi5q":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"mLYKxIn05JnMccUjx7xv7":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"OLYAE-B0eidutR4Zl8sMr":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"a3DZMTr5Xubr83HBHPOb5":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"bfLyS8zPb0i8nNkwauRxU":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"j4dGahs4nFvOIQMLh-Y1b":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"sZy5WJTgmi1QSYCQdzRLa":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"Pcm31RofAIYQWuDhYCkb_":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"c5hh3kXjMwqek-YhZt-f7":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"-2MAC9A0C5q2eq_SEXpLc":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"zWgi0oETplNwSIQ61yA3F":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"FhdFSMWimlhKqfYVLO6Ut":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"c8UMadj3XiZlLM8AZ7KKV":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"hSV0kIVlxVLsbwUWrotSZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"uHgIwxFsujHZr3gA7-Ssq":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"Km6Acg51d8g1rimw5FlzE":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"o05O-fYoMesA8YPm5D9Ce":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"kO85ajTwLYWbsck2Yilpz":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"W222ek-zFUKbUWam_PxeY":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"T2iljbtMXxFe4O7zB1yoa":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"EtXAtasQq0dwvSX4kFcep":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"6PbQewB_irHTShiN0EE2N":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"7BTSASd308eea41KxLT_o":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"n5iQu7pOB8ZcW9qt5l9xA":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"PfJSeXqfLDrvtQIQb_RIK":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"E0ou9JGdOzMD9qD3lIvoT":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"grqdJBDtJcY4q7B7GapcC":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"RHqrTuOTTJhVAy59X1IA_":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"pNn7a8fstXdN_7gxDOwNa":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"H_vhcZvD9aWpCdOzaYQ3O":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"JZJMO22qVncE-38GWF3wq":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"FTzXusoXbPtsNp2sDoyWw":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"fBkzyvst3aHg2ELsyXSUI":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"UzCI5zL2shs_UA43GS3j9":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"P9ihFlDeMIoEJzy6k15T3":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"eXUMLPK1oxhYcDd8gMGeh":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"kjqD_dmrGGjucUd1JJSh2":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"zUu3_1bGK3us4QnQTf3g9":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"0PNFyPjd-3hMzwvWIUNL5":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"yi5y3JSQo7DlGA9cH0kS9":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"mtrQtUko6dyPG2qK0Tg0s":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"tfBImjDjiieZqft48frET":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"dIsG7Q0SoHe9URD5kUxtt":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"tOZhhayrAUAWt-jrWn943":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"a89V4p-_6mBm650z9ffWW":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"fRR79fGYsO7eET2qD6x45":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"BlcFWX91HM9ISZ4DU0QWa":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"S02y3_e5uc9UC90-PAyrk":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"-3T4iOa3ivZZxsIuA7DzI":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"c4eZSxNrmYKfvlskhNqRg":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"FkdEBYnnV48LfHa9w6w8W":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"RSveLZIL8wswoclJLvu31":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"-V6aL6ZiQ1wAlykW54py1":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"XwChg8KOUs9pTDwyfq0-r":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"KuBF3UOkm9i86ZJhAr--i":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"3wXovI9J3Gg6zisEvYMMi":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"zRTsWlyrlZweD1QBYLw1P":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"YHScGROdhAbNoFwIM5yxl":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"5y5tP2qm-HDF_g0iIYJl5":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"4258XZFXI2NcHD6WqWojo":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"2GSocfxd8zm9R1TMqD6xa":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"QM_A0BeBYhjB2pp518RA6":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"1gb5iAdeJ84UcdH1KB_5j":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"s0Xbp-cEr1FGjNP2pKzR_":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"YAXvmjYxNHXUKARPGggJg":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"5mBE7NI5XlxxBjnf9WxRW":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"XAM-mVg-3RVCfOIIPMY33":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"RggT9yPiLRCpN_5N-W-KN":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"Eep8nxG9zlzK7WZTz5Oty":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"0ZrchlFPw7tmP69hw0hM7":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"C0cPl8Nl8-G3ARNE1wszf":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"T8E3JCQORxlN8BG8Oq6bl":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"vqeVtrkM5c43v3MvpRZ_W":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"MsIOA0aN6eotT132VDXgZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"EJCpqym-j6GsZ9wpi-EFv":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"G0--PrnWqIYf74R07FLTb":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"zxuCELnAszWwP1vRndlhc":{"uri":"/melonJS/docs/melonjs/Line.html"},"y39LhpMfstDl1b_-2HoO5":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"_uTJTIpkyDosgSlkoLbqN":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"OIMCpoamMvbTQUZMt0Mm8":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"SI2COkM1JwdhB5O3WTPKq":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"q9MWx3x7fo6TUMQNrBJ7y":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"8O8XoJ7_cuYSst0hKjJNC":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"kSoX5jQO8c6dnn5zPdHBD":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"hstaIs-SV_ZOhHTdfBlOn":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"Xu4WGBNJaTCZE1ETXwbXl":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"6zCz0ryUIDvMLvf1HFoaJ":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"SQcBEX6Lrc4LikhdoEO05":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"wzsuQKYuQ7EPYLJfVR9pq":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"EMH2xquZ6tP4XRrIyMtqo":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"2guyDGEvHgw1T4_tE--QB":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"ga-DEWaK4BDtcpx4ZKg1z":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"uTYHRLaQHdDxUTm_2CtzT":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"Mm_FQ_o4pEnQ3u-kUKPVo":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"OaL3d3KX8p09PrBqB6eYy":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"wlP5kupg2rdfGUhaVkc_w":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"tp02Tyf785UhNQZ9Qf8Yl":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"yYq3dHgnfJjoHRYwtymXZ":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"amfiSNgMf-LTAnZ0zhOQv":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"xnA6BXU1vCPDaqON0DFhS":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"_g7SK0ZyowNI73ztoIkKx":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"Y3eZ8kbugjPYuhjLxPH8Q":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"D1cce7QhjNa1VKB-rIpy5":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"Ls1CFuYUygDrGOqRiER_a":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"fZB_8ur8Kx7B8p2U-xW3r":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"hiFKomZrjfxUL7ZNv5naB":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"w8N-c7Y7JTkCHzt3TZvTw":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"7lKryL4IWTQLcf68GHUHZ":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"h-26YhOQ8tNrqbZpicYEx":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"53FC7r4f2EZjvA51H-6X7":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"EZJdk-69PmIxw6JNTGnRb":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"_sp_sKF2v7gYiODq_9MhP":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"aWEAcxARjLMQwy-sj3QVQ":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"PD5XePzHNsy-AddNUBebz":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"SB01S_WWOatGCLNuu4aSL":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"mZ2MI5XdZEr43JgEbwBvI":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"GKsVB9istgxg5ZVC74gRr":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"wD7fRcM-FcN0jveNEA4AN":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"K6okQYLrIZ7G70Xt5MtDu":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"O52vVqOHkkTDDB5tHUIU9":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"xv0O0GB_DQkjs8W0fqBAi":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"010oiZCOD1kBFR4rQjxr_":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"N32Lhfb1N6HS3TIayqeOh":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"4Zb3g1RcpnY8FTEEdqk6T":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"2YvjoSpnHrdFz0EWTO0bA":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"szX5rE3EiFAz7mvo1oEdu":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"4gHp5-7qgr4qrUaX_QojD":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"JD_ugYKTIf-uf_x7_ff5u":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"EkRl6CY0-jDGHQcvwYeE6":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"HnKuYwAfKfJosAsJiVsZa":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"rHrnWDNZzcw8Yn2KKrbic":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"7Aw8zXNY8pP2tNsk0sRAP":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"lhn15J3bomwufElwzqkLQ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"TYJwaR25A8djkgNsN_8Ya":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"R48SERfJpfkI8at6ZUxHg":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"m5JWfgNYSM9rw16dqba6g":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"xBk2_sJ7Aqkrj2yLU9DxB":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"Bwc4g1elDAPklBc3Ne9EB":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"NdZihJMnKJvuYQPEJo17Y":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"wUAJ_3gi6HiJC-9OrR9Fw":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"ULbJGrjsNzBKqzkSJWSok":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"ZUReJFgqIQWnn1KVvfw3m":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"s5VnJX8lb1ZgVou0twJ7x":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"rhbSz4IWlzQ4-DfuEtRPv":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"4a-DfJUrHqGYpqe--jA_s":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"ZgyIzOPLcHwIh7uZMHzWJ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"r5ok1ftovplyqlEh3JidK":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"fqUG_cnkpzsARYq1aItMb":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"h5d6bBPeV9rajNmQ2gDC-":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"m4ZqkvULjRLUuwyuS0Wz6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"KyaZ3dwtFXf03PYIPnBa4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"O9455PI_KZAaKAVgAWkdb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"7QVYUkpavQyBV8-poSUKq":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"7-4rsL6_QaDZWiqgt4oWI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"5pFfyD_nUhipxJjUnEB6i":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"KI0mVm3G8x0wuBiyx9Sr4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"-OJjNg0CkxGiJa6a3v9-s":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"Gji0ggZh6h7aSJ9Hmag2A":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"rn0V94YAX7vrLoEQ05o9A":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"_DVWDgvjYC9jTlLIDNPH8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"6ELDVyKhH2u7Klr82Gemg":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"jGx-ckRUCbV-mPENpntqo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"CctoMygPhM1m3C6TuOz8v":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"I2VbD8l9xth3I23tZX4b8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"qPRnbDLSbFmR0wYVhhHW8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"ULfaqg3THzp8KWhw-PFtC":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"w4msN_GcQbTcW3emW4P8r":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"NpFvQeOQtcy__zf1g4mNA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"iB4rtMSx_A5hnlIEUQV_R":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"gSySTexpM9mlerf5cwMuU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"XjxX7aIGZVH77vMldUuF3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"j4J302-kzG78wfs8Vsvhb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"1HoAbMqR9p8MOlRc13Z6U":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"jYv2YZFTFHd4PrwablMwM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"nDnapMs7R7vzkPWl-7g_h":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"ovb0ByT1kPPQ8qgSRuBg0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"v0lIFuV24Ypay8w44cJ8t":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"F_gTVYg1ycJCXpI-tRYFa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"FLaznoiyymxZTyH5MP1n-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"nd4jsPno8gRNNZzov7I8u":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"TOy1dwDzDB6CS46ojwBPM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"OMP37DCAFkx9v3JiKUxKA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"4-2_uqTOZlSwU1yPyHg0O":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"4Ij2fEw7mxpDN3bVpgtpt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"vlvUizEH_d3bAnARTS3U_":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"aw2fpjodCrZvKwZNrpUwP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"ei4QIr5LJrwHEyonLsOvE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"uYr7B7oc3oiCp1Aj_b_FS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"fGx5KJwhOfCLpZSVJbNWy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"6CoC006Vs2JkEAxpNsm6B":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"9ROihClNKrn1ThBD3YeBH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"D5mK37xBxad0SXuaVkGJj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"eEKo4UtnpJev6qrCpo2K4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"q7lEe5G8lxVPWunUlplTW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"wv-qzqobzuHtOEPWP4K5L":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"ViNrs-SH4bY-ZHlASzItW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"NKloYy26YyzaJ_NTgMazd":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"cYf4fne7cLR-uhpylQG_b":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"LcPt47O9jkB4ZyR9ou_Nt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"hjwvxyoVg3Rgo3PbsJaLH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"zKL5kRboZfLs6SGH21g2W":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"QH_niMLpd1qupJIsle0Vh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"ttniwYoDWIp0KTFUJIV3r":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"kcyqpOBGafo_t5RLmS8BR":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"HLuHpWyOX6JsgJvQm6_E0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"colCi4T8GKlgQM5llWXYY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"eZVEFc9lnEPyee4E1gAgl":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"IsWll026zgWss87aur7YR":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"EmEzp6ScqTvj9TU4ouL-3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"RDdRMGVz98ezWcijHWrL3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"tJAkoZnM_UtoIZaLIADsy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"vPGYAX8BNUzlvfrmoy2-7":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"fo3i9xo5x_Aka4fPpV2oq":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"PkgGa8nqd1qe3cQr8e7vO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"-onmnd7cJbJG8ghhdCnib":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"zdq4SA1xE3-avSAZE1JJS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"8A3s4zDrN54rCr763gh7J":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"ybU2dRmrW9JZkAxS38TcS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"z5y_T-xe7fSK4cS1u9TxA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"gB_un5YaUIOrH4nz9Nks4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"hD_-HBUgr3NFGlSGs4fJG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"D-1CsEByklCJ4c7Ncx2Cc":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"2Ejaph_kz8W-DikvWs81F":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"ITOhl2Sdk_fEgZVjG2TZN":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"wwb5C1NVxyOXR3TOVDKzt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"Zq-GQUTEg_YUsHbQGiBJm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"xaI5imEm6iyjBuR_OjPLp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"uns0w_9ot-eOuKOAK9eoH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"zTU54JdNwiXVfo_e2J9II":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"PduhEyYwnoZnaIYYHlxak":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"qKANv6_vcaemHLozPt2az":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"DqMdyqs88cw2H1UpVpYea":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"xdo1I2CAz17rVuryMGaT3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"JGCg1Wo57lSDCEOH-Ch2a":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"bpphW1DXj8Gu6H0GUh6Tz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"WMECxS9G9roEPuvQIFeKs":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"CIV3NfuzwMJF8Ep3m1iR8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"4XXim5MZq7Ox0h_VQTJp2":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"hoDRVRAkDg3e-tsfmvUSV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"oXSlBVDkjWekt-I7JNdFA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"lKiHESehb4KG4vxwPC-Qm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"kEp8xp42yYkJHwNighnvf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"FIaDlJFqgxGJPGsfs1Yxv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"FSwPElVBtHJgmg76FC3Ge":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"vjA7ERknQ57uM0IwR5eyW":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"sz9keYOIjmPSSQzj-qzRq":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"yswGT6LF6qi__wfOShc5W":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"L_49iBkkpN3SDHGB37Fza":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"hAwvzP-EaAtIPrNmzacUU":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"jZA7v2hE6F3wWRFpgMHlN":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"p_P4s7Ak8G5rkKH2P4uPa":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"L-W2rgLmte6R4kTCq4Yq-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"c4HE1N48LGA2VNlk-ayPx":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"mHKo7WmDG1dWhCsDmU5u-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"kXnAoMFUiwGNrKgdR3L_X":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"ovIqM9mIjLMlwjxBWDzzM":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"e6KiegR_phMv-7Sn5eNMz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"zwhIScL90UnYRI29U-7Px":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"YL9-T5VQpMps9drB_Xzwz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"zsA0rnJ21jUz8jffZ1_O4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"eod4mFYC4xLGlkMOGLuld":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"tHg-0TwN_7I27u0nc-04X":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"UA6QiG5fZIktXO3PMAoAG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"DmMME9DgikEq_9YgVw946":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"luUVabzpwu50ZHymtMt4o":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"vhd_JfWNOmMeOqKjArn7e":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"-C5A_fsi_RUSaG5r8TK7G":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"QLHW8k3BP7XStRSXsHNGA":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"YPxHf4Nz4EkoGDH33kH9E":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"r3b3TSy56_8vbTVsZmVcA":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"8UQXtNU2XRAgpo9_iQcyH":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"sDtwzqFZ14spH5I74uhYO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"REFKHoO16vyVIh2eSj4ZO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"K9D0IeiqDzmHMtxrHKnot":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"Xy6dGIl9LK25rR8nfvGCU":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"_bLjHJ-RTCJsDgCzcDFsw":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"quXb08zbFgtcoWvq0WLxd":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"8Zk38AbEZQWn0HizPoMBF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"ub1MRrKPmlOOlnq8AFHtp":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"3tIKCf1syAc4fl7lIB6CC":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"5c-dYZMXBaydDGKC4NLu1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"ixr1mJHThHONZkST7Dv7R":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"5pe6LweRVEKhVSoKAeu3i":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"8f80DtSxIRMzBXFvQdzlQ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"SzZdr0dK-JYbgUtwobhkv":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"AQ-BxCB1_-K7dtXhriXEX":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"fb-BPOvltUDv-eMVQnuTm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"F9DhnMeEIAVeM-JcRkJXG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"mrW6AHYMODjnZ8Bo3qhAG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"GjCvooehjYUqm45oPR5nb":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"NU3ZTyfm-lUCwOLt116v4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"UtNJjAV-5H9n3UpU3lZA2":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"ypSkgiIdQY9QhAtlqehc2":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"dXdxAjTJHsItmgJA3LYVd":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"Za7fUV9Tn3ODTyet2PFwk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"gyVuOa6oLJKUZhgkmnRXz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"El331OPyDwxQEIpzb4mpY":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"Gery3k5_KmcG_x47exW0d":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"RcSK5tQcge2RnR7btbCqf":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"ztUyvfwDWscYWz_IC1aFT":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"iKF1ozf7m0m0CWs2HE7Rt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"uRCi_6B9SipChXLrf20Kd":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"zgBT5q8LjJ6RC57LFh9Qh":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"WBHCGnHM3mcHIpuZN-q0P":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"HXqkCxJaKDpMrv4ta35Mo":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"2-kidx_nR4FdMwRRLLq48":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"bNFL-ldcZkAYfkRBis9Vu":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"pqkzQgF9VR11Mj6OVE6Ch":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"qTrZjhvE7Py7EiwZ6RELD":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"d3M4vgKZK2uOgYH2ML0QI":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"9FvfwlKbl_hF00SKNbUox":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"tEKK0cI5gvlNnL2CbXiAX":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"i4ONKl2g-4ftuEca21JU7":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"hfFuhbR3x8aRcIraj9uvf":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"-RnKm6AjpFPgZyzF9BgVq":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"T8iCDoralMWwjUcCU5uwG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"3cds3XlZKlbDVBpsJM02z":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"T7wqWjXeWp3cxeLSVhFbm":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"l1rWRK8kBWarQimuaJl07":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"NqROnHigjKvMj3FXM7ijU":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"tHVbWgltp1zEnxt70zmSI":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"_BobZXjLyhgNsmKG7Qrzr":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"FwC2WHKnlIKGxr05VPPOw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"VvyzyDMn6nsbnx7Tmfvg3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"N64Iqe7tc-uAZyqus6VRo":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"EHuYMgjw4WCX_n1olTS4d":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"mUFiiW6pANfr2IA6hfdLT":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"DExK_fc9vlD2KTwc2-xMp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"KFa3bkkxKNy7_mBM-2tU9":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"bCNITWrPK7lorjZnJ3kdX":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"POhntnQ9-lr_zmmF4rcdL":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"vuWH_MaxxECW7WODJjSvG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"Nr2T_mxSE3U1u2SdgWbrt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"Cg3a8GOcQE58jIGQtoGwo":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"JKG9MT-NmpP92QIVOZ_j9":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"EwNRXlVLMGl-XYEPFoJD9":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"VUTPS5gxWuq15oTUqFxvp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"eF4eTSw_AsHH-Fk2vYxG-":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"59CCGVlS8ymC3kW3RMl4o":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"ZoSmXYTwea5ovP0Wu2NUG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"zURhbgb_37E7CK78Uhb27":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"G3Tb0Xavahxx2dVORXTW9":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"SW_l0owqXO4cwxm2RtIOb":{"uri":"/melonJS/docs/melonjs/Particle.html"},"0nwNANdCRs-24bN1zW-1E":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"bf5Ua0djAdxiMHvUXE0O5":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"mrBaX9m-UG6UdEIcsJWAh":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"iFRPAyN3gEze0PHrMAYK4":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"8a19q3c2jd9ikivWU9Cqg":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"6rUk4_eKJYgX0SIx9Rrz8":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"3kMRbKoArlYFH-RVNEFkK":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"bnjAl4qH5ndJlJCHpyXb3":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"5n6bc40f_p1Rqfcl4cEQ6":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"7st8U81P2FZVZ7rgRZOyo":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"hgvYwHl9allrvxb8f9opY":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"FWtZR6Jb-SiQfrrchCRiQ":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"9tBAjI95El_tQF-ZF1sjR":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"0ej29dfbc-ppsXF7g566l":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"zAVdk4stg9Ji6wg_6RV97":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"fqbqlUdRhANnSCxQmeQ-i":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"2oEbiQ95FBiToYdb87Kes":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"WWTO0MrY1vQrrEzQbpWQx":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"P7IiHeboGPySvHsP63VED":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"SIxsvcelLsMNkoM9gn7oE":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"_84Ex-1BJVFqCuq_HryFT":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"kDX37g-ZLPCSRWfogGi0b":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"0462OgaA6bI3hXnE_-gWq":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"DMSfHL2gVNWwUX5S92Mcc":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"4N4N-5TqTTuIuq1OiC9D5":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"-gOf3ere_JxNTUY2csJvs":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"ukfTJXYwKUzgiSZ6WtYFV":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"ZoHFg239hmDJKYxF11_3Y":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"Q6UtCczTCfTd4wUSYy7VF":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"V1qDywj3KIYMgidH4j0JU":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"osms9ZjZ9zg_AHkzIH1-S":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"tDf2Cf4C9Hdw73Yxc3A0V":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"LN7uvjcjt_oIfgz_o007P":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"r6FkOfJFcJlTkLWNkwbJ5":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"3IhBqYlpRIBut9SsM-YlL":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"RYF0-iZ3Mzu6pbXMeFDCD":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"EtaUL3b7VgPcNektrtZ6p":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"7zrr_oabH_pMvnYuMbCUj":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"-xvy3sLFqyQFOenwGM21i":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"DukVUuunkPxq25c3NdBNL":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"xmwZpIagfXoQZSSbITvKU":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"s34QhQixwxCjTk-JlM9Zp":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"oPPxL0rpo1-Zrg3HO0EMK":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"v42pxYThqMMwrJWuxYFua":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"VRyM-woxiro1g48JBPSXE":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"hu8L5-9aUcC9NSPKicVHv":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"IYToRwVD4gemdAG5qvwAn":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"xIN21MsYW-aIpmmp-tsSr":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"sATJ0bjogBcEgkkc-dhaC":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"jchlTyzhDK3T0T3XTrsl7":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"q-LDZvZbee2t8Or4l91b0":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"ZrxkHQGOX7o2b1GnpEr9g":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"gAD_ED50HlFL3YhLmnlaK":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"EQKztBdQIRwpzQsy4B0t2":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"xlNoMHamBEqIc1myDhxxB":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"wlQQh_FlUGvy3mazb_N8c":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"Ik8ymz_9V8eMFreHP1OL6":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"i-okXiQuIf9vsnTmqe0Nv":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"b3uBvnIO0o_wCJmwekiYy":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"mdcu1_QDfljjfAUWX9RcA":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"vi_anCcZSxyrPTvW56mdf":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"T2MJNFrPaKRSnwTGxqaR0":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"slD6asvikOpzsMzBOL6UA":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"4b07LmeLoBJeUVOkyffAu":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"VvMywqzGbdsjB2_Cip9rT":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"_x7fvIdrtwNjVC6KEt2oc":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"8eZoEUS2PguPiKXyBRMbs":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"z6kW9khZ4Nbjy-TdnwH2o":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"3xC-GT77-vRFDCMvLBGlu":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"mYJ09SZOizByxSnOefGq6":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"VBpBN8z1GDsv6UbpSZqXW":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"H5JzrkGPdm9xVlp_BGrP2":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"D2shJlY5s2g_AGKFEtlmd":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"8mBuySAJs9_PQdzHMBY6q":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"Jliyim-8oQJQwd88MXUKP":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"D6uP_si80JNpPslatOOVj":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"L25r0wtb0NUPX57qPNh9a":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"tIo2rgN5QBVgZYueJhRpK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"6CX5LP5vARvz73YibMAku":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"ObmTiHMSWPze79n3yOvTR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"yhq2bEYgAgFVUTQRfeOT7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"rKAJA8EnmtAMO7KWqKfuQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"hvsAorNEmxPc3qvtk2Ghd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"xMHoR4bSM4jKwQq5zsW0X":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"75Gh8_POBmnwcU7RU0jBR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"1XzilwgabXMBsXWibMiOz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"FFtC6AxWjBCDpECh4sHfn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"RGZ2MLPZmxIyid_hHLczH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"AYGFnBjsHD1ba301j9RPH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"7Nqlrb0YxBVy4cluu45YB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"Rc16gCwxHjnvpD8vdDt0K":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"8-RQ6UkjdbYREzlbH3WyT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"k0CMKPO_T0KApsCqUZ6Zx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"584FRA_zXbAPt_n6nwMvk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"gTIlHjrrNcCympOSR5s4-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"U4suCJlBtfjeIevJLsSat":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"ju6L5jGhPm2ojvGJIvgdV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"XxyZ-XNKzfymsWKs-tZpG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"FMuIYSu0orm_J1rbQvv1B":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"l5rna4VX0UjrBz5WgaK-a":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"vHmCcR4j1pWwIKqcYIUuA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"tk1tC_5MaJ3WWX7x1AXcX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"ZqLr7VhxO6jbyq2EgGJKK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"rd9a-efEgYtYpLyV1A9SD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"7XrkkWaQUIQy-XGEdE8_k":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"WgmMwm_uhEP2m2YSC0uC-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"WbxV4Epve_QGq5sTkjbrh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"wG4zQpkwd045bXDtUP0Y6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"Nf9yVWTH_bLdQ-h5GnFp_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"eyTQyasUgUUkKebbjlwvL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"ICEyKByezNzcbuj72MZ-m":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"9Ty4qusdzGfEPUftgkuMn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"wszNdi9C4H0rJhxJJwZaF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"5fv-QPRxJXUfvDVLkAOVC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"qPjtrK8S_XxXppnAavTNU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"f6q0FqN2USMibEFsZsINr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"k2DNsb1M0-qZX-Cb9eBWn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"Nh-N3rD0pFocFOBiw-V71":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"JmWc2ZPYRx-DXGZv9_S1n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"sUKXM7kPPC8kGVkyWqAGj":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"K1fZjleQgIUBI4hEGEthE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"zQPavsuGjcifhBtS4-whB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"f1_Kh_fnyd2SbZqrtYonl":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"AwCQ5OR_nQiwcb0QRCaD7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"UN1gbULAnH6J9KuGjDmUB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"DI-dra2FQ9KAJpgH78F4b":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"UPPAkSotGFFdo8pi6KRTX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"qLh3PSY2uvHo4_6iPKx8J":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"MCQYH-S24dqpNQiDZggzb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"THA_0xPPx2XUq56u_EJAL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"xh2TFKGZrsZ2UN272INiQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"ric_H-90brl904DotwLGY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"WvAfDlp5hIffCONXzhdco":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"3Rp1H_Ylgu2ZoZURTw25h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"04Z2VI7q2nw3tXhr1e2bR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"aHOgH0qB405agItG0UxHm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"grdBOkl8ATT48fhQC-FsT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"TqVZ4fIbe_G5GMnC9VkWK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"RhDbFsYBp828QtxyRTW3N":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"VMZRTSoIGI7uoS5jL5F2A":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"BXJfN2zfnx9CeB1aebBH7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"qaqKBW2piigsUOewzo2gc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"aB-bGAnsMHNHHlwbA1yd_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"DA8HxnIGbuvpK-KRnUKZL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"R2Psr0EajwUhCQYOhKPTe":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"PRWPPj5F-eGfDth0h1KLk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"8j6fcBdKmeuD4EfG7dAjO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"-geKrt3Tecx7BpUrgAW6J":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"l4Gj8pajsTIG5DLGD440C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"oGqHx35xpccBhgMJURFKl":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"Oh_RPMA5t51leU9Uk860v":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"5tczVdWMFxgIuW0b-IezH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"0P6YruSzcQoVOoSwFx7dV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"25Kqsf_pvbvjyT35nq4In":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"El8-PJkePIXQls1YuyArB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"1dtxflgjN9dZNrNcE6wv4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"0AnzITNGrXHMRDBUDucJm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"iSQUt3XvIMoDXUk70b4pz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"EjvUrKBK4ywzV0l0NYBef":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"OISARwAfgP5Co_POLNOBt":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"WbWOlSN49_SPgtdjzCsvn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"eVYhs7uGjML6Z3b0X-_97":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"459BFMagyjlHjto71_shx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"2hVoTsG3hSsfKLJYp9AGf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"pzc-iVZIcrOr79Ni2iWOM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"wuNzl3Iyui8Cex6ZVDc7v":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"hEreNJ9qGVA49RrhhzfZy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"9GE9mRR7PQgwDCC_DRc6M":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"pWxF-7sGd5gKBs_ngc1fv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"pj09XmQJhN-swIzC5p57P":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"iT7yVcr1-1KgLzULtZqie":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"o5Qmsz9PhsKvEzWqyV4pQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"1WiZ646G1OZUqiPnM0zW6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"lk0JZHS2sKWai79N6ea6-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"neVA32Do6mnjia5_m5enI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"-hp-wjBWLgKJl9XVzjLCd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"BLI6V2QSsos8rv60QB87I":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"26EVx2QDXOVOQyXEJGq1h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"Krjs0BnSV95CgVjx-T_7_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"bm9KAnLMUdZIwavX2Jme-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"x_x0rFevj8PMCavBv8Smc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"CwvmV9bm8zmOy_QliJ9lB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"6PoLYCwtxwWA92_56Ldtx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"OzziYTR02svBaIK0w9FH_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"FUAQD20WI4Vy912yJEA_e":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"78DGuIMwZTIMsNQXFwR-z":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"ZB3qBMZa6pQMnD2bI8196":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"rkz8tPzX9VuUgCn1KIfI3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"GR3SCDT15WxBh5-IqeKg4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"SmMxwIt1Su3LZ1UFNEImF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"BGIEDKpXfkfM38xm4xRbc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"jr9lRarP7yxjlUbmXNqTS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"h8JXtDatVfVQclYsWHPUg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"oQ8uD2s9_d0Rh3Xo0xbc6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"BT3kxUSYBYA1ZL_LLodOz":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"1xkOo8s4Di8I2pPftlPQ7":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"rFFSGRFjeSFdzX8ZZ_9IM":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"niNpP9v8uHmK9sAKWLsVk":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"APXL2PyTQf7bi9qYSk1yc":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"eur47i0w2k3aPOIplnCuc":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"Hga-nWa3IuneskmNt-Hi1":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"UddCw5hDCoXDR-buXidzx":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"sSx-fCN936mvwUIEa19qI":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"uGlbdsnYpj5PMj-31YtvV":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"KpRpDPiRRoclg6HcsN4cz":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"swh2tZdYwhfgfSI29b6FK":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"h2Hn6G3Feb-q8TX08gGdS":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"FVk6G5zzEtuKQfLFZe9AG":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"osjyttZfh_IoaCWoDrZ8D":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"OrkwSdEdR0LuMA9mlNUNj":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"iq9UgtqeUvqZLhtxpiGrU":{"uri":"/melonJS/docs/melonjs/Point.html"},"svEuWDUvLIpA8gRGH0gxU":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"xQnD2Mq16v6JPbXZYHB9a":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"AszG8ALKBmXWs7ha40eQu":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"-9F1NSJzfIQJNKzhRo-z4":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"gKHNIj8bua_VZqh95NwwL":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"TLu_RNHQnyXFLf7MZgY_7":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"hdr9b47jdIpyEiueCPmv1":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"e7vD77q1X51vo6bP_cVHC":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"Wmxa_zYSLmNZ6dXy5J7ci":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"N-TXdzJh7PngjT6GxszNu":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"ZwlWe1gXmbDROrRtMDdkR":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"efmVGpRoWQh4dC-3XdL_h":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"vymyq6eOwq4owLefSb7kt":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"D73nlttX75-5M2OAo9ZZV":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"q-4h2YYcCFi1uuOll1iKh":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"sTxkyQnNnurV98q8bGplo":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"Ao8noNqP2B8PsULS4RN5b":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"C_MnaqG-TeGXk9bozRcNr":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"ttBsKEPZ86rakVloSUqGZ":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"CmD4vYb-t8GMCW0JCM53u":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"SX-3bTcLUdoxAaoJcG6Aq":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"8YbrOx9Te-IrBcUnfqVQd":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"JVGfytpZvoFHmsZFyM4fJ":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"I3lYqByu-HSmKi5SxQ2v9":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"kI0NgudZgPhHs7RyTsAuH":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"p9UgDTmlJXRRO2m6N8IhR":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"Ns1HwzOqtUxGWquDQN9aX":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"LA2u-N1MFySShOsoYw6RG":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"Q4l7MqymCJSmpZuLtWUiE":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"kiFjyKcumcWjGfg2qzzL5":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"yjGjgvtcMDO5lMZoqINBF":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"xwOPwVtU2Wfgcl9nuQq_7":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"p5drFvDErviMmktJTZeFB":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"pjt5X-5y8pPOh9-ucRMjn":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"0jzuKMMLDgZ3gLTBuTCyW":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"CjiPkE2SL0_Fuf808nA4v":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"5IbeIoT_aVIP_shzL183X":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"uYbA9yAkCmao6leR6MDGh":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"C8PVmTyw1FWVBqyE2J4Mo":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"H0J36OE78aYHZOQGt4pLd":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"Rg1DA4pp3nmZoNOfsD00N":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"woERcAIM02J-XH38Jux01":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"iGv0duHTA_Zsn_C6-ToS_":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"tHAQKPamDOsYEsKBcv5Ly":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"yzGl_PdNhKl_5lTs11qeI":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"PdFVPoDc-79Ip_MUAO3SE":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"2-_RbAhOmZ48aH2Inkej6":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"YyJlEDq0lvhlsGOGzOzw2":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"sZBYHTcRddBibGmoE_DY-":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"SmNRcn_oeWjUQC6o7RvUe":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"5UMrmeR7b12UnUhks54AE":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"34u-62_Q8VBZmnevxTa_3":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"jhMT2AE3msVfAMNA30NlR":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"N9lDuzSUVLcYYndl5FPJ1":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"TWW5LAf8QlMZOI4zuN09x":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"3Mg91WopvWm60d05pBaq-":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"h6Yk_yJAe7Wl7rtupPiaX":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"fIEE4ilEBMvu28MLDXZe8":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"4UHIdRVpZHRzeczPqCXrV":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"BYgHJfsy81TmGpIUZI-Of":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"OsOAiztmO9YkpVJfi3YxI":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"0VORQu5jj9PXmCQ4QSFlz":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"0H_j7Rq-c5jKQhk5mkJah":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"Em0PQuxKSVSEpLAFnri80":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"K8ueu92FuivYVxCuv0_IW":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"cCjk5sxBjtNU2S7I4hNsU":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"m8C6QKlbCn27a8Utkhwqh":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"SSgA1uu-LAE5KhXEoaw58":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"Jo7ko1mvuBjSBRB10WsIQ":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"ynGMyejLdDwbeUKk0ftzD":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"5ayl3A7jc_preSZb4tk1A":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"H-IWKAAUndnvq2IstKeca":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"Nwh1VaVRMaINwow5hXH6_":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"RiyxdyEHWj9L5SW_V5311":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"UGLQAdDXTRa59rLghahSF":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"BkFKz3C6GqEjYAKmUGgWw":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"gLFyqPk2r4-qrLl0fQ25s":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"Lg8vJSiwH3hx11NETCDGE":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"FVItw4f96q0_Dhar8TOn9":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"_65k6622Og8EpC2mBHPJh":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"NtQTDGzQev0m5-YZWaxGG":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"D72T27b5Q_9GO8K3lsrIi":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"qbMjc-TXN6pOG6QyUUaZv":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"YBYFeoFeMC8jM27NUwYPN":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"nWfv4UUJJaPq6Tc-EbKId":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"XGWHivHihoM87OcSVnSXG":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"cJORTSD7IfzAFCbLZXxDN":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"sOo-zzEISVwJftxh8mHlr":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"lHwcfyc6CQcc_2ECi1WHm":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"31gpByR3YJuBsMKAWBCUY":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"8BXKGKSCy4SM-kLUVZ0he":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"Y0zL2XsZrliaSkKS9mJE6":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"hsweblFXKu7sSnTO7Hv0K":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"vL37rMVAMkOM-isHf3MN1":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"T4e6fQMazyz-vC7vR92Gx":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"A45V7am6KgeZHqO8oNql8":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"gZyJOTKwqBWBj5eKAk_zz":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"74nUS4eopO9LDfXot-1qH":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"XD4qtOWwQ3ADx146xcbEs":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"40ATkXJZxfe4wHQn5eoIn":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"FMCN1tvb_5iawmjZ-Vqo_":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"CDvsItIoq5NI1Kw9cPxvZ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"b11sajcwNrMZ98WuUxEqL":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"UIKCREgzo1VGoygC-yT-1":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"e_pqxbuaJpw76hqiD-F4b":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"pjZuVY53mnN3-813_ogEC":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"B7cpKAJTSHVxCWURVmGXT":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"3cnGhnkkWop7xJUQ2rqwV":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"n1kYqvU_c62CVHN-h9Kqd":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"E4X92ua9uNXb41mNxIUfA":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"RTg3hiDGZW07fDK9CsHlq":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"ec7AknEenbLnpJd748OE_":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"n5PfAoyLIjY8ioHSe-47T":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"9vmLhx7dNJpdgj2yIoTMm":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"_bCaPmresi92L22C8dwc5":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"hjTJmaTRE5F0EoTr-O07A":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"KbzjVT5rVTvnrIW692pTr":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"nmxLI_G4yjBkfHJwJFJDi":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"PAC9OjMa5DgibJU4ntLWq":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"mK4tGT2YIX2NIjekq35W-":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"u4b48fZCNhnxtvHmtiOEp":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"-8ujraafbanSPBFn-f6BR":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"gLUjzXIHeNujuDuSlsy1b":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"F1g2tiaOsKHWs_aPO1gNY":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"fujCcWj9pJM3k6okGLyM6":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"rx7LCr_hGCEEIjwbnjFRy":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"h7cVJio13d5iFuU55bFNB":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"XEAJC3haeKaOk9JoqH5xn":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"-nGyPo2L83UniO_KlhGeB":{"uri":"/melonJS/docs/melonjs/Rect.html"},"-jTdNQmMP9lkl9h3IKl6k":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"FyNXu7nD5rKjYjMbiENIJ":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"i4e1mxD2h_YNR3GfMK66o":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"XkLtIvP3WByvwusSQcHvi":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"AxxxLMOsBrY5tzDm3hr3n":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"2PphGfEI9A7J7qVQpnXVz":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"8ap35Dnj474e5b-4wVRQg":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"j94qTN96Ki82V7yKfYEWR":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"6w2PRG1X17UdkfnwIN5hc":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"JCKrQEqsdcy3AoXh6h7cq":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"8DKfTeQ-UZL-EJcdpHf9C":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"7Jh_IzaKGdzWY1tkZxApw":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"FLDrcgNqDFGPnNQRBau_R":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"ynBeOen2uYKYS8egRKmdA":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"h6u5gfVFrox4igBhqWxO6":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"gjVql5binB0mAUDxgkzcq":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"Ye6k6ncfE_Bhx9kjsaCfw":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"kZsomiNxNpGtD06OoFIoX":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"g0P0AOLzwLTiJlUw40VcV":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"iRX9xEDk7kMUL0ZKM7lEC":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"GNXwq1FiGEAxkA2KJvlVF":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"sVTpWe2IsdHrpBKGR8IZA":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"hvofkH4wMVFCPnRZCD37k":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"LurZCGySmrZaJHFSvtadU":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"16nJcK5T91Kz0EU-4CYzF":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"5vHN1lvDFj69aqWQ02RI5":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"064REJiEFT6SjME2RMU-a":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"0HjmsqIs7HWI8TuiiHpkc":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"k4wrFOYypUwwD5jPBsNEg":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"vDd2vkliRPuh_bRqjcoHg":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"C2ZnjfBqGNnTkOUVL3jDM":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"LvVwvge4-jULaHE7hxoxX":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"6iYBPpmhejrQqkDjtPOKq":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"cuK5ZzrjeCrUxOQ_irCdR":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"2o3JSkXjRwZEeajzn74FH":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"LLe02fjgjv65i1u0AG3dd":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"TkMvrjVojSD5YNTSgMvZy":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"7CA_3rxJ-6nw6Amxd7hlY":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"-CRJERTyzdpoKSDyRMFDP":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"O8xMm5OLxDdrv0DRrF320":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"9jSB0DappVbC5bvYKXUpb":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"XQyEqAOMZYRVMU35X9mnx":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"GKBbesaQl4fC5tqsqFsUN":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"yG89n5R4nLIKKeVGY2842":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"6nCw5IxeMrsBowU-SBRtU":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"2t_LbjboeyiGOsZUQXSWa":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"bRRD7vy9BzgOjcgxymgbL":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"MyjMNymFJIZj_PQ0-oKOU":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"cYvRprNGcezd3qvn1vH21":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"nOLxCjzS7i-QIAMLwdkkX":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"FJzOSAEcXsHPb1tRDWjiZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"CcnQPIoS72_KXdNyC_f7D":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"VAK_d56izknKRZRSRGwU2":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"a8hrNGj50yb_x0cgF7XV5":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"lvIoLhjM0M0e4dMVyJw7M":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"9Ha1Eu83MOTZsXEiK_QBT":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"uSAiDpe5LM5kKhYkDFyOc":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"WqxlJF5yty_EKWCOCPp8e":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"atqmQO16FeVwGCuV-oGxA":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"TQUmahmdm1-7ZxD244wZU":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"DDSCVCVotL-RcsPHmHAsT":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"YLqvqsr0p0sAYkr7za1Vt":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"86Wmi-PyYCa0dVkPWLng_":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"xk7L5G9utem8rOXoDSXat":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"0yUyzkOf-R8e3JqB_TCAt":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"84thQqiFpWt-_N41Baxti":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"saIaUDgAQgWMbIO_NpP_9":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"yhZcoI_2JP9xN1W_Z7ZpN":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"Rj3hSp1mtTPHOO0_2cqct":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"ZwqV9U-oUCXq0ZVptP0xF":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"rnNzy53sNjum3XCntGrMc":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"zDhXVhzZYN8Fut6b_2wHE":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"6jzwYSgdmDDqbtgxc6srj":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"kQqIgjqa1pFS6n467BrLo":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"24FtPn60e4RrDW1p2hj2X":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"FQKQHgNop9y9i001F-0VG":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"TmGV9KQTXsl0uJhuhltI2":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"Cam7J91xAitrxOhMllmZW":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"CtMC5YUd8Lmoog6_K30RF":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"Qe_ub5zMUON2p5htuUxhQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"HD8o94hm4VzaFT28hknwJ":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"0LY4BKZYk4Oicc6tZHDyp":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"VGheO1ae6qWnwhCUGl3GG":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"qq7J5QKar234tdPTs7zSH":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"XDXDWdc0XqwCv-qBwoDKe":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"aoAmXeR6hh90Wcqq8B7rC":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"l7VF6I0ocCigttZvIYKlt":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"73JAwLZ6PP2m4j-rmMgnV":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"KzH-tT_K3GUZZvQCA99iT":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"Ozo0vY4-r2zM8JHjTnLk1":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"_XW04r8bFay5CrtQMFsw6":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"S9rhxLWiQAIo98hm8OisP":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"yZwo_dQ01CXfF_TSjVzjQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"dJIfiXuS5VeZKLAP1evK7":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"ey2v1Z-u3e1ZOnl6ElxH-":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"0DTn97Pg-7FP4hR45E0UW":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"_SyjkiXiy6QTCYwxI8Eaf":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"GqR5vnBxTHqK68RU1K31V":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"TKSKRVJscp2E8Xtv5exiQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"cqNSd7tJSauHxLTSvNJ1R":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"HPKGb-MEesU5ilYiLo1ME":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"AMX4EFrESxQsq2jFJO8kx":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"tVdDvZ9GEzhG1N5wqRiDv":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"5rQlyHwQreo_hqPCqHeLY":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"IgSFcpUWtgYnKmcAwRuTG":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"d5wIQEaAVvT15BZE9HLxd":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"t0PqDKt0rbKt20q8yAFYS":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"p7Pa7lyGS343FtSbMxI5T":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"Yydwi7-rPBKU5TbFT68Xd":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"taoiNPxBDCjrUOES7jhcG":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"oS0SWY0WuQ1i4-RU3T-Tu":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"ytltEhrDZGh0EIXoG1wa6":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"5lmsrOe9_H9gAzQQ-pzRY":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"SSJ7vkR9XjUTazXIMdUL0":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"081srGoajzDzRq09ALV3T":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"_L69pYBJMlQiZW-e2eU40":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"uXtsdn0OnnSOc6OSQW0Pi":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html"},"haOGwuuxMkm3uOLveUrBs":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html#constructor"},"_3Suq6PxoW78he4eaOSCZ":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"SjwVrgonQVEK35F09wgw6":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"fwTapuMa6XMHTYm5046El":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"NgPzHKjJA3eNIhs-LoDlH":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"rEprRDS8yodkGfylgkEmc":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"MiTcPSlte6zFM6sbY78d_":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"vvZZBZkDA19kvJ5jswfYr":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"OrYfJmeuvlOrW7zp62pLY":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"bb78bw6tE76Q2beINCScn":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"ahPM0yl2fVvPk1YggFr9I":{"uri":"/melonJS/docs/melonjs/Renderer.html#renderTarget"},"6nhwtiU5YdbywkQy6yB0y":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"rx2jFrQ-5lrpeDAZqkUHL":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"c_s43bEYsT2oIC7P6PwHg":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"HqV6bZT27OlunirALwrsD":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"TVqDus0kF_nyiQ9wfudf3":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"gab9GpuM5ttqAOzxRalc5":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"LfSXF2J6Lc9EJ3aLeQ259":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"pWXoklNXNNyW7XwPPnHcX":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"ZIeZJiv1eSNIWDK5_uSqc":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"aMNpMYKexedkvk8GtaDbp":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"dyDFmUOy2_Lpw01yaJu9f":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"yHNS9k1Fl4F0VlDubQ3iA":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"PgUNOIV5BtHZB4DvkM2X_":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"l7lB9rl0N7wmpk11dDyH9":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"gXV03-O5_MMR6WCElJJ1i":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"ViUs0d09tEBqZPESqrHwf":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"nxVro-7BRhqKNAEHDaxPv":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"qtoObovjdN8FNTkEfg_yF":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"yMwbf_xxvjVHUZjNsPX-y":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"i-fRO2I3J8X5lxaMjtz_F":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"oS9s9QpW9OXd9EP9S0LLw":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"GLeWHF6OPP_NsmzyMXBFo":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"EZ4CBgXfiitogD55lAeoV":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"ZMQ3oUznBTZXQuozBu_an":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"-UBL9iEWjhAunjHYl-brL":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"oL312RyTcgjqn1y9t_aSL":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"J0Mx2Ac27Wv26MoJjyRLV":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"HWLNlVpY9vKi8942Xm2h1":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"VFeJ7O__rCbbArcpBiHR2":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"MX2IMtwOQgL35aVzX0RVV":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"1-VKw9iLS-fttp-0Y-o7d":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"bL2CjufDSp-GP1V4k0mJ9":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"wWQH5tCxbIkMnqZksiKzY":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"op3PlhKQRO5J2jfzmKPp2":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"v4CtSFEIlptVLjfBjJVkL":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"Lh0zblsN2MtUdcSTHJhIe":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"Lp3tNTSMLHaDUEFOaIAc0":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"rkYG_gI2c6fwcgTG5jfxV":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"wZX37r4dzJsgB6gpojJig":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"b6fuYOknCvTgzmH0pX_4v":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"p_KLaMr2WTg9DCNWDjwom":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"E1rouGMEya7YGBpD6RtSI":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"QsTTJZAX3GDWL_0Rkox71":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"TxLzuwTYL9GInQCkPBwB7":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"I4i-9jHNilNC9KiSuo2TF":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"r5EmYGGZB7RAlGrqkPcE4":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"Jjrx28nTlLY_TMwtjChI-":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"Qr2-VQzOrwyZElUippn_Q":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"qgdioX5iE8LoT5-ZPKZjU":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"eyitnsfd2kVIp-YExXPIe":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"YtG084HtMcAkD1JDgeN4w":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"nISVSAG1iXwBO2mR2C8lz":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"28OJewW4PVnHoLnnJ0urO":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"CtZgHeB9O4xxq8IocB70N":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"6aoX62lgLy5c-LRdKuxkj":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"MkT9AgbhQ1UsmbA8hBV92":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"hQhPpXM8Nc-ONBfhYDYEi":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"hBU-I5c01Bfpsq-55SwuJ":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"wg-Jkv3jO6xBK3GEWKJKS":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"q85XKaM3Xge1V140gPYMg":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"ma-Y-XoBZhyWV3WK3Ypoh":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"5ZQ1Wm9jMNJBuwpkWPzBa":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"6YBma8xOEROKiMlw_URAr":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"ugLjZSfpHIkKcbKXpulZk":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"WR4X40roIzNgNi8aqVooL":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"G1ug0l-HyrP9oG3jWJsB7":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"GGZpzDiUcxP3DcGeSxNud":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"uCo6Ehjc7oZMPnXyUuvTl":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"xLg_njkRi-TY8i-l97CmN":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"EgHL5shodYhOtWX9KituS":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"Oqr1qN6DnpywbSh0YUK6W":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"JEhlqie0vGWN0kqzWeRQK":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"ewoSFIok73bysD-op16wW":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"Du5ntVAtaYiyyYl3liZVC":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"ZQxpjUmvZdhz0WBozCL9g":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"Rma37uRLHWgktoPew5EBQ":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"XAENJDVxKbMDW-iDsPnve":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"g29RLMDMQVdjsFl5Ox51T":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"-Ev3XkDG5p_mHhUUuGF02":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"zXX7HBuhMZaNSETEF9S2d":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"KSIuGGpzCCKBR2Mq0hTQm":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"2w3BS8d7HiGNWsYLisbIH":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"vHse5NfpYTwD7u9Tw92vt":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"wpmJqtcPC7POTANgojcWf":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"fv0amr5F4Xu0Sy65dYmLX":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"Uf4YJUqtYnY5zKyG5Gzsi":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"H_lvIBoFUgE98x7VBU4li":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"Ts3toix0T0tyRJKoQtjUj":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"kDLRMSyWGUZlKJIoelpfA":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"MehqJ4Cu3bSJgFbSR_YOI":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"1xUPKIiSw5KqrGtwZS7JV":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"NpDdmQGewuAJmZspolYDv":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"7DFyGPXN_JLkpfpHNnd8B":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"GQYZungUCzvqV2UUiaNjp":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"L8zDyUx9DD062nhX2ofRa":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"upRVyHtjDvPnqAVQhEDjw":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"8wslDB5UGAxHMeTOiRxbp":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"GoYWl_9JaDr-TErPxv5EW":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"eic9Qb6v2eh71AmRAnavg":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"XKIku-aD2L4l1ybKZ_Ww2":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"leS-BRonOFgodZF-FL4ic":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"mKBTdv8UMwu5pE_aEH72E":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"hxturYExxNkVfYowqlT6Q":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"ofdTL2RjDl1WjU9Wz5zME":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"nrbLLacs77anUCJ-gR6iM":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"N7mjPDxMGdIPl7f_4d23U":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"JmHZrDhYYFzN4z_9WrdJ_":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"YNFyflIUuLyYw0G3l5NOA":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"YmgZNwYPUS1M4pfEv4oFy":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"bhWdpdmVMs3HOowu3h64R":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"ZUzOwUifli0JuDZ3ixfB0":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"2u0ZhFpixmleGYxu1COyX":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"0aycxtsEvO1LmRK0PdzKk":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"s9IHK9NDZa-yzbQXoLXi4":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"HXYrLwQR-Hqd0JrXRKmqa":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"OqGRR-ZHBwDbtN31przZn":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"1gOStS4ADOsC-KL37KLVX":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"r9jZd9XiunVfyxxjswO4K":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"og5XXTCn-AcrReTaW5_wX":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"9w357e7R4sTYo_kP87tfh":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"clUVTT0unvaVSuyRx41tN":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"XZPID4elxPSTfi9KDDTKh":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"AO11WSotimzvEuBSXmQZd":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"koZUAc0YNPgs6_ts-5LBd":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"Z7trYeJdtjyXIBM-EuZ_Y":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"SmtylAL8gLDKQQrxHaugV":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"0QGQVzhsIq9CGS1UEsRGA":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"-qkaslrYKQadInJB9gSVD":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"MRZ_99cJ1wbFJjg5SHzjI":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"0TREz3ry2cRZPNF5xw4NN":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"ApQC7To2XDn10fvZTJyZD":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"TNMfE-mzWDiCPIaD_512T":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"22OjKsolCQCNVTEdSYTeF":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"BZT3SUWfKiMC_4sb65lMr":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"eYxfYH5NUcaxLGwCislmr":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"iYdm6ng9oNSStJDZYrplI":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"5eRwSt2CodEKXGrVUczB8":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"UYcXG9w6lqxlb-hE7ouEu":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"_t9FDrPnlHSu7XZ5wJotZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"tkiq-w4P6oGQw-Ov_EWeb":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"VDFBQVRAyONtSsjWE6sXd":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"l_MQJvrObG45YwL4Z9IaX":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"hAgug8ORMU279lkq7eBLy":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"k6ZQVDkJ7RxPIDQAVZqIp":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"U7yk66Gmk65ejv1ZdC_6C":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"AkeGVsMDq83zQvnEvbvQ2":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"3oAI3N_COVhN7XJ_uiJyd":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"U6r33RinnvYFzfuV9qcfO":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"BnRv004wlfJZm6S_EsGx5":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"ln1f-lYH_nDMM8Y6gjS2W":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"b_mWLkV5ZJH5SRYNTVF6G":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"H2rWEYzBX4k1Qks6bpkix":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"rbd6F0jmrvE2X_xZuQLbd":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"Um1uejEnsnXywJQC7DtQm":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"nYi6BGzQOebYupo7p5YOw":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"qvB6zstAIVFM9nnTmSu6z":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"0-h6mOqvaBJsH6R75w2h0":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"QsIp9lDf-_Lz2rxu8_uvy":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"rpdqqtwDzC1lWeFsk68Cp":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"gvgarTzW8szSwHof261q9":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"RT2WkncZ6Lw5qFpcKFcIA":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"ePbqV9bjeZKnm2wv23fyu":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"G6uS6gDRyrce8tV0UeA32":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"VOxnpJaAU7abte4NPqnYd":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"hdJMoSMiZiCe9WFsEn13u":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"CngMkQ1SnkT9LHBBU9fyx":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"AaggaFFkB_JWwlIEwFipF":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"f7BaWsHvJdhbOEzav9sOK":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"iyVlBEVzA9uZs7SbJr0MB":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"t7LWeg2Q0bevA4WIzLD37":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"B6z9_k9dJiMf14yf5dOsG":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"Li_s8W4ZuI9dRKKXDgpUi":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"e3oYPBUQfwfRduI5juPGf":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"bfjfDlyuMAPdCcL5PYsN5":{"uri":"/melonJS/docs/melonjs/Stage.html"},"Q_H9McPuEMMrLTwgaR1Cx":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"JPLiJUPR54v_vAA3v0C7G":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"0QWgpd91GhTqKqWu3gjp8":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"m7DKoHWEdgOYJQhwuFEKP":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"9Uf8zCRT9NDEqOua97xG9":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"blhahg_IelgWuioYFvaCJ":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"D-n-V50qC8-fL0VCMsosY":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"uKNERVQj_4RUws0lUvKji":{"uri":"/melonJS/docs/melonjs/Text.html"},"kSv8QjiD1KDWFpcvevi3J":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"q8qvGJqYd8ZNIIwFh70Zz":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"FmoxVfQVkICyw6EEY9MSj":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"7bP6fp4enD22twtDTPh7l":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"Q5MgbNveF7xo4c-UQPgGf":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"ztyZlePkueGPWIp90rALB":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"SX4LXU-e62HkvM7VbM-OO":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"1Z0FVB-8RS-C36vyg6fO-":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"-CcGUVi_mEWp1f5jC7amP":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"iH4GCTILMgVYzgBF806Wb":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"4kZ4C2WCAUGRBlOtWJr30":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"P6Es5x58gIkoOwfiFKHQf":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"rrN8ajNZx9hQh3bFZa6an":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"m16pSucAmKnR-6VtrGran":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"CvAOV1oVqCqEY5qv8pLXI":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"6xkpjb8WwKxSxc4evtItA":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"NKO1Ega_lh37XDaydCJsd":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"zeoz_HvpPfJ5ZFbDVOx2k":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"W0qum4Fok1TV_SqrwTkIz":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"pn8E1jHVnhidewM3jbRgm":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"oI3q1lu6U-GBMD0Vjmls4":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"bTlQYx_RVngNTZndH5msi":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"jhwVDUOsRLqZlbcnUm7Es":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"KRzOuOrVSAlO0fQTu3cPw":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"BH3tPG68s_rHjYHVqp9HY":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"NRvOut3A8Y8coYgA4vtfG":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"el5cRRF1tn4vGXOc26a9A":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"HUMER_ETx7eYGRRiw4t5O":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"UeGoR-FGtGUyqcnXPnrlC":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"6W9ANnMFFRn41C1laGwL4":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"AUXRvm8kWnHa5BiBNd-Iq":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"F80OcdNCUTtCjNrAy6HH-":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"j6jQ8J6IkRw-uH7YApCf6":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"ytnf2g8kt6mRZaHWqVY5h":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"IgoC7Oia2aRxeAYnjmNOp":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"Z3L_MkhkPtxNCfdV5TLKR":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"HF9NCdjVVSSh52T-Uu5F0":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"aV7c-QPFYtzvMEYJiMTSb":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"5TfdQRMPlNiCrFgq6HQe-":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"VrNfLl3tKm4sAkvkx5s7P":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"fjQB-1dhUJ9xH1IOE4qRB":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"Q5DMB0FnVgIE9rUxlABSy":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"n3hdwnHtS6e3FBqCsYuCT":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"0VAk6xTMzy_nsgdpWc7eU":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"QoR7f89M0W9HYorVu0FLE":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"E0_oFEkdnOWU6vpdCoynd":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"BMUhm4_FiA85AWDev31Qn":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"ggmWbEhF72pZeW-FuCLA2":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"3L_cTtNmN6vID2OPnY3eY":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"u-KRPZ7cRE-YyAnfQLkub":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"T4IT6M_AoP1uSJBzz2NbF":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"AcBZGuhNyKmvJRj19pAF8":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"T2wwnB3L8_B_L9JRRrqE4":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"oyb1Xnl824GXVw6DsmqMB":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"G66a1zTT-sjargc0bYwWG":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"nBmWPJ2EUJxYAXedu9Y2a":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"gEpijeU_CRlW3UmG7B2Yp":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"Iv03fNMgJWET4r2bo2Yi2":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"K6OquKqMow1Vr_EnydWyM":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"UNxbAqMvowHeeBdKFOb0E":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"bBZDgkdw9ox1bnE1TxzDk":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"pUIsyxoB-ZQfZ5JMYdeEE":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"2Dm5UjlP3q4CdCEfPwlKI":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"4whT7JJ-xS2icD1Xq8J7F":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"5jF9RcO9McScyr-9YakWP":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"GJKdVSaTilfIroya3LVZg":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"vJcQYlt3_mVppvOlcI_gY":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"dWVJQtzm9puKtuHMkJGoe":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"UwcAX5jUPjwa4MTIlU_J7":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"dnjYnZNxSregzZL3m-u6_":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"LFlS0J1mj1nbvWXz3TS9s":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"i18g-gMt4EfEykeEfHIbB":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"qR9Wr9bUYNiThUmwW08HJ":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"hw2tHld-kEvvV-MG6h4X2":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"PXQL55fC4aDElZS7O2RsD":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"lj-nh_toQJwjNgZl5b2FC":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"Q5eHAYHZnu0E5bn1s-XCt":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"310BS5XygVlPRoHjw1pB7":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"A5DT_lMdomrAG0uXO_dTY":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"smJGmPlZ_yMBdsnSRmYCg":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"wLASDNFmZeM8xwuqLLPi-":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"p0zXpiY6gmAi8QEMkXUaW":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"mbh2InunY_q9JTPj8N4t6":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"C-Bk9fuZKODeZjbkSfCbx":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"-pXtAtIUOu9nl4yrCA61x":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"iI3BujGQpkuNa0OG0Jsr9":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"5I3PS3-1mXPySH1hn0gGV":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"a6hMVikbTXsaNSTh1Wt0L":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"vJk038Q5wQVIUS0T45Vgu":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"6b5pQVnb6mGvC1cwElJXJ":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"JlG7MfLRxmDy4Xd8IhbM7":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"yZhcyoZGHtIwRSDZ2CKgq":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"1hIoN0AOaIad6y-Zoc_dX":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"WyLHf9MpXcMjHiAeHVaI2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"SPS0DdJZBqjdJ-q78sxFd":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"Bg7H-SqGJz0jIvIsGXHaV":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"_nBindc45uzWCipRbkbuf":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"Jqda73MyFAzMb8kmiyX4C":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"BCv6p8f6BVDFuqNuK-8dN":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"YHIEqnBXSHP7gUzIK-8CA":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"FIiYQQZn7Xj2iegB1520J":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"7yf7XdF3AUJQiFtRYdl3Z":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"g8CPFOpkgtL2gmnuWJZLR":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"iy0Rl1mO--Fvfj6SOChQH":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"bWVDYWUdtJfoDkcprz05u":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"Fhds2XWM9CbDc7eT-sTrv":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"NaweG6uzwOsvjqeclsnic":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"P0PsDl3syJcb81lp4Ko32":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"A9HGT69rl7mS3RZRjV4NW":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"X47hruuSVW4kxALE1LKnb":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"beHtrnql523qW7EeFHxfz":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"9FLYFkHdbJ3vX24m4iJut":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"P3khDlAvPd8YUhpIaYfdy":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"x-gJXbwA6hlCLChY0QzIk":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"jJa4yo0aXE-C7o4OzS7w0":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"ShmgCmag5UAUaXvzYzcS7":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"XnzePxNEGVX6WvDO9G2V2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"B8og-R4FJPRvM_tbkEgKx":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"K0pOLB3dACnyXGL6vSKP1":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"wVAddJ9IXVK2Rofnew4-k":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"ATp56hFaEdF54JRYhsNCK":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"kfoX2vU-5yb1FIAdfcHmf":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"zFBwOu1uhtWGGET9OcTnr":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"WL-YBOM8ivevJg7Sy4nUm":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"Vced8IdNCUVNKQ3nmxSVC":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"r4mxtoD6RBCaubkd3trgh":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"HovuEuzb0NN0tdA6-d1z6":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"wu1RMtrNKqO7F0_fuR_wm":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"u9u7sgXwhL2EasldyfVQ2":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"IJ--0TOrawfX0qG2AGXZl":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"XhNYdrL2ET0cO3r6x-0fy":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"oaSlVJVkYLf8FCZSWuQxW":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"V9yenNCoyAkUO-sCi9I1d":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"Be3-Fhz-gP_Ry33tpmGuU":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"nNWoAGLHEIjmOYELYw6SA":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"sydV7LObsNSzc7cHmO9jn":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"fbQW1Y1uTiLYF0Hd19iyZ":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"BgVoZS-O44Vy7WeXaLMu-":{"uri":"/melonJS/docs/melonjs/Tile.html"},"Q5uYxwSwvXK8QGyF-sRgA":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"LMOOEYP2tIV3NMoKXFbtg":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"RF5qYCF_ag_m68WKhN7Df":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"f8qb-ZHFgGS0GHhgGgzvu":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"1k6_5uMKt0Be0YSFFgX6v":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"xfp6lSx8jIlN1kThGRsu-":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"rQ_CkcW76q0fySjnr1O-9":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"upip_l-e5qtoSAJeRay2C":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"recssgQ1P8HbYkHXxQEIg":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"ukuCed8q_3geMI3f3SXgc":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"qqb8glFhI8leREGPiBaIg":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"G1PzDz6vEYb4l149XewNr":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"aKh4diGFv7X_HHMAvmmUl":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"mmhHUQ-uUrPSCM9_QwFs1":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"kot5xSFXhozy4WfEKJwMu":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"Adoztcfx74SSNIv-HkjHd":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"z34JFpz6-xIy1uS4_3imo":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"NQ280hTpKYIsOI9i8iYA8":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"vsenOT_ZxtWQF46PFh-pC":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"xtVtIDuTedjp5QUR-FzhT":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"hSzNWr9MJ68fIXCsXR6kd":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"nLmGL0do4flQKdeO_QHbz":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"pxoJ4YhQWg2QelcFgY6pD":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"rRDBb923L5YA2P-QPKYwf":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"Oy0vex_gdFtDpjtrprlQF":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"GLWlmvrct2m2tQpbSefsM":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"DOMJNPnM32eJWLGuNTlvg":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"AFFvDatB3LRVH4bOBG5Q1":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"U1oHENZA-NJ7_fJIbr1kK":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"0ScCIQwM33tbWksv2_XAh":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"QItrdiX70hSFTLeEdoC2M":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"X51f0lENizkT6HyPKmAZn":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"amGCR06fA5ymLi7QHVsSE":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"0ENm4jGyCcJJ-pSa7J_94":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"SVaAyEmgYlb0wbzel68T8":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"vkCxXM0oDtIVDc4Zymqhl":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"96oKhsTmLkB_pqsT3gvDA":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"_kDBlI4Ovj_rVEuDyt8dW":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"gYoTfO6tgirWWP_dTWEq_":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"7I47hwtMj4fB4Sj5Wz0r2":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"LhdhBK5FkzHru9MM1w38O":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"V3QvtZ5ruxG1NqCLTFors":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"d7LWN1E3kBOtSN3SssDks":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"XTBayTJpyaxXqthTRgu-U":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"SgRIz2OeDfwZG_NmzUKds":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"kyMjK2iI4RLHXcJc41jgd":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"pb-Ef9lcvfLwtHD2tJBQM":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"wvF3YIWzSUwza5EQNjxlS":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"c1oSoz_Ngl5FAh-vOfD1x":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"cCESo9CI_A48l7fm2drNo":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"5xu8LIvasad3-VmOCTUQG":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"Usdpd7Hg0QB58dLFamDWz":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"iuekGuxg9IemvkzC_7U0F":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"MCL2LPw5FEnJVCNySTuGv":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"vEtRXB013-IuCO4nzdFn9":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"uoXkr2_GvP_bmNwLIfN6t":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"rynoURl58zpzHnvdAz2uN":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"usep_ubNLj0boUzs4S4yV":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"mikCvMrWEOJGtMCHv8ePL":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"1zVsv-4wcZOh9hHrQXyMD":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"hb8sSC3hlNSVhzPzs9yye":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"Xc6bsb_vazc2EfXNEr4eK":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"o-pgeYJugugsPeP3fNqle":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"ATeaw33JCRSxs9-NsAolL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"o_hMFxQNAvL049nuTIrM4":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"gtEzsJDHcKrkGdAuwIdRJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"klphi4lAU0sA_MsL7a9Lo":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"Vf-kXxSMsGWFOFvlKC1Nk":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"pjLkOF7ZSfdvL74rFBeeH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"V7o6yCN0pDr8mqcSpGpsG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"P86KoRiYun8FcrF3Wsk-5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"pReJ_i8Sa4ctriEgSDc4B":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"aoA262dR0S2ZX2yRp76zq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"MTVvAUtAxbCO2wRe5Ex8_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"6ZnIlGq4OjHZSM_NALY0F":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"gUx7fqo8Uuj95bmuBHm0v":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"fmri9poG1XHq31aW4C9hm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"ebz_F5NjX9Gvy7TtmVP-E":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"A2GYX99u2dbDxD26HPcmN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"1zH6zTPmXFc7pLPj6kqZ1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"1jPsYqKDwF4XCFEWE4Wuw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"4QSVK31w2JXN5OmD6crM-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"e8f6horFeesXkukAP640c":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"I8P0_FkS4UhtONBa7yXMU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"3DCwaC3Gwy5cEqvIcIzQd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"nlc5swa5k4jI-qcdI88UO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"z1lUhXTiZx54Q0cXU3TwJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"p6Do1nlGDnOGAkm-RN5rg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"-IYHP8_J5dsB85T53XMKG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"D8U3-U2iuiMdqUUE7h84w":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"7cMuVm7SjVwBTMlas_nL3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"s7dgjrc7aYbbXyTR4_MLN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"lvdCJaItK9XjubwczjEDR":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"mec2uET1AmCzfpGYQn-C-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"pTxOdGkOnW_mchKUvHi6Y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"EMUOXaBz1OMfiYQhjfM92":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"o_9cHFSV3zbjuUU0SfVmm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"R6xeDonZGtQdRyiv8SK4o":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"lH4LHou6nTvhOEk0dHzzB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"Ccng-G1TCrC4URbyhhoH5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"QtXZntJ8epp763dfsuZHB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"WGApPZJ6pDoQAWJAvkzAG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"DdXiDiLgFx_cpCyiANJVN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"sD7hF2ZzLXsv1OHfXouXw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"7Hf_26WHOrUSmCeJ68iHp":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"j7FPQ6xvfAjcVZ7qrMWeu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"-kXECUG5aOJfuPX4TFdTx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"Rt2YlQ3IxJTMJytNmkud7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"lwjxZhj_MzcDYdPGb3IIg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"oT-JKoPlmV1uA8CwvzMMj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"YZ_Sb8UEwf975sDtiKeP2":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"5r1gnVSkmsYIQKFKRD21a":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"0_zRf1bO8Fz8cpS_GsARf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"1KIpke8PimAN_7F-Uq2n_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"86DJ-KzcXCp-X4iJg3e84":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"5XHJF_LHj-0G_FyR1YwYg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"rWqdMFfiLv8iApTAe2sfw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"_mqWfWs40RUb85w2NZBHu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"bZTg_VuLLU-TEcwF75wrT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"GI740gXqpTrMSjmz3vDuv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"0678etjU9H_EQBpubS7Yb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"4PqP-3tyd40AA_y8kch2j":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"gQOYuSEKleUOk9_Uvrmmp":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"_b0fy7VnANdqTw39u8HVV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"9LW6Om5MxT5i90bggtdf1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"uVXD7csHuguuWPgGsJTK5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"9v-MnA9kRvc9RXrLXmWlL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"aNDgNhbm9Et6LI009B0-b":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"3kjwJamdEZ8uX3agfNH_T":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"BcBA0HVeYmnBQ6LMFj0C3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"RBMq0vzT-SDlwDXeuYm50":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"QiWAX_DDs4AEyHS5ATpPZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"deHsvw--62Q8zx02YrKa-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"8NN_dA9U-yCgNSNHI0EX6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"NPREO5ndUpZv5BJsex-5T":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"VamKZ0LCPp7XETNRBlc-1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"Jva3YLX3gsSghSpcWIEvV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"MihM0JSru2DYMaB4UUxea":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"jS_lReHS2x42us7QaUS3u":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"CsQoA_ZZ_ELSv3NwEWuAz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"8c1JRpOTlrYLKCrTKNTCW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"_Pw-o5ynwcJD7inIgI0Vn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"04lpz_ezKudT6OP_wDiId":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"3hx6zhrX2KXQ6zkWHfuBx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"DtW4MpIkVdOFKTfq8lAkq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"FlrnWtm9MToG91jAVZjry":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"utLMAJFZ3JUdChYX7Ym7x":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"hDJqjoA8AeCbJJ8Lqmy0a":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"XdntZXew4uskC2syMnbdO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"kI7ZgdUfaMRrcjHaTFAjl":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"jOUoQ6aZq4fPKG5HkcYAA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"PIDgMbmK26GKvVMB_P90i":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"j6kks9knPU1tsAgnTzSLH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"s2_V_0ZpP9LoHNJ2V4do5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"ggGkAxutvRY9i36IToGro":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"6dvSJOku37BDG99pv1rqk":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"dGYLlN2FzwT91X1PpEe-Q":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"X0jgWpV2TqH4J6qHjbyYs":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"6KLFMkSNLMdK79fRdbghQ":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"Zu1L6JfZ_RevnTkC5H9Si":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"XsGT8riDcFxqnqbjNeeYI":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"R2guZSh8XkTUTVKV5DO2w":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"MKWXpFzswa-wtQn1rNxog":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"gQnpfLpAu1ZlKvVnNxtzW":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"pDy2inrSrQFJ8XrfqVMJe":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"kiqdMPoPOYaByMJfCqdd5":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"aPYFYziisu6ave2fxF6B_":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"xNnoNso65jmV-QqAmFAiN":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"SGlBJCl_3A3xrUyuyen3u":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"uV_TAJvKxiHAkGG6xftBq":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"27lb6ImiUDPba2f6BmfVT":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"cMhhhuRPkQTLpfLngNJi7":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"Id4L14rRP3qhidhLNp68F":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"yDbjq0mvwO4s6me-lTUeW":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"kl-IDWYrhYKjp9viexyTn":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"TwS_mjPvn1K-HkgTp2vxr":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"Ridp5LzBc6RaLfmyH0rOr":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"DwQ7U9nB-gMiQ6VLzPw1O":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"rLNIzr1blW3dtJ6LZT4YP":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"XTk9A9C690u_KOmhj8dH7":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"k37rwSZSHckwm6bDTz_4L":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"s4KJscDGtO8YLEZL612zB":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"3ntowEhC197SgbMzLxcQx":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"TCZ22s4MZieHEAnropH2j":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"Y8jrzOYIj_72a1PBnQ0Av":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"cKXQODCtLX64Bq9XCoh9g":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"3W37wpDmXWQ19GzvtyqnQ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"9sJQcJJ-sLVRO7889MaCF":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"RcSncwmHPI0W5dj1X1T7F":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"FA5USiJIqNaGbJSqaitpc":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"DcJ77ggtJvySfNNcQLxCB":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"n9dgt0G6Ki39L75Qzdsqt":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"0LX_KyYLmGyqrQRyBe7mE":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"Zpb1wBk4heYwmbz2poHdI":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"2fTqpzY5ve6UNXV0lBRVf":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"OgNtE8R1HMTFOW_xBfgz3":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"0lkq-Gi8GX4nDuZDzdPqb":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"04Y-eb39CBieriGQhc5jv":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"3QQ5L0Isr4RetAxy5EWm8":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"QngPuNCJ3jS-q8PYHsFRk":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"r60vpvH46ywa_wSOfHKrZ":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"KKhuX9gzT_xIzxDbsfF9B":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"MGdrIpmpAdPDx_duDs3J0":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"F3idqvy8TRuspjxCWY83r":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"KOKXknGb-bNDMsfQ8-qwz":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"-8qVrkcjkcjd4Wr__jzmn":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"QeOELKIUfzAve03NiDIey":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"j38plJzrHaXTwM1mJFlBe":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"FQlKOo7BxN7OEYF2r8GAH":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"8g8SB_-qkUi7XMcJgZvTZ":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"VHTx9I9GwIBfpnQlUf58O":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"zdQ003KQ9_uwtm657KQwI":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"PjqyApRS9GrCmpSdzE5_L":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"U5zY6SrnLJY7Z_sSBvMRt":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"CFMc47BIu-klQV13JPAdp":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"3nLg3Ctr0GXMAg2_-7BOt":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"CIJcCrzLFennSyuLEC5Fg":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"x-WT2Bgd9eAL9CEmJw-wh":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"C5NuzqB5u_jyTTPTQn7CP":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"JqUrFY1B1J7KvuStBzULl":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"TRJRlfhvRpnhlXJAWlndc":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"8h8qhASS01vZhuja5s6p9":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"dDbZwmlpivQ_ohEUFXhvm":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"R9M_UOfGb58ex5MgY9N69":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"nnfYsMfOT6hVzibtaaiPB":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"EITnOI4AetA1-wRc4XeKG":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"KuX-EcaSRuQnDx5CFyGfW":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"jQg-iRnd5GZL04QUOoMGo":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"d7ZswKqEIsgde_ZqemwQ-":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"pItIvi7SXXSQl4zy1z8_l":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"J7UdBP3cip5z3HDveblOE":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"GUFb-ry812BLqvETwY04H":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"yEddlABb-gl1lpA-WC7Or":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"N_f1dlphgtHHlCSACz1dE":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"1p_mUOYkBK3laF7v_YdQv":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"xQWUDePsOZgGT4Rd5RtyH":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"lL0Fo8wRGLbR7LHd0XSH7":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"QIC14cORjPtcU7oY_G1Yt":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"tHPaCmVq468fzyhJrx_b_":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"ntQmJi2dOk9WILLHzDLPA":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"Gve4b9cKoV6bF7u2mlvxg":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"z3n4EzE94TLQ13xRvw3Q7":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"jKmO06CEJB0SXSdfjcQNI":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"KYQC604i_6EBzakyOKrea":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"5E8ARTRkSJ3qYAMKxS-Pa":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"mx04krRGS2zx2zsRCCPtu":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"ab4ehGvxfE46iRTmse6FW":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"4ypvvRQflF4hDt_qb2GII":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"SbL84MN46RK4ngGuC3q52":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"qjzL0ZgL7Y-oYSU3y0__2":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"IXGY1bL4EQF-PUGlZKTJW":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"uLA0FrYlRx539ntKvXAzv":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"JcSOY98WJsCuI6DNLJapj":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"24pZDlV8W5D7BKMR853xW":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"7V-0RWion2K6YLCk4jezA":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"tEPPTiS4f9wIKkWUwTQp3":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"L2iJ5yiqb_Drjlg7ZIlVA":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"R8ZEGjxF-bInAC4RzfRrG":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"h39fdYyedeIhp-HNjWV1R":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"dLUhbHX2sl4-3Gf1rwu6e":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"fpoqjx5aXwuwx6ffCVkHU":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"56KhDIyhDnTv_mw7COjO8":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"Zg_Q1zKf59WtGC3ev_kLv":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"gMjk5U9WJECwAslcrpk-l":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"WSYeR8-UEjdv9SO3iA5IX":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"GUsAFrAKSzJ_7SrLjRH5O":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"qUUzz4oUrCoby2wlBEbpE":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"GONZH_u7_E7VUwV7XRFEV":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"zxWi1HOWvT9sAbPh9Xds0":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"0Suk1PdMiZWAdNQd1j1CS":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"SL9pmvh93vzoCcSJuH4Wd":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"L2XJj4Z9RnxMgQtZONpBC":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"7F7cZKxYeTaIwJ21YEy_9":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"uofGXFGPcmqR5ECjE-ie9":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"jdMHDGt9y9arGNWOWaNM_":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"iYub1RJTwXlOqoR7wH5Nm":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"VTNCt_Wmg69SVjCOd_qoQ":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"f9zCRZkRlDMepJOGmkATJ":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"G6VZrz0_YNTumEfu7NWTK":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"IH9lDghUra50SU8cVOmSI":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"X18xvo5Gon5T7DzUpjk7a":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"V5Q5b2r3LFdC7KBz3RZR3":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"J8FwL2XoiMFeSJP21QOQi":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"VJ_Dgtcy6b2ZDLDr8XIi6":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"EGgCX-PKamXUotTsHr5Qx":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"D6LV9coehq1XiFrfuDon3":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"jewsPnU-EXdW5vYXbL0nd":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"uFURTCdRh6h9uizXykwR3":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"2VsqAd4mjbn-Jd-jx0B1a":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"EkZTEgnrvOo_oTjMQ1Uvu":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"MorzsUeMA3OGv7-ofwXYf":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"ipK7---4X78b-ywqA9aEq":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"i6eXA79nuG6yDThkJToBY":{"uri":"/melonJS/docs/melonjs/Tween.html"},"6z9T6Fk2fJmtJfL9AVwQe":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"JaAr3Vq2KubH9sONUUD0p":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"9Hfnde34-X0fx-DtHH4Eh":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"t-vCzH42FrfS1N6_lGEAH":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"SsYTfcCLe1JpTUR6oRQpi":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"m0cmrdLC7lKiZ0N0Cvsy9":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"NfEjRKEvkushvgstV064i":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"JE4qFb0UOfFAb7XSlXioJ":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"muo7KlH15_yWkBxh4LuwQ":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"plKb5tRPxSCUN175t1GhG":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"fHz_fQrSWOXsSFJtr5X5L":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"XXvFB_oeo9wd0BNBK9KRJ":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"E467Cx7CilePfFUaJ_hnR":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"AY9xjhLUx_bz7oa8iQS-y":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"-ApFl1H6rG90mAD1HpQG9":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"aUGF26usl5Fv_FkWi1LtS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"3KxS0Ja6jQr5a0NSnycTM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"Cp8yzZQpI0mrAwu2-vJoR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"Nux53ft8M-GK04WR7St82":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"mRwxD7jS6lj69qJ6TAnMp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"oxjjc3yf6QO7fuDBCTfEE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"wfCq_nxfGe3yTgEIKwEDS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"LjTUb28YUkpZtctigzlKt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"PH_TgEoZqOu6ue-2AcFEz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"LBGGUJmz-lJY6ltD4KcsV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"eZIDDj2XWwUdCEOyRy9yw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"7zWlQkbzAaWrEdHDwlReC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"2IHmCAE-HxN0cwafhAgQ4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"hOvjMu_rT2ZejMibwZJof":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"MGLnME_FaqwaYvihbBtf0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"Ozp8jPcLh0SKimW4C05lY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"5Qeie8x4KkJfVzlmeuVhM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"DC1qdV5-1GYlzbARdXLZi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"_XuyXxOPxDmXp-ILCOsbH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"VnaWjF6x1BM6zr0OLheKV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"2LQVWXFxf3mTyWIxDxamY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"5Ju74jQy7k5dTFHDUucUX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"eQy47PDHTAGX5Lq827YJY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"D4rnioABfJm00vWHGQa3n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"9_c53vH_6ESJZED6Y8HE-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"UHZ3jkgaN4QSmUTCe_TQ5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"WEx0x3AJpw7nnONgeBPV6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"TJz71aKekfjbwTaCyv1EY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"HSDLm3JXYmOwEe-1AmFzQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"z-j6spj9akCzFmv0XsNdf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"hqwBtETPEFWCXUcVOMCOC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"djLE2K4VnCIKPR8rvm6Jr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"SM9f9DRd0lbE11qxaPKfh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"Hq7_ou2vr_0JEr5RYBllD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"4_e60f9CBh4eYKaN36ELQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"RymTb3CgySQ7UmKb7TOAf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"cm3RJwtJ_eskoP5k1S1hu":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"8Hp5Z51t9Jta9Cc6fPOtA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"GXEJAfexW_oYwg1_69zRN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"XIVWHW6FwwH7e6OUMBm-N":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"WpfmlwHe695YazbEQM1sc":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"CPYjQXPu5YG_vnl5MMysu":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"ic1RaCXm9NEsc9PH4hkaA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"B07KLcG3syCxjlJTNVwer":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"T-RqcfJHp1DV3xsqY7W7V":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"6yzcllZF7yx9OY3Cen012":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"R75XIAA-jivLB7YnUs7bY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"A2MIxJDZqoe00h_49d5Xy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"EHS1898zWz4esZcZDW_PL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"UDyGqgiGqPlnyX43H_TSN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"pZ5e8XXA0Iwy-l3s2-cfM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"hO-A-bN50-8IWrqL_fFjA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"hUsDzsd_yVHm-4F--PDTj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"mn0pUkKg-ei7mRb8gOk9-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"TWin0ZC2DJMmTBN7N9R7n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"DDvjQB4OVf7yhtZne9HCW":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"78MuFUUEQcGwG79ScGmtX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"ZSWCU5brIzxkagj_xpy2i":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"hjF1V6spuZGvLUz9rZ-cx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"yXT-Wn4goa1z-NI1gRRIR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"ArAQQxk6dU2YBlzhbavLj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"zrzx0BYEa8XrURDzpfLDP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"N5gVy5cAt4Sv_ORmLR6cY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"mM9g3K_5APanZVhP5IBKm":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"lcluhbLToMnByX3BuzFem":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"z549DvNV5zJFXC1DsSK0_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"2rpcSPZS_UYeU2QRxTXVB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"aDjGvD6tiWJtagBaPT64u":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"9hzMQgSalbv1sifA9X5CZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"2C1UhI_2xXU8UEEArwXxd":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"752M35QNosCfeT-n3gE1z":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"uxf17Gwmj4Vxb5VZw9JlF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"65SypOECB21GOTELm-hnD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"st-8g-YcXDt6QE3ZLeN-Z":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"EmB_rJnV9MmSzxJ6gPLpR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"SRRPrKDyJ90Hn33WwpbTl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"kyvIqjXbqRujIa1OKzC18":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"A7Rk7N56vsHuqIJDMPCol":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"54Uqt80fUrVSrlexzLvy4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"8SLwTPrUy0u505c08U33n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"ZR8OqRoTCIM5njM-GYyID":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"gAnVbvk0LACkYtHa-eVIR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"rCYML2myjtl5aKPRADBbA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"D-mUiXNUDKUfCWuB6P3ff":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"DupA2pnKUiF2DT2Mva964":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"xm-1tTXbcRMyq4R6Ovx4H":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"webRFyA8nbKkLXIXB2OCw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"K0Y9Xm4QIGj-ehX-qmwky":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"BqoN_eOL725STpEq8d5Vk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"RQDIa4j8KtHcR1RRMOMg7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"g0B5mklCMR8kBGdKtP5p7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"y5dkorZFIaEzdMTg7tceV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"_JpLfQFNwWyx5eRF2YB6F":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"FK-pZd4MdFyygoRzrA1kR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"f4ZnsobpnC2ypjIY0yaKG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"GFTUwHB4EvTg_VZihO7Yc":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"bR2UgtJonLZI7N96bg_Wl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"runvpaT58pdMGQlJgDmIl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"iqB1B9QxNKtW-OdX6sSya":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"oOveJpt16OTWLfYHWlPCe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"knSY0GVZBNXxjlyWjQLe-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"swGkGWAJuTbzqFwOU2A9g":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"molJlTOkA1Lvq1YqXZ-MC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"7X-Q8e4HOrHGR5XKUdAQV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"pa5i7D1j-g6sxihmW1dE7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"mfKY5MAErJFK5_faEabgA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"865sQ7qyHnAa10kAAHSyU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"GcTlq4SFP_3nSoJuSfyzF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"15tYmLW_AyBufCQ6Kvsyh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"srQXNL1nvUEL1248HfuyC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"XKoIZiR7lO_xvmw6X0xCr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"yar5_4gR-R_BgH6JKc2sH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"PDrQzqT7PvRePcrL5euai":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"1nbQaN5faSXCOIobMgBAL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"c7vtAsLITTvEBE05ZQdqJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"TsXoU34tK9iIgeoxoKi30":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"T2yVCEOFcvjN-4nOikAbX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"TUkguyXPtInIxrasT-IIA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"BCUJm628Lzqn857QRDSkr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"xjXvWq9IGeDMqdbLjemMR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"AMy9wRFC6t3TRxK5Vwqv-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"8v_CYumKv5jE2_rdq1H4r":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"VVEgUEM4FjlI05ErygW4B":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"Cm52ixBlBu5wCWfnDcg0h":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"XwhpBu2rBct4UMhTQ04mX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"FrgGBjd_TThYu7ko-3PUV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"DALSR7ew_l1mh_Xg7npMz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"dU8usowZ-qrHJvDy7sAz3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"gSDEjYwYgQ2mfOihmzRa2":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"H0oGur1Vw6d3TdxJ0q0o-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"KdB2xYFzP-QQTzKr5472k":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"B8RlFXJ2lCO3UBga8-kll":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"MkyLigtT2v05xWsOitnDM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"B83wFe_eTZBH64FQnaU0H":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"nTa9QaHcQg2BZJ1ifGeN2":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"_EY0ttx5F4O8x3gtwlDYc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"uJCe8rdt2hnAmJ75S08Q7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"-jNly9J19ytFmS54Kqqyj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"5S3mx4barJ9KS7SgSnAbE":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"72vDrLHL0PMGE2PlOa051":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"4QDFF-9ONuQjcOK5Tyo7Q":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"cf22laMIccntQ-K1uMdLD":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"p2qTBXjJQcxJf7DXNQDD9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"8j4nX4sNuTkUe0NEE6HVR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"vycXnPwDy63IElVqkYesG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"hjCnROxtvkf1CB8lUQoFV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"Hp3CDADf0TdLhR8aEUU3y":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"9XXxF-TsjxFhs6ijGyZRu":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"VcOIORtQqJ2TwLCtgjsMq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"a4-fLhtiLMOzae5uk6AeH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"D8PFrcQaVfVEthy5Jyzly":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"ffXoMdkyzAuL-EqO0Pku5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"ZruC5k-mvmlB-FtGpZQMv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"wYZ6iKj4C2SA4ocsT_efw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"3WBy8C3wofYhBZr8Gb7gp":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"UHfpoExgeFNwlTZI-m2J2":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"_KQeXAsGXN-0EqZkqurjU":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"sYrEYOTbVmXRKiLSuP6NG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"5z0Zr4eRsk9_WIeUEFp-q":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"mk9NteGvLiyTurb_9DRjh":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"uph6ihSpWi_YslzHFxbkf":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"9jCQmal5mWf1gpR7nRdHz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"UiqH1po53BHylkAzTqTYd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"o1Yk7hDFEUVEToZVXAdVL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"g48uSaNxL3kRdHZLh4zSK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"MqwxUS6pXIwyHgAQ4268p":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"-YZkAYVC5MJx2aKHbjbAB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"a32zV_mTRClDPgbqRlHfg":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"KE8cQPRapyZ7ZGse9PpFg":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"O3RNQzQI8B6ECt0pi6mMI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"fywUFEVsQvN262CxnMzdb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"QnIYfUlEbSet5zDrf065f":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"ZZJu39LuVdqMOkBebRQxy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"TGwjy44WI5PZjBSQhhdsc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"zF1s6UEsW0SRSBHtu3qYQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"RGR-MuZJFOoV1D3rmM0fh":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"0P47GASuIc3VCcI0a3zj-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"ByN0tqeUMJlTjdpgZTUJ5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"LJcfO_QmYOPkdbJDFXyFz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"huQLrLrePYjv2KPNOrGea":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"Igam2JVdUoRL7TMALtURn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"PATagPJfN7QOvzAfd8RH3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"7kmr2wKPbmvPW371-yrq7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"PsX25-c19CNM-eDO87Ewv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"hqUuxM-LZBsuyej8_-jJC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"aRLH3QHMAC6n68EB-wo-N":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"aNA1ULGERmD9cubWTL-O1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"oqcperPhOIo9dcwP2cr1Y":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"pI5RcWUg7CUbSHdTfHthP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"9vNHaOtVjmlfyZnb3SOc5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"ODgrjaUnELL3AXjrJ5eHw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"6gq63YnNP-9v7e27QcRf0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"lm3EWYQjSQ3i-5BkFK3RA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"NAsMQQL64vTUg7TXHfMlp":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"BOjb6B0Law3WO9Jda_fd7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"GBexstxBrzeETZAfbZ7dy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"pRwTUso9y9wYd7nX28RHt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"8ha2dHKEPSB4Cq15URDBa":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"hhXe1CIu5MnbYQvwTnhiP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"jG3vq_rXmP2nrY7k8316T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"lhiaC4yfnCi2OLXDZlGMF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"kw0bmYWGMPbAgwz2xdhxC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"mXomy6aPU-bUMDQzDYseX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"ts6w_9-egcHf3FV8QrRIe":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"t2-_Mk70TLcX4Y5k6Lxtn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"At6HrG5BEezSnk04dkSt5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"xMZuLuEdzuMsdDbX4KIii":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"OavhyiYDBorvIcGi0Wfll":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"vovWUAzfISps1_DLpykHB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"aJTumfcFbakgTrucmJfPW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"Z2VfJVKOW1dWdTliSfM2b":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"QJYl6QHELItXSvKrX4hSd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"hR9USz7I-h33J0tqvfYpL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"8-6QYVZM6KroJejcsNOSF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"JNlu4XU5hNPgccw8S5pAY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"5VS4Meuui1IM7ca3Uc6cy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"XiKkjy2ajzv7GGhqotfuR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"zA9ZuUawKzxMdQMzhrHcs":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"6htqiILKXcskdv0XITtiM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"X_bR9GjrHBHVlnD1A0TUO":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"a7IuuH7NO9dhYTM3687Jd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"307tNL0P2XPRLyTUXyl2u":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"M2VFiQ7DlGL8a64uyZ7c9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"n7VxkTswEehShFxlyQ_3m":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"b8p9Q5O79oBFYtsL8gSb_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"9s9K6gw0mRg6qTtAiZKQY":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"GXFtTPPFS6YWCbX8O91M6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"xoNV9_rbhwGMtOuM2KDxi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"zqFD3pY8j_1mMr0BxUnHu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"_43M1-8Dma8-1-7V1Axya":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"xmuMqA-V3i04uGkrdVwKM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"XTMpiOvqvgWyfwa4PpCbB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"1k4H_jLh4mN9bnHPHBvf7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"Fsu8FGFWeMRBvd2fdBGAz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"yDvhhVcIvZV26Ke4BOoOP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"zWnfDLs2bz4nknnkgMdNj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"nYXQRa7mJwaN41UuHuQLK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"3SYyqUecFWSy087lEovsB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"SjdltlmSBweXBm0y9H_BF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"2nUME8nMzNffP9oalJsQ3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"BDgni-2h_8myo_Fszopw4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"f1pQGYC4dbeJFe1kO_SEc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"TTsZCIsZB827xHBX6tSRu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"-kRJGafdefQ31_oMZwjBJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"N4v2J2eTHKEOs_NPFuBJ-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"uHckj3kiO0Kgw3rD7mvad":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"zoNu6saV7XtusLwyk4wrT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"cFOqWMI41gaqqpWhM0orF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"kF0lk23ZBeQckRzz_U258":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"iT14cBZi0Cm2Ts9xIU-HZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"LroL3nZcOHiHcwGc_bAsR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"P1QGiws7j1nQ-H-2DD0vR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"nXKTI3xWzzhth-2MvkMzk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"wGr3lvjXAIHqEXcQxN-lF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"3mNwu1eSAfrpUoAki2ywN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"qOcl8pcbwCRjnl_WCowev":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"c2zxkA-7rvEOulbGrU9eJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"5ugXSfihUBoOPBaI5RKzp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"QX0Gb-om4y1p7di8ulpYU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"UBs7n85TlUpiBgvcKiMh-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"AjhCkvLTUgumtWeBofHS2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"ycYd4asRLGtZqLxUL7cDC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"-xA204NLomrS-8gVDwp6k":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"NSkjRuBnLBVq3ndCfwjRR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"iLa7x27BwtoqD253BZZCP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"FT8vbA016DpUmlC-0UGc4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"s78GS42q5wX_HIVY_zA-8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"vy4Da2nAZD2_tB-umcfyJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"BAuqR7tDwmHI-18WYDBCC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"fjpEsnKiyF-R5Dwn4yWcN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"_1UYKKXufy1SlSE6hrxzm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"cwkTIdg9OhpzjcwzMtZZq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"sLg7Utov7DZTmAUB0o1S6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"fLHFe_bGHFqBP8Xkqt1DG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"HkyhvMl9T7GlbKajVWerL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"OoTS-m6okkncIcj0UljeY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"RUH2v-XuSi_NN1N_yZ0XX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"oyq2TYrWhD84w9Kd0go09":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"c5iMnMzLACIrzw85DZlXz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"E5JDT2bfcvypGYRu_lxeQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"Gq6wPl9-TIcSIKf4ELh1p":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"gTPl6JbFsDfdqmCCEN0NF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"jiZ0LkMWmv_yx_l8JT_yr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"FDCCxartOfAGYP2Y3iFOW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"ULDPWnaZNKGv7m91_BIu5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"UmDWKG1zgzN4wQavXchnJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"Z-AWGQOSPsg_LwKYZf8Tw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"93J1LvFmNd4VAqkwRSQBs":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"CyMf8nyO9JyzEn9IHdI1z":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"SJMsoaIvlrhKWWwhWFxzl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"1y5HFXToQ43D3-HVnsGDq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"B4MdEjOMNYMvx4eEEBDN9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"7OJHRjPleVskNn8LMhfE2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"h_2a3BrPS5rwLtCAroGpe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"bwMTF7mBk00OyfTIoMoMC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"ALtoqHyi9O90vZi1EHMOP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"LJpkQnJIpJLRWMR2gD_G2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"sfSDa7KQBgG4Ltyh7caHC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"SV80gon6E1Mz662foPJtA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"NY4SCAOBBHuCW9c60kVzi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"kIMLWsGc-CQcsnfufCgIV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"omKL9JnqKadeLT5fKvOwb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"cfbPJejPvjEluyrOHPIOP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"W_OEeHuqAk1gIfWelNMSO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"r21OmKEPjwBUTxDr7y78V":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"qQxrFprtuqPs-axV7R7-w":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"0VPpkL8Osz8KtQrm_jqHT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"-V2CZlVIIaTcLxPCF_yWc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"UfSx72r70cFxt8b8uNlRr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"VL9N5eYxjpOOPl3uar_E9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"QkUqxV1Did4DkmbZcD6as":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"UGkcFJ6fa8h7SXO7RcWk8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"ea6yXWyBdZi5J-ad14NSG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"-9TBD8nyGj_k_Dx3pWvkn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"7LoW7JnqJB_wKtaMpxjS6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"vCTSt5Jvb0_6bfj1M1OGN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"cqaI_4vnaaoHW3rPI5ceb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"KsCHV69PQ1T6IJZ1JHEAK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"EKAAlCt5HA82wVRYPHtDs":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"NaBnQA9HpXiweQ5gFodRQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"kFow6JpF01A3Z9ch9hQ7X":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"qdXakf7YrI-TZiqeCH7F9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"dVEsEDvStsRtPv0JZLX9F":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"WMh1YBj64kEBj71DlhntQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"eNO4ymr4xi3bxfrcm2t_5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"OE9JBWIkD0nhr4wEeSgkB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"YM3Q9jtexVwbiBb6NqDMC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"Vp8xaaQmlj3LXCQadiRqi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"ao71M3TkyAHNXrHPRJTee":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"kcz5G5UmzlCslw3B8nNm0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"QKpa-5B1omS8O0snwDj6y":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"SmTXCWCsCKqIZkhdRSse6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"LnDM25asGaztQmYQdTLlY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"2s470oCD6PeW_kmMrV9tz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"d1_Xqqjh2D_p-MVekKWWW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"Ps8mGiade5phVbmeNLp-C":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"k6P_sQ0XF2vzNSSHfp1FF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"9y9VMybkkGhigr94cIXf8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"grg_p5VVwjnswXHflm7o0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"hj1pVmh1RTkCUvz5o0eG_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"Tx_-SJ22A3i2Ybmirx5RX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"QhiRNIWElRwaz7DsPPcYA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"yuIji7TkfwLNXrA-9VaqQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"-EjXE0we-5_AHT8B7n_Z3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"I5O19_BFIn2FU1NEzsT9o":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"SmIXpVGdjCdzOG_Uy1xEw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"ysDNZXANasOnpMaMXQPY4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"3WkbwBYY_hyizWDlU6xOC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"YL4aLxog7qk6rR3fJScZo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"Zv4QJo4WAwEtxkEDLWPrb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"zb63iCNj0gZh-9uvIWvWO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"TOUe52U_pnoA5vPJG42jT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"kRsVGpF6SUvUH5lq9K9QQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"oTJfBLe3Dai_zHQ92uZah":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"oQgaLGd02qRxaxf5c9Ii9":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"oXW4RyUqPSyXzaHdD47p5":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"alcZSosFGR5O5ET_1IRlB":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"Kg3pky5PRqMPxZrDj0f7y":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"Um2vL6hnAzKGYAIhrCwki":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"2F8KdViDRqpH1jwipIpc8":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"bVUnV7ZnCAexV00gJgyN0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"L63oFpQXjAHy8GY3xwu4t":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"bJGo53zTVBSFaAds1hzVB":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"C_F78egYaxw1gE55xRiQ-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"MGB6sER_VSiiS2OfAA6oH":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"PgYpaNnvtTeO1HMsEGIkk":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"P8mHLP0VXlVJNt6_Js8a-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"2zujB_h1zKe7yCEocmcVg":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"O48TE6jv8ERKswrxJKWiM":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"dSCzY1GA4fUuhOJAXyB9Z":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"dKOEat_EOVQX1DPZTubnK":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"KrIvYJzl716Lksj4fILGQ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"tXIoiAe7w6_SQzai2-PQP":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"iFt5-KKLDW1NMgQ5GowPr":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"u69gHw5SR-_vgwWmVLWT9":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"sqosy0cy1T0nFEyQz0hu_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"TLvoVG0QjOs8foUbhIdiR":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"Uz6jRXB7VEzBp239M-rtE":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"EWok9eCPhiQNn29ww-sa_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"zQybvE61EdmJsyZ5SB-IL":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"WelwQmZxEhz4zs0_mU__Y":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"NT5ErY8S5zjYkUg9Mwhl3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"iHD82P1reG6gjx3wCnoXO":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"2TkU3gXnfpQjRaEXXNvfR":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"YYaBjISpTxOL-WCkltGW-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"lpljEenKiLW0py2aCeSMO":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"TkKWOSCwm18vpqO1XPLaX":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"QsukAM6E6nQ1H1qWMeH5R":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"zVt7HBy6thNuyYgnMljrf":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"wfLDDWieiKbLw1FU-tVu2":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"NfQq4Fcd7jzOQgK0GjvbP":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"x3RjzeRrtZ4EOvsiNPdlL":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"2GBf_6KNJYHGQ29SYBicq":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"yKw8v4G7s6VmVt_LaV1E2":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"ztOtsujh_0HPm_fhBt1ts":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"DyWuor5mCLbJT5UqxCXzm":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"QxMqmdUHP0-nl5JqOzMsm":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"whucDJnLxNxG3lAsP2-BT":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"lmejnqs3-_67KHXp8josE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"mrdjWiZ96U-r5b1qNJfS_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"tLNsniefH6Ps5LDoVBGXf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"iSaNvHN7jcaT1UkhrzjUQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"nAZuIraahWKFwweDZNyku":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"BjAM0Pt-M6fMtkpO2GzCk":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"NY1Obsr_8xTtHkcgwQr9b":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"s3xMSKI-qnBVnf6fBUfZu":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"VGeotU_N97fF7wjXmEZGz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"hRBmf6WK7I2uN14XT7N5y":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"kBC8mAo2SQXvKEnxwDray":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"_NjkcjYklKdr34qomBp0y":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"WP7HPpLlEHYodDYwv6MW2":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"qil8dCwAFU49V1w9O2re4":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"dmfGDn9MZfkP1uQUA3p85":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"1xiHXYrsJdLJVrwCe_8vh":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"TBf8qHqKFwykCMx1IJLau":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"4QnOaFMn23v5EFFhgFyx_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"dwUvyWfBPEjopBV25jXBR":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"r5ie2kIpXQmfVoZhdYLaI":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"dQoZ4hCBZoLTT1cDtMirD":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"PhWhxL9x-r_OIuhECkA1d":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"-SJKchXMyb9FaSfw_hyKA":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"HI4ovoRr7tZVc5ghu-leD":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"i3wH0mJ-clIx_ReRVLSxi":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"adV1xnqrb6LP8lCBvW15a":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"2QaOEg1GIq0S9ItFsAq0q":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"D6z-emS7qWacTDwIwAAus":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"m-STM0z3G0-SDKCsRT3UI":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"qRyOw0GMLCmEpW7crgAfE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"hx9V8AJEJpp7gAKY8pm7s":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"5lAEqfM3E_H1Ql8CLK-Gl":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"lu0pnAL-iBleDM6klXcD_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"1Iop94OU_rPqDu1YcBXv3":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"Py5wzdQVCILBIhP4iZVXS":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"uMTEo-A0JX0GTDsPNjinP":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"HTkJiNDE7ZOR3wZcYSzMb":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"VqI-4H8UoMZ-ifoR7PYui":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"U4MpOeS7QPBLCDGfeBDXS":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"Dzep_B6AJtt1pbNJ7r1qT":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"YoJtk2pkbl5KMhbYXY3Ho":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"nsj7HKr6s9NPdvFnPHFdp":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"8V93cVEQhhP60FffZBno7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"mqSXhOGNPMA4807WyFBQh":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"ekCA9qmgDMhkBINqGOqOQ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"cvQXRZGuWG_6X2KJ-izVM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"4bJMyw5h4ZgzWHgevj27W":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"otvC63MSQ3vY49-3a4rJ2":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"cvHXJwZoSMNc3VDzyF0cc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"zqbHlGTCclZwAdeK3QlaS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"eFvS44nWSs_r5_4XBhAIW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"fpvxr6M0nmyT1vvXbkzfJ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"lwmf7xwywJBZIaRLq5fG9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"TDserbCqlh6SncX8hGoP8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"xbmxK4o09pg5bkDhcLU4j":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"6avfWn02x9Ux475RoMOhO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#renderTarget"},"j7Bte3Bkb_iCc-wQbVwYQ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"V15cV6lfE-rmb5_07xBD-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"FSz8kK-SyLjJDBGHNM13O":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"COSj72Pwa6TnefqFw5sak":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"YTbYL8_IR8UwpEn3lsuLf":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"CXwEIq2Wh70wLe0D25KGe":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"DOrPUuMaEpFr-2U4EhG-g":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"yyqmPYPBa9mIxsL_LurTw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"u0-L4nwQm_uZ4ZcLYk9k3":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"8n_AEdBAnXCo8dF6Z7yGZ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"bqvQfg6_ON8ZG-cnzPkIs":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"1zG2ZFnu_0AOupAxGEstF":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"vfamchUkgwWBqXMSjLIq5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"JxVMvWTcKbB45tKOCXVNG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"YMhf3okRjowKBfpOAComb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"1KpcMfyV1A6isMm_a874-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"HYqO5SlybBA2IiEMkiO6p":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"-JzgafWH9AwXAGSMY_bXU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"CfrIcCY1h2ZkUHPD1QH_r":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"4P4rM5EKWPab-iuN6h9Ju":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"fraHjwidiG2L0wXQs7Hzd":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"GZymcPzDjmwyxPRa6hGTL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"FRiLb8lSshDZcQp7AfZHw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"CvIkydz3rNhuo1uVCjoXq":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"3FttDy5nStM7Lg4Yo5d__":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"x_2e9I2RxtbTvur4wbpT4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"m72XVYZRoFgt9gZAlpf4i":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"AVPMv36JsXgQ1w-KBCDux":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"PRU23DYOqmZO1TcCrQAam":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"yACleDathN8Oc65Q_76mz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"hGl_JwevIm7RALiDxy3HV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"i0PFcxCRgIcquMGAc7Q_6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"A1cKgcaKDvueRnetQdrNo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"nNPRZcVp6KHRkmFMAE_Fo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"_j5nsOOyp6akOwcH4VBaO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"MPAB2uMLSslMwF_dEkLLN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getSupportedCompressedTextureFormats"},"ilNwE-j29WBJWjtdKJZf-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"bR20sf7cIykJ4tTJ-7qov":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#hasSupportedCompressedFormats"},"1YMDijgCYUW_s5McplKbI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"Qa4Bnj_wPE4NvlKHgangy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"tGYoyaWU98KP2Ix25qRMO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"FxhLWEK8G1K4SQrIKs1GJ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"tBE5XXu6LWG6KiTjfFiZn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"Z7zVOsnXPfVFF77Caj28q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"tsDgq9Jm40RAvdHIOcpJE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"LY71a46M0cKVSV_4nmXbu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"R1N4PDThY7HHNghXNiiHw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"1-A1yJBC7gIxy-yQ9xJuH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"q-0flxxmd1ZeRIaOhT5pg":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"ahFKlWV62ZHwOcjKW37Hq":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"diF9ONBxRjYrfG2lJ0Jui":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"aaJwC5oqUEeM-pGp_-cQ9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"FhyRolm9eNO_bI7yP2KuY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"PDqXgz456X1df81W_IUaI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"TWHGmq3gnP2cwwRMrFUOy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"-kAza4LSZhKDsvqfigRmZ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setLineWidth"},"K8ZZ8KyW5vwZEHChZIufV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"w_ZdGmsGenFJ3TvLg8Wwa":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"swhvRjOWooY9e9FdXcQL7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"-cQ_dq7qWDNuU9JSVooEj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"ERK1fcoXirYIPtvup_YQv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"zfOvQBdBNGjbzbBM8uMlM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"QURtDtuYf3xokxkf6YJ9e":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"4c8vqncmFQ28hzVK_zuj_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"8Lknvl2CYGwpURmtgiUA7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"Il8z4oQRqqyQiP2zP8FXs":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"CPd1yE5qX1qRUgMI823Tg":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"l9l_KENNcponHjogsaNEP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"CXQaCmXTKC0sbrSxzuRiO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"n6azCo-B7zbjx8HWqF-DK":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"AWkUkqbC8m8qC6byNrh3k":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"s9Bl2Ku-abnBxYz8Zag_5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"sszt0mDhd3vKekHWAUip5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"UXSkWuxSLzHfx7mIkAamj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"DaPBvY82Wd4CL-wPNlMEd":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"MHCZoh0EEVzGeFZ0cEqtX":{"uri":"/melonJS/docs/melonjs/World.html"},"0nC5bm3guDezaPZXyKVqQ":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"2tiNrHGE0EINynohnfegF":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"pp_ClNGqaTjmNGBjb2Kk3":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"4dvwkfXjE2dgXR-pgaFJy":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"Id9dVfMkuCCo6P4ta1MJ_":{"uri":"/melonJS/docs/melonjs/World.html#app"},"11_d78pZ6bBLCKQyKg_7G":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"L5A1-rGoOSphGa2Jingxu":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"p3ULAKtF8kSCKg6J_bTBy":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"_iBmlO0tI4NFRwgKL1VCR":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"VZEU7fGO1UV31SKusIl8k":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"u9C66_UAauQqappA8AG2c":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"Go1905P8HCe-AkQFeU1ey":{"uri":"/melonJS/docs/melonjs/World.html#body"},"5oOooLExDoIoIBawaOw3O":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"H7c65pztI9TUrUOMebbtk":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"AkRf3lFySY6ZY_KfshTtk":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"Milz41WZDOYfLBR6_FNgi":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"rDE_bWOiHRn1qutxv9_PU":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"BTP47J46GpBJRH8zs0NoU":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"O-Kk5qMSgvY00aDyM9iuH":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"13f-1PE-Snum_hp1mgP-p":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"Z_3noFCyYKPe21oSpnuyX":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"3fTPLOmuRgy154QGT19Es":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"0p5I642ZD1kOEwUbn6Bzf":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"78-NZEHME4kOHHVcW5PBU":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"4FSVFg2fNqbCEo8rE0ZBt":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"Ih6ux9QJ1r76ecq_mmyXs":{"uri":"/melonJS/docs/melonjs/World.html#height"},"qlmG8Bwyj4yPZl2N3i8Qc":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"aHQV1K2PsaVu_m6mDE_gB":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"UpVT8_aJo2KXV6ethLSGL":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"CPQl2086ZzrJhOoPn0EVa":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"tK4pKoTPbvhBsy7mlyezR":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"GXscGqsptWwlBwKuIOpjq":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"i9mg5yUj-Zh15jtyTw_GB":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"VeqvwxrcZDa32CQjrge1Z":{"uri":"/melonJS/docs/melonjs/World.html#left"},"o8-vRDIkfS4EwgAwobzuB":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"aX2LEUN0Qizb6uRyh0D6i":{"uri":"/melonJS/docs/melonjs/World.html#name"},"UUPqk6lDN8CY4HWEG5cE0":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"-izBh4nLOxZF2DHML2fW3":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"ryeYj3G9NIXGbNhEqZvee":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"1mktAhSGB5Mckt7cQvYDs":{"uri":"/melonJS/docs/melonjs/World.html#points"},"-0SpJQxF4lTVvRmpt0Imj":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"zDGS1g4wjvoodvgRYmSzc":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"sidkbXerwK2tJUhbVIcoz":{"uri":"/melonJS/docs/melonjs/World.html#right"},"6OWE6smTijXsb5P6dWIiS":{"uri":"/melonJS/docs/melonjs/World.html#root"},"vIxiOpETvJDFQS9KIfq9X":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"hYAG-XyCpj3toGmv_jtWP":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"PwFPKwflpEYjsWYTkoraa":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"DWyFzNXaEmIKWTdgZPLBg":{"uri":"/melonJS/docs/melonjs/World.html#top"},"Abv34WGmt1F8xuGL9MhqL":{"uri":"/melonJS/docs/melonjs/World.html#type"},"kFETaozc14MGA9SBICfxD":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"As_5UBHQ3WR-K3jxG6UNV":{"uri":"/melonJS/docs/melonjs/World.html#width"},"zPzj2g-GjJ3L9FlTcesae":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"j2RQvaWMH_dQacSDUw_Dh":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"DoofMrNyfMkvDnnrOt900":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"4fGbm_tKzqORFFiJm-YnG":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"DKx4tFQYWR0IF-W1tD00w":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"x8l6KXCQBZ6Z16suSD_XF":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"wCS7jMhA3DkhZ-4cwgKT-":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"CtIPdm5ghcd6dyzKEsXgz":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"aL86bLhbxmmKD1S053AfJ":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"kSbHDgrzaiJVbSCSccic6":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"jA3pignTnJbSWFo5lGMJe":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"1dhkY-CsBPJyFe6vTph3t":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"DZXHyrmp8_27IugR-zIIW":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"6ncO_LSRiBHm6bfUqMTtx":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"Upd_sBGNW08568vaUp_Ij":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"i4gOdHlGwPDOuNcH26NUO":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"rXqnTZu8w3dI4SIoO1dX0":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"hbKwmiScy3WzEwAvNMujU":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"4vG-5obCDMejxYEjBTGLa":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"zQQRX4PRa5ZKgZy8H7hOF":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"ZFQeksw8hlGHlQAYfAk2a":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"KT4tuD0zmHv2uCwrZ2QmH":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"ml83zXGCsTxw59yxfM6VA":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"7d66uM4v9BmLw0H14f_7B":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"miXcl8DkV99Ej99ACWhA3":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"0UjVKjDmJ71basUwFrGwe":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"-SSlRE0bOeIOby921ZJK5":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"uFosor5dJqr_WEzka-ud0":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"nei6uOGQg6rjFJK3L6ukM":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"k5ysQSX27wbLzK89A60Ai":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"7sZcLB6Ssk_bUkz_q5ERz":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"NxOHCWTS2Ad5V8pmJ5Q6j":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"uBFYmykflq7QcmAdBJgbV":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"3CuKaiuknCiXAiy9xIsBv":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"SA5WpwnnYBkJigbD78T9n":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"DcGMkLov7P20FKk9m17GE":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"YuPMqzCpMhZqwEWjoyQaP":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"HZOi3zwjWeRSVQFJFe0Re":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"oqbmp_dHWDhEfVo6EGEIr":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"BGP2FCzk4MSn2UnipuNbO":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"5MG4G6wf22rIgqYXuLfKI":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"V5CrVpsI-R3Nwu3tZdF8Z":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"jD9EmQOXZdsbEl4-LVxql":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"ojvHJ6UcGUQ-pdVUB7uhf":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"r-FksLKwNgmv5HkQIL8hU":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"vXhOvap4fzAi5CI0YAYt1":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"aHzJmWiAlY7_BvdVM5ewy":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"CZmBARKiiDjK6Ya2PdotV":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"oe83oRvOC2i1bBMK1BNBm":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"H35vcM7uOmpyZj-UVIi4v":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"mBz88O25f4xx1MhC8hmaU":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"mI3Ifpciu3tFnL6dAoqN0":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"vrHrZCfUMgVXJgL6G96n6":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"6_VpMgFlcwsIooOY_pIBp":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"LShBDEEAmenHcmo-q4ZyG":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"Rl9JThWKgF5i91LvfIQ8v":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"HwHJKAXxAfNzctAMHJqz0":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"24OCe5QqmIEGCJohsRJoF":{"uri":"/melonJS/docs/melonjs/World.html#step"},"te7Up3RMdoo-NGupEpUeZ":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"NwxgjlkdM8TE1rbkozv0Q":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"W9uhpv6yoNG-IW8vYDbs0":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"GpH0pqPC5bVJMu98FKdRC":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"17ENyq0d2vthYEmku0t9t":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"ZzGbA0Jh03JUL4SwxuRfb":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"wsre10kr8Bp2Y66V6MwFi":{"uri":"/melonJS/docs/melonjs/World.html#union"},"SGlmRyZ3VWdlqZImvZOIo":{"uri":"/melonJS/docs/melonjs/World.html#update"},"e9ctWhGu-YBbMVMNj3CId":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"qoI7NSzo7UYuGf0w8NpjT":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"bcJ78zD45_AQTfPnNU0VS":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"aGZ8p8dQO0FhXL0AR1Vhw":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"DWxtMet7KKwn1-Ul1QaEr":{"uri":"global.html#AUTO"},"RfgltP4QwW8KKx9ebdzX5":{"uri":"global.html#CANVAS"},"HOo01Z__VQemEokD_IKym":{"uri":"global.html#version"},"tSt2s-VNiR4x3RF4FaLQT":{"uri":"global.html#WEBGL"},"drTS5wx2v4ck9IH8Pt81A":{"uri":"global.html#failureLoadedAssets"},"Jv_ZdHKmZcFsTsG7zEK-4":{"uri":"global.html#imgList"},"xo82IXdOBpX0i4e32MFGz":{"uri":"global.html#initialized"},"uojtPKrAsOn8h4gxWLgND":{"uri":"global.html#parserInitialized"},"qHjEmUy-vmqMSnXvJ_TMi":{"uri":"global.html#parsers"},"mGyTkJ9KNCFcooPATun8Q":{"uri":"global.html#skipAutoInit"},"3mlgAiUOgo4nHKJxnwdAb":{"uri":"/melonJS/docs/melonjs/boot.html"},"PEGweekcBbZOweYZ9i7Or":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"GMv0a-k45xImR4trgPsb2":{"uri":"/melonJS/docs/melonjs/warning.html"},"xxXLrDnF0usu6Nf-wYfiS":{"uri":"/melonJS/docs/melonjs/onresize.html"},"QVO1WFpfPjie19iT6s4pW":{"uri":"/melonJS/docs/melonjs/scale.html"}}} \ No newline at end of file +{"version":"1.0.0","metadata":{"linker":"(unsigned)","siteRoot":"melonJS/docs"},"root":{"id":"root-WxzOA4eobFMH14UdulRx6","name":"","type":"RootDoc","members":[{"id":"86KnMkwsr-cUocYE42j7k","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"4AejuD0auCnviOKsGl6zG","name":"stopOnAudioError","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

                Specify either to stop on audio loading error or not
                \nif true, melonJS will throw an exception and stop loading
                \nif ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6rgTXBRexstuz6c8qgDaE","name":"disable","brief":"","type":"FunctionDoc","description":"

                disable audio output

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RjOfIneGp_jeEN6dcxrvw","name":"enable","brief":"","see":["audio.disable"],"type":"FunctionDoc","description":"

                enable audio output
                \nonly useful if audio supported and previously disabled through

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-dOBtaL-yG43XgLhxhDeP","name":"fade","brief":"","type":"FunctionDoc","description":"

                Fade a currently playing sound between two volumee.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"from","optional":false,"description":"

                Volume to fade from (0.0 to 1.0).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"to","optional":false,"description":"

                Volume to fade to (0.0 to 1.0).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

                Time in milliseconds to fade.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will fade.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nb0ufTYs01T10661S3NuE","name":"getCurrentTrack","brief":"","type":"FunctionDoc","description":"

                returns the current track Id

                ","params":[],"returns":[{"description":"

                audio track name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"lpk66f648CFcDWjL8skIQ","name":"getVolume","brief":"","type":"FunctionDoc","description":"

                get the default global volume

                ","params":[],"returns":[{"description":"

                current volume value in Float [0.0 - 1.0] .

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i6vaD46RbtXxIcmRUUpys","name":"hasAudio","brief":"","type":"FunctionDoc","description":"

                check if audio (HTML5 or WebAudio) is supported

                ","params":[],"returns":[{"description":"

                return true if audio (HTML5 or WebAudio) is supported

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"33Kl-sW43VM73Cx_2oFai","name":"hasFormat","brief":"","type":"FunctionDoc","description":"

                check if the given audio format is supported

                ","params":[{"identifier":"codec","optional":false,"description":"

                the audio format to check for support

                ","dataType":{"tokens":[{"value":"\"mp3\" | \"mpeg\" | \"opus\" | \"ogg\" | \"oga\" | \"wav\" | \"aac\" | \"caf\" | \"m4a\" | \"m4b\" | \"mp4\" | \"weba\" | \"webm\" | \"dolby\" | \"flac\"","kind":"canonical"},{"value":"\"mp3\"","kind":"canonical"},{"value":"\"mpeg\"","kind":"canonical"},{"value":"\"opus\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"oga\"","kind":"canonical"},{"value":"\"wav\"","kind":"canonical"},{"value":"\"aac\"","kind":"canonical"},{"value":"\"caf\"","kind":"canonical"},{"value":"\"m4a\"","kind":"canonical"},{"value":"\"m4b\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"weba\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"dolby\"","kind":"canonical"},{"value":"\"flac\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}}],"returns":[{"description":"

                return true if the given audio format is supported

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5WkMVygfBqEPn-AUDcaK2","name":"init","brief":"","examples":[{"caption":"","code":"// initialize the \"sound engine\", giving \"webm\" as default desired audio format, and \"mp3\" as a fallback\nif (!me.audio.init(\"webm,mp3\")) {\n alert(\"Sorry but your browser does not support html 5 audio !\");\n return;\n}"}],"type":"FunctionDoc","description":"

                Initialize and configure the audio support.
                \nFor a maximum browser coverage the recommendation is to use at least two o...","params":[{"identifier":"format","optional":true,"default":"\"mp3\"","description":"

                audio format to prioritize ("mp3"|"mpeg"|"opus"|"ogg"|"oga"|"wav&qu...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                Indicates whether audio initialization was successful

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3CS0sjkpTcFg8u9dUsgp8","name":"load","brief":"","type":"FunctionDoc","description":"

                Load an audio file

                ","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onloadcb","optional":true,"description":"

                function to be called when the resource is loaded

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerrorcb","optional":true,"description":"

                function to be called in case of error

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings","optional":true,"description":"

                custom settings to apply to the request (@link https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)

                ","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"returns":[{"description":"

                the amount of asset loaded (always 1 if successfull)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5EO0c-84HQuZl2ZTmCAGv","name":"mute","brief":"","examples":[{"caption":"","code":"// mute the background music\nme.audio.mute(\"awesome_music\");"}],"type":"FunctionDoc","description":"

                mute or unmute the specified sound, but does not pause the playback.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will mute.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"mute","optional":true,"default":"true","description":"

                True to mute and false to unmute

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z_oYSSGQLqA-gFn9G9bsk","name":"muteAll","brief":"","type":"FunctionDoc","description":"

                mute all audio

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bYeqSESaZQCTuZC-lsrMI","name":"muted","brief":"","type":"FunctionDoc","description":"

                Returns true if audio is muted globally.

                ","params":[],"returns":[{"description":"

                true if audio is muted globally

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HNYSOMDKOO1dOCV887PFQ","name":"orientation","brief":"","type":"FunctionDoc","description":"

                Get/set the direction the audio source is pointing in the 3D cartesian coordinate space.\nDepending on how direction the so...","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

                the x-orientation of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y-orientation of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

                the z-orientation of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will be changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the current 3D spatial orientation: [x, y, z]

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aOYL0dfzT8IBSMnEn81VS","name":"panner","brief":"","examples":[{"caption":"","code":"me.audio.panner(\"cling\", {\n panningModel: 'HRTF',\n refDistance: 0.8,\n rolloffFactor: 2.5,\n distanceModel: 'exponential'\n});"}],"type":"FunctionDoc","description":"

                get or set the panner node's attributes for a sound or group of sounds.\nSee {@link https://developer.mozilla.org/en-US/doc...","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"attribute","optional":true,"description":"

                the panner attributes to set

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.coneInnerAngle","optional":true,"default":"360","description":"

                A parameter for directional audio sources, this is an angle, in degrees, inside of which there will be no volume reduction...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.coneOuterAngle","optional":true,"default":"360","description":"

                A parameter for directional audio sources, this is an angle, in degrees, outside of which the volume will be reduced to a ...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.coneOuterGain","optional":true,"default":"0","description":"

                A parameter for directional audio sources, this is the gain outside of the coneOuterAngle. It is a linear val...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.distanceModel","optional":true,"default":"\"inverse\"","description":"

                Determines algorithm used to reduce volume as audio moves away from listener. Can be linear, inverseThe maximum distance between source and listener, after which the volume will not be reduced any further.

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.refDistance","optional":true,"default":"1","description":"

                A reference distance for reducing volume as source moves further from the listener. This is simply a variable of the dista...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.rolloffFactor","optional":true,"default":"1","description":"

                How quickly the volume reduces as source moves from listener. This is simply a variable of the distance model and can be i...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.panningModel","optional":true,"default":"\"HRTF\"","description":"

                Determines which spatialization algorithm is used to position audio. Can be HRTF or equalpower.

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will be changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                current panner attributes.

                ","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"extends":[],"implements":[]},{"id":"odma4cbIQJhtCCSMHgOnQ","name":"pause","brief":"","examples":[{"caption":"","code":"me.audio.pause(\"cling\");"}],"type":"FunctionDoc","description":"

                pause the specified sound on all channels
                \nthis function does not reset the currentTime property

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will pause.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6s1ZAzVt5s0BqIP_pUakh","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"type":"FunctionDoc","description":"

                pause the current audio track

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-bQtgRsCC2cBsCnYBLsXX","name":"play","brief":"","examples":[{"caption":"","code":"// play the \"cling\" audio clip\nme.audio.play(\"cling\");\n// play & repeat the \"engine\" audio clip\nme.audio.play(\"engine\", true);\n// play the \"gameover_sfx\" audio clip and call myFunc when finished\nme.audio.play(\"gameover_sfx\", false, myFunc);\n// play the \"gameover_sfx\" audio clip with a lower volume level\nme.audio.play(\"gameover_sfx\", false, null, 0.5);"}],"type":"FunctionDoc","description":"

                play the specified sound

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"loop","optional":true,"default":"false","description":"

                loop audio

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"onend","optional":true,"description":"

                Function to call when sound instance ends playing.

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"volume","optional":true,"default":"default","description":"

                Float specifying volume (0.0 - 1.0 values accepted).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the sound instance ID.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nWCYVD2VfB06uO4JyUXYP","name":"playTrack","brief":"","examples":[{"caption":"","code":"me.audio.playTrack(\"awesome_music\");"}],"type":"FunctionDoc","description":"

                play the specified audio track
                \nthis function automatically set the loop property to true
                \nand keep track of the cur...","params":[{"identifier":"sound_name","optional":false,"description":"

                audio track name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"volume","optional":true,"default":"default","description":"

                Float specifying volume (0.0 - 1.0 values accepted).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the sound instance ID.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ctmqn_ITrC4MEXLBciyRr","name":"position","brief":"","type":"FunctionDoc","description":"

                get or set the 3D spatial position for the specified sound.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

                the x-position of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y-position of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

                the z-position of the audio source.

                ","dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will be changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the current 3D spatial position: [x, y, z]

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"073_8nvPzJTdAw_5xYzgQ","name":"rate","brief":"","examples":[{"caption":"","code":"// get the playback rate of the background music\nlet rate = me.audio.rate(\"dst-gameforest\");\n// speed up the playback of the background music\nme.audio.rate(\"dst-gameforest\", 2.0);"}],"type":"FunctionDoc","description":"

                get or set the rate of playback for a sound.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"rate","optional":true,"variadic":true,"description":"

                playback rate : 0.5 to 4.0, with 1.0 being normal speed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will be changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                return the current playback rate (if no extra parameters were given)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wPeViiavDWtWA52Zl1P8U","name":"resume","brief":"","examples":[{"caption":"","code":"// play a audio clip\nlet id = me.audio.play(\"myClip\");\n...\n// pause it\nme.audio.pause(\"myClip\", id);\n...\n// resume\nme.audio.resume(\"myClip\", id);"}],"type":"FunctionDoc","description":"

                resume the specified sound on all channels

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will resume.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"61nBC8sHnGEmXpJvTlvuL","name":"resumeTrack","brief":"","examples":[{"caption":"","code":"// play an awesome music\nme.audio.playTrack(\"awesome_music\");\n// pause the audio track\nme.audio.pauseTrack();\n// resume the music\nme.audio.resumeTrack();"}],"type":"FunctionDoc","description":"

                resume the previously paused audio track

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ug4y7EAou_nP1NFCxmjbT","name":"seek","brief":"","examples":[{"caption":"","code":"// return the current position of the background music\nlet current_pos = me.audio.seek(\"dst-gameforest\");\n// set back the position of the background music to the beginning\nme.audio.seek(\"dst-gameforest\", 0);"}],"type":"FunctionDoc","description":"

                get/set the position of playback for a sound.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"seek","optional":true,"variadic":true,"description":"

                the position to move current playback to (in seconds).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                return the current seek position (if no extra parameters were given)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"13L7P_Q6SBucy97Hmmd7a","name":"setVolume","brief":"","type":"FunctionDoc","description":"

                set the default global volume

                ","params":[{"identifier":"volume","optional":false,"description":"

                Float specifying volume (0.0 - 1.0 values accepted).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"y1L9d2Sn9WvYiZWUszDqq","name":"stereo","brief":"","examples":[{"caption":"","code":"me.audio.stereo(\"cling\", -1);"}],"type":"FunctionDoc","description":"

                get or set the stereo panning for the specified sound.

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"pan","optional":true,"description":"

                the panning value - A value of -1.0 is all the way left and 1.0 is all the way right.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will be changed.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the current panning value

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nvzRKQ2pqNX-wcpW2hqZP","name":"stop","brief":"","examples":[{"caption":"","code":"me.audio.stop(\"cling\");"}],"type":"FunctionDoc","description":"

                stop the specified sound on all channels

                ","params":[{"identifier":"sound_name","optional":true,"description":"

                audio clip name (case sensitive). If none is passed, all sounds are stopped.

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will stop.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Csje1rF4GxojjOxij6b8H","name":"stopTrack","brief":"","examples":[{"caption":"","code":"// play a awesome music\nme.audio.playTrack(\"awesome_music\");\n// stop the current music\nme.audio.stopTrack();"}],"see":["audio.playTrack"],"type":"FunctionDoc","description":"

                stop the current audio track

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mdSs9noHKP1tNgrOX0GCV","name":"unload","brief":"","examples":[{"caption":"","code":"me.audio.unload(\"awesome_music\");"}],"type":"FunctionDoc","description":"

                unload specified audio track to free memory

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio track name - case sensitive

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                true if unloaded

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hnGcIKRE6Hw76bRnRS7mP","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"type":"FunctionDoc","description":"

                unload all audio to free memory

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rC0aoRHRNjI_GqRsdinz5","name":"unmute","brief":"","type":"FunctionDoc","description":"

                unmute the specified sound

                ","params":[{"identifier":"sound_name","optional":false,"description":"

                audio clip name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                the sound instance ID. If none is passed, all sounds in group will unmute.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cLBnbvOV7IJXqCFoseQAi","name":"unmuteAll","brief":"","type":"FunctionDoc","description":"

                unmute all audio

                ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"6KMIi_lSdCMFIdRFzFsG-","name":"collision","brief":"","type":"NSDoc","description":"

                Collision detection (and projection-based collision response) of 2D shapes.
                \nBased on the Separating Axis Theorem and s...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"oqjtuHzh1U2gkimYgQWdH","name":"types","brief":"","examples":[{"caption":"","code":" // set the body collision type\n myEntity.body.collisionType = me.collision.types.PLAYER_OBJECT;\n\n // filter collision detection with collision shapes, enemies and collectables\n myEntity.body.setCollisionMask(\n me.collision.types.WORLD_SHAPE |\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.COLLECTABLE_OBJECT\n );\n\n // User-defined collision types are defined using BITWISE LEFT-SHIFT:\n game.collisionTypes = {\n LOCKED_DOOR : me.collision.types.USER << 0,\n OPEN_DOOR : me.collision.types.USER << 1,\n LOOT : me.collision.types.USER << 2,\n };\n\n // Set collision type for a door entity\n myDoorEntity.body.collisionType = game.collisionTypes.LOCKED_DOOR;\n\n // Set collision mask for the player entity, so it collides with locked doors and loot\n myPlayerEntity.body.setCollisionMask(\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.WORLD_SHAPE |\n game.collisionTypes.LOCKED_DOOR |\n game.collisionTypes.LOOT\n );"}],"readonly":true,"scope":"static","see":["Body.setCollisionMask","Body.collisionType"],"type":"EnumDoc","description":"

                Enum for collision type values.

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"vSR76rVEJjEqRR2QhvC9o","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                e.g. doors

                "},{"id":"DpHA_pYbVFEdUeWgpksaz","name":"ALL_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                all of the above (including user-defined types)

                "},{"id":"idLKWu6X-B9ZYeMvBQB4b","name":"COLLECTABLE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                collectable objects

                "},{"id":"Ohjg4kmj3KS-tG0wwAPf9","name":"ENEMY_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                enemies objects

                "},{"id":"sUQPTyGOxn8t4sVmNtd35","name":"NO_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                to disable collision check

                "},{"id":"SlyVyvXufLi6H39-dunN_","name":"NO_OBJECT","brief":"

                to disable collision check

                ","defaultValue":"0","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bbYbjtb22_JuuglXVbnOi","name":"NPC_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                non playable characters

                "},{"id":"l0e-4BzDiIF4plGqhI01Z","name":"PLAYER_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                playbable characters

                "},{"id":"HEtn4QE5FI1qFWnmsQsxg","name":"PROJECTILE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                e.g. missiles

                "},{"id":"LLYDWTRbFDzIg8l6_1hC1","name":"USER","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                user-defined collision types (see example)

                "},{"id":"jeMIYY9c5GH8zVO5Wnnvs","name":"WORLD_SHAPE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                e.g. walls; for map collision shapes

                "}]},{"id":"qfUHzS8E8RRhN5XhMXMRP","name":"maxChildren","brief":"","access":"public","defaultValue":"8","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

                The maximum number of children that a quadtree node can contain before it is split into sub-nodes.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pmMP1uc2aTvlPgVJl6qCo","name":"maxDepth","brief":"","access":"public","defaultValue":"4","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

                The maximum number of levels that the quadtree will create.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WsHHS-Z8e1OoBHB7et2xb","name":"rayCast","brief":"","access":"public","examples":[{"caption":"","code":" // define a line accross the viewport\n let ray = new me.Line(\n // absolute position of the line\n 0, 0, [\n // starting point relative to the initial position\n new me.Vector2d(0, 0),\n // ending point\n new me.Vector2d(me.game.viewport.width, me.game.viewport.height)\n ]);\n\n // check for collition\n result = me.collision.rayCast(ray);\n\n if (result.length > 0) {\n // ...\n }"}],"scope":"instance","type":"MethodDoc","description":"

                Checks for object colliding with the given line

                ","params":[{"identifier":"line","optional":false,"description":"

                line to be tested for collision

                ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}},{"identifier":"result","optional":true,"description":"

                a user defined array that will be populated with intersecting physic objects.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                an array of intersecting physic objects

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"9CrdWnPp5bT4YcOO4ZivA","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

                device type and capabilities

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"B41-rDyBo-v0tmOcQZGJm","name":"platform","brief":"","readonly":true,"type":"NSDoc","description":"

                The device platform type

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1Qo5KOZF9tjJaqziQ5RMV","name":"android","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is an Android platform

                "},{"id":"Wk8OPw8v5kmRqxcDzmRvy","name":"android2","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is an Android 2.x platform

                "},{"id":"14gRSk5LlPXSvxDm_jY_I","name":"BlackBerry","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a BlackBerry platform

                "},{"id":"KP3XgM66v-MEZbaTYLA5I","name":"chromeOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is running on ChromeOS.

                "},{"id":"3vbZdpvsoJKMkPTey6mqn","name":"ejecta","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if running under Ejecta

                "},{"id":"kv2pCh1Lqow-DXRvXG6F1","name":"iOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is an iOS platform

                "},{"id":"seFIgGCcRw3RhzfhZ1XfW","name":"isMobile","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if a mobile device

                "},{"id":"2BwR0DReB0Jxh4vuO2Q6p","name":"isWeixin","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if running under Wechat

                "},{"id":"xmGKQgJhSu_VdVFFxFsBW","name":"Kindle","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a Kindle platform

                "},{"id":"gHqkvOnxsvThzMnH6Av2X","name":"linux","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a Linux platform

                "},{"id":"872RXv-_1jZgRM9V_mNM3","name":"nodeJS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if running under node.js

                "},{"id":"HfHCGf40rFL9_eARdfsUz","name":"ua","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                the user agent string for the current device

                "},{"id":"ZgI3SUsIGg8NarWUFubY7","name":"webApp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if running as a standalone web app

                "},{"id":"Tv46lbh-UD3Nc1YuCmR-r","name":"wp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a Windows Phone platform

                "}]},{"id":"2U09PkO2omo3TY_qEWDpm","name":"accelerationX","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                contains the g-force acceleration along the x-axis.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OalHJnGurSIPQKUbbIdOv","name":"accelerationY","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                contains the g-force acceleration along the y-axis.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6mQjwK3R0cquBmgJLfmSp","name":"accelerationZ","brief":"","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                contains the g-force acceleration along the z-axis.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FXUWN9qFDx-AkUIDgLay4","name":"alpha","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                Device orientation Alpha property. Gives angle based on the rotation of the phone around its z axis.\nThe z-axis is perpend...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G8dntsDNludx_vMxynD8e","name":"autoFocus","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

                Specify whether to automatically bring the window to the front

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KBuDe5TwcjtBnW1G8v7GP","name":"beta","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                Device orientation Beta property. Gives angle on tilting a portrait held phone forward or backward

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"23qh_odUouYE6-2noz2sL","name":"devicePixelRatio","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IFI8Jmpm3vBV6iI1QTF4h","name":"gamma","brief":"","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                Device orientation Gamma property. Gives angle on tilting a portrait held phone left or right

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pbHJWSjzpT19VTAEWrdhl","name":"hasAccelerometer","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                Browser accelerometer capabilities

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YHQwvxyvsy8x7rB3vJcVO","name":"hasDeviceOrientation","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                Browser device orientation

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-CkNnlI5d7hO3cx39xY1e","name":"hasFullscreenSupport","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Browser full screen support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oJN5zxyDbNZljAQTXipHB","name":"hasHTML5Audio","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Device HTML5Audio Support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T4dMzTUV58r8-Tpeh4sOA","name":"hasPointerLockSupport","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Browser pointerlock api support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rHLG4FDnbKzIQVyxG85T-","name":"hasVideo","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Device Video Support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7uy_wGBNZHxYiHlWzbM6J","name":"hasWebAudio","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                Device WebAudio Support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UFKlTeCo1iUn0qfKiIgcw","name":"isMobile","brief":"","readonly":true,"type":"PropertyDoc","description":"

                equals to true if a mobile device.\n(Android | iPhone | iPad | iPod | BlackBerry | Windows Phone | Kindle)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y2zbaWa-d2DNPzRjdTWue","name":"language","brief":"","readonly":true,"see":["http://www.w3schools.com/tags/ref_language_codes.asp"],"type":"PropertyDoc","description":"

                a string representing the preferred language of the user, usually the language of the browser UI.\n(will default to "e...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W3fk444NA_4DLiwLBilkg","name":"localStorage","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Browser Local Storage capabilities
                \n(this flag will be set to false if cookies are blocked)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GGV4B_4_0RUcTc_b4RoMe","name":"maxTouchPoints","brief":"","examples":[{"caption":"","code":"if (me.device.maxTouchPoints > 1) {\n // device supports multi-touch\n}"}],"readonly":true,"type":"PropertyDoc","description":"

                the maximum number of simultaneous touch contact points are supported by the current device.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ypVvknrU15D0llC7oYLYu","name":"nativeBase64","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Browser Base64 decoding capability

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gNLt4IWLJjMUa-SFPU6of","name":"offscreenCanvas","brief":"","readonly":true,"type":"PropertyDoc","description":"

                equals to true if the device browser supports OffScreenCanvas.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j5QdGMJpf544X1JTggAEW","name":"pauseOnBlur","brief":"","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.pauseOnBlur"],"type":"PropertyDoc","description":"

                Specify whether to pause the game when losing focus

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"duch6L1elBOqIqrvDAgUv","name":"platform","brief":"","readonly":true,"type":"PropertyDoc","description":"

                the device platform type

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6H0lBhUlVdmw3GKOKV3e7","name":"pointerEvent","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                True if the browser supports Pointer Events

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K1cJ4Cn1O9HqA2TFZv1BR","name":"resumeOnFocus","brief":"","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.resumeOnFocus"],"type":"PropertyDoc","description":"

                Specify whether to unpause the game when gaining focus

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-zO4lTldPsscbRhmHg9Av","name":"screenOrientation","brief":"","readonly":true,"see":["https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange"],"type":"PropertyDoc","description":"

                Supports the ScreenOrientation API

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Fb_NCfa6AJK_R0RlwrYA","name":"sound","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Returns true if the browser/device has audio capabilities.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FUngpVIsN-iZaPl2WLxny","name":"stopOnBlur","brief":"","defaultValue":"false","deprecated":"since 15.4.0","see":["Application.stopOnBlur"],"type":"PropertyDoc","description":"

                Specify whether to stop the game when losing focus or not.\nThe engine restarts on focus if this is enabled.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"duQFm-JMWjiLsd-4-k3V7","name":"touch","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Touch capabilities (support either Touch or Pointer events)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Nd2jfRafAkwNWu3WOHA9","name":"touchEvent","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                True if the browser supports Touch Events

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WK_e3Sh_5oSQaXymHgI3a","name":"wheel","brief":"","readonly":true,"type":"PropertyDoc","description":"

                W3C standard wheel events

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Jn_1OEUfu4l8cxP6Kpy8","name":"enableSwipe","brief":"","type":"FunctionDoc","description":"

                enable/disable swipe on WebView.

                ","params":[{"identifier":"enable","optional":true,"default":"true","description":"

                enable or disable swipe.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"byQQYjVAH7jFvfBtfHDT_","name":"exitFullscreen","brief":"","type":"FunctionDoc","description":"

                Exit fullscreen mode. Requires fullscreen support from the browser/device.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RPz8ORZKUsU11jybh0zeP","name":"focus","brief":"","examples":[{"caption":"","code":"if (clicked) {\n me.device.focus();\n}"}],"type":"FunctionDoc","description":"

                Makes a request to bring this device window to the front.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ivSXsKWbP3dIdJVrDXwEg","name":"getElement","brief":"","type":"FunctionDoc","description":"

                return the DOM element for the given element name or HTMLElement object

                ","params":[{"identifier":"element","optional":false,"description":"

                the parent element name or a HTMLElement object

                ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                the corresponding DOM Element or null if not existing

                ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5UxTreBiqcStCa057Wsg4","name":"getElementBounds","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

                returns the size of the given HTMLElement and its position relative to the viewport\n
                an HTMLElement object

                ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                the size and position of the element relatively to the viewport

                ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zm14zRlVtwQ9wLyzSeCW5","name":"getParentBounds","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

                returns the size of the given HTMLElement Parent and its position relative to the viewport\n
                an HTMLElement object

                ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                the size and position of the given element parent relative to the viewport

                ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7loiaNpNtCHNbrI0ZYKrD","name":"getParentElement","brief":"","type":"FunctionDoc","description":"

                return the parent DOM element for the given parent name or HTMLElement object

                ","params":[{"identifier":"element","optional":false,"description":"

                the parent element name or a HTMLElement object

                ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                the parent Element

                ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t4VxvSdIBTuBYmGHTJkOt","name":"getScreenOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation"],"type":"FunctionDoc","description":"

                Return a string representing the orientation of the device screen.\nIt can be "any", "natural", "l...","params":[],"returns":[{"description":"

                the screen orientation

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Sqo4pGgHrhinSYrIHhsvQ","name":"getStorage","brief":"","see":["save"],"type":"FunctionDoc","description":"

                return the device storage

                ","params":[{"identifier":"type","optional":true,"default":"\"local\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                a reference to the device storage

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"ANvWqOTvc2bVZPBBVy3xD","name":"hasVideoFormat","brief":"","type":"FunctionDoc","description":"

                detect if the given video format is supported

                ","params":[{"identifier":"codec","optional":false,"description":"

                the video format to check for support

                ","dataType":{"tokens":[{"value":"\"h264\" | \"h265\" | \"ogg\" | \"mp4\" | \"m4v\" | \"webm\" | \"vp9\" | \"hls\"","kind":"canonical"},{"value":"\"h264\"","kind":"canonical"},{"value":"\"h265\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"m4v\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"vp9\"","kind":"canonical"},{"value":"\"hls\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8"}}],"returns":[{"description":"

                return true if the given video format is supported

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m8OgsD09lcBW3qdhDc99s","name":"isFullscreen","brief":"","type":"FunctionDoc","description":"

                Returns true if the browser/device is in full screen mode.

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4KFsE7EAypSbRiJ-nntEj","name":"isLandscape","brief":"","type":"FunctionDoc","description":"

                return true if the device screen orientation is in Portrait mode

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NeyzR50cIyI7wj0oD-W4B","name":"isPortrait","brief":"","type":"FunctionDoc","description":"

                return true if the device screen orientation is in Portrait mode

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"g2SYV97ct1AjaCpL_cFNh","name":"isWebGLSupported","brief":"","type":"FunctionDoc","description":"

                returns true if the device supports WebGL

                ","params":[{"identifier":"options","optional":true,"description":"

                context creation options

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.failIfMajorPerformanceCaveat","optional":true,"default":"true","description":"

                If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than t...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                true if WebGL is supported

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MQC70P51rK2PgKozmdtWa","name":"lockOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

                locks the device screen into the specified orientation.
                \nThis method only works for installed Web apps or for Web pages...","params":[{"identifier":"orientation","optional":false,"description":"

                The orientation into which to lock the screen.

                ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                true if the orientation was unsuccessfully locked

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"60SffuWyKd8N1QafBJJ6n","name":"onReady","brief":"","examples":[{"caption":"","code":" // small game skeleton\n let game = {\n // called by the me.device.onReady function\n onload = function () {\n // init video\n if (!me.video.init('screen', 640, 480, true)) {\n alert(\"Sorry but your browser does not support html 5 canvas.\");\n return;\n }\n\n // initialize the \"audio\"\n me.audio.init(\"mp3,ogg\");\n\n // set callback for ressources loaded event\n me.loader.onload = this.loaded.bind(this);\n\n // set all ressources to be loaded\n me.loader.preload(game.assets);\n\n // load everything & display a loading screen\n me.state.change(me.state.LOADING);\n };\n\n // callback when everything is loaded\n loaded = function () {\n // define stuff\n // ....\n\n // change to the menu screen\n me.state.change(me.state.PLAY);\n }\n }; // game\n\n // \"bootstrap\"\n me.device.onReady(function () {\n game.onload();\n });"}],"type":"FunctionDoc","description":"

                specify a function to execute when the Device is fully loaded and ready

                ","params":[{"identifier":"fn","optional":false,"description":"

                the function to be executed

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"1mWG2gG3Dgf4mvj2D3xOP","name":"requestFullscreen","brief":"","examples":[{"caption":"","code":"// add a keyboard shortcut to toggle Fullscreen mode on/off\nme.input.bindKey(me.input.KEY.F, \"toggleFullscreen\");\nme.event.on(me.event.KEYDOWN, function (action, keyCode, edge) {\n // toggle fullscreen on/off\n if (action === \"toggleFullscreen\") {\n me.device.requestFullscreen();\n } else {\n me.device.exitFullscreen();\n }\n});"}],"type":"FunctionDoc","description":"

                Triggers a fullscreen request. Requires fullscreen support from the browser/device.

                ","params":[{"identifier":"element","optional":true,"description":"

                the element to be set in full-screen mode.

                ","dataType":{"tokens":[{"value":"Element","kind":"canonical"},{"value":"Element","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AE1u3NMVovs6Vi2fiy6oB","name":"unlockOrientation","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

                unlocks the device screen into the specified orientation.
                \nThis method only works for installed Web apps or for Web pag...","params":[],"returns":[{"description":"

                true if the orientation was unsuccessfully unlocked

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9jDJkNEQD15r8dmtRJTgq","name":"unwatchAccelerometer","brief":"","type":"FunctionDoc","description":"

                unwatch Accelerometor event

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5M8_9NALCTx6Yhwt66bre","name":"unwatchDeviceOrientation","brief":"","type":"FunctionDoc","description":"

                unwatch Device orientation event

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O5YJabWpIHUdlEiKKp3Tp","name":"vibrate","brief":"","examples":[{"caption":"","code":"// vibrate for 1000 ms\nme.device.vibrate(1000);\n// or alternatively\nme.device.vibrate([1000]);\n// vibrate for 50 ms, be still for 100 ms, and then vibrate for 150 ms:\nme.device.vibrate([50, 100, 150]);\n// cancel any existing vibrations\nme.device.vibrate(0);"}],"type":"FunctionDoc","description":"

                the vibrate method pulses the vibration hardware on the device,
                \nIf the device doesn't support vibration, this method ...","params":[{"identifier":"pattern","optional":false,"description":"

                pattern of vibration and pause intervals

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"kwL8vxpmmybcLOhN5rqAx","name":"watchAccelerometer","brief":"","examples":[{"caption":"","code":"// try to enable device accelerometer event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchAccelerometer() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device accelerometer event\n }\n});"}],"see":["device.accelerationX","device.accelerationY","device.accelerationZ"],"type":"FunctionDoc","description":"

                Enable monitor of the device accelerator to detect the amount of physical force of acceleration the device is receiving.\n(...","params":[],"returns":[{"description":"

                false if not supported or permission not granted by the user

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dnnb1LXtXUWe9Ep_6oH-6","name":"watchDeviceOrientation","brief":"","examples":[{"caption":"","code":"// try to enable device orientation event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchDeviceOrientation() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device orientation event\n }\n});"}],"see":["device.alpha","device.beta","device.gamma"],"type":"FunctionDoc","description":"

                Enable monitor of the device orientation to detect the current orientation of the device as compared to the Earth coordina...","params":[],"returns":[{"description":"

                false if not supported or permission not granted by the user

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"dACIvkqwrIxMTO7e_aQsn","name":"event","brief":"","type":"NSDoc","description":"

                an event system based on nodeJS EventEmitter interface

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"aLZDyyKksC38ner1kcKKb","name":"BLUR","brief":"","access":"public","defaultValue":"\"me.blur\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event generated when the main browser or window is losing focus

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q_Z62ev3WwYitvy6U7I3I","name":"BOOT","brief":"","access":"public","defaultValue":"\"me.boot\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event when the system is booting

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nfpT4w7Io4pypCRW4JWnX","name":"CANVAS_ONRESIZE","brief":"","access":"public","defaultValue":"\"canvas.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the canvas is resized
                \n(this usually follows a WINDOW_ONRESIZE event).
                \nData passed : {number} canva...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JPF0hlGVX-rVtljbDA_vV","name":"DOM_READY","brief":"","access":"public","defaultValue":"\"dom_ready\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event when the DOM is Ready is booting

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a7BHA_rdgFaJAIarwga46","name":"DRAGEND","brief":"","access":"public","defaultValue":"\"me.game.dragend\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for dragend events on a Draggable entity
                \nData passed:\n{object} the drag event
                \n{object} the Draggable entit...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jQ29HFin9MYR-27Xx8MmU","name":"DRAGSTART","brief":"","access":"public","defaultValue":"\"me.game.dragstart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for dragstart events on a Draggable entity
                \nData passed:\n{object} the drag event
                \n{object} the Draggable ent...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XZOclPKu58bY_cz9jRGsB","name":"FOCUS","brief":"","access":"public","defaultValue":"\"me.focus\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event generated when the main browser or window is gaining back focus

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"emhYu26EHoj1uIC7ZotaE","name":"GAME_AFTER_DRAW","brief":"","access":"public","defaultValue":"\"me.game.afterDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for the start of the draw loop\nData passed : {number} time the current time stamp

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4S4UhbUn6ZQuYIbOAqBPu","name":"GAME_AFTER_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.afterUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for the end of the update loop\nData passed : {number} time the current time stamp

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f5sv-DxmvCSjMX4j-RkMY","name":"GAME_BEFORE_DRAW","brief":"","access":"public","defaultValue":"\"me.game.beforeDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for the end of the draw loop\nData passed : {number} time the current time stamp

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AbtHUuvnlz-QPuGKe4Woe","name":"GAME_BEFORE_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.beforeUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the engine is about to start a new game loop\nData passed : {number} time the current time stamp

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"StEdPPfqT3l7OsZ9pw4YF","name":"GAME_INIT","brief":"","access":"public","defaultValue":"\"me.game.onInit\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the game manager is initialized
                \nData passed : none

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H-WzO_9AuINIA1as-NnEz","name":"GAME_RESET","brief":"","access":"public","defaultValue":"\"me.game.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the game manager is resetted
                \nData passed : none

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5pK2yP1crRlQg0J3YO_0V","name":"GAME_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.onUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the game is updated (will be impacted by frame skip, frame interpolation and pause/resume state)
                \nData ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0tkEU6dMjNdGWRwJluf-s","name":"GAMEPAD_CONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.connected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when a gamepad is connected
                \nData passed : {object} gamepad object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DyUa_q7ofWrlL78shkr9X","name":"GAMEPAD_DISCONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.disconnected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when a gamepad is disconnected
                \nData passed : {object} gamepad object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"402WLWpr14M10LQDokItj","name":"GAMEPAD_UPDATE","brief":"","access":"public","defaultValue":"\"gamepad.update\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when gamepad button/axis state is updated
                \nData passed : {number} index
                \nData passed : {string} type : &...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w9M_rSVXFW_D0crDnWw01","name":"KEYDOWN","brief":"","access":"public","defaultValue":"\"me.input.keydown\"","examples":[{"caption":"","code":" me.input.bindKey(me.input.KEY.X, \"jump\", true); // Edge-triggered\n me.input.bindKey(me.input.KEY.Z, \"shoot\"); // Level-triggered\n me.event.on(me.event.KEYDOWN, (action, keyCode, edge) => {\n // Checking bound keys\n if (action === \"jump\") {\n if (edge) {\n this.doJump();\n }\n\n // Make character fall slower when holding the jump key\n this.vel.y = this.body.gravity;\n }\n });"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for pressing a binded key
                \nData passed : {string} user-defined action, {number} keyCode,\n{boolean} edge state {\n // Checking unbound keys\n if (keyCode == me.input.KEY.ESC) {\n if (me.state.isPaused()) {\n me.state.resume();\n }\n else {\n me.state.pause();\n }\n }\n});"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for releasing a binded key
                \nData passed : {string} user-defined action, {number} keyCode

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fCXi51Rw0qSe9XfXfVex-","name":"LEVEL_LOADED","brief":"","access":"public","defaultValue":"\"me.game.onLevelLoaded\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when a level is loaded
                \nData passed : {string} Level Name

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"22wDSC5eeLmcUbltvH8Vf","name":"LOADER_COMPLETE","brief":"","access":"public","defaultValue":"\"me.loader.onload\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when everything has loaded
                \nData passed : none

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R-xPp-pBYNivbBr3LnB3M","name":"LOADER_ERROR","brief":"","access":"public","defaultValue":"\"me.loader.onError\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when an error occur during preloading
                \nData passed : {Resource} resource object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0RRxMFYwn36MYJpzXxnAJ","name":"LOADER_PROGRESS","brief":"","access":"public","defaultValue":"\"me.loader.onProgress\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for displaying a load progress indicator
                \nData passed : {number} [0 .. 1], {Resource} resource object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zuuspnMIQAk1bNQe4lOYT","name":"ONCONTEXT_RESTORED","brief":"","access":"public","defaultValue":"\"renderer.contextrestored\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the current context is restored
                \nData passed : {me.Renderer} the current renderer instance`

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WiWQgxLQhL8SoiVUdelC-","name":"POINTERLOCKCHANGE","brief":"","access":"public","defaultValue":"\"me.event.pointerlockChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for onPointerLockChange event
                \nData passed : {boolean} pointer lock status (true/false)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0iqRVR7kI3dCDGdNGQlpO","name":"POINTERMOVE","brief":"","access":"public","defaultValue":"\"me.event.pointermove\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for pointermove events on the screen area
                \nData passed : {me.Pointer} a Pointer object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zeeAs-d2cbQs2pLQKsEa9","name":"STAGE_RESET","brief":"","access":"public","defaultValue":"\"me.stage.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when a stage is resetted

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YvCqyvyxMP3PuZdqmUZsE","name":"STATE_CHANGE","brief":"","access":"public","defaultValue":"\"me.state.onChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the changing to a different stage

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e_msWaMp_otduKjXET5Uz","name":"STATE_PAUSE","brief":"","access":"public","defaultValue":"\"me.state.onPause\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event when the game is paused
                \nData passed : none

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dWysiCFCesmCxAeaC6-DW","name":"STATE_RESTART","brief":"","access":"public","defaultValue":"\"me.state.onRestart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the game is restarted
                \nData passed : {number} time in ms the game was stopped

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vZkfj2JCARXhnsGOxHvrD","name":"STATE_RESUME","brief":"","access":"public","defaultValue":"\"me.state.onResume\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event for when the game is resumed
                \nData passed : {number} time in ms the game was paused

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0qDONVACQe4RZNHJyS-Lr","name":"STATE_STOP","brief":"","access":"public","defaultValue":"\"me.state.onStop\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event when the game is stopped
                \nData passed : none

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V3gtD2TM7V2gC5Zrquzak","name":"TICK","brief":"","access":"public","defaultValue":"\"me.tick\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                event generated when the system update the engine and the renderer by one step

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-PT2qw_XzN14vkm4wAzik","name":"VIDEO_INIT","brief":"","access":"public","defaultValue":"\"me.video.onInit\"","readonly":true,"see":["video.init","event.on"],"type":"PropertyDoc","description":"

                event for when the video is initialized
                \nData passed : {Renderer} the renderer instance created

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6uG6m2yoZumC0lkZbZwY0","name":"VIEWPORT_ONCHANGE","brief":"","access":"public","defaultValue":"\"viewport.onchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the viewport position is updated
                \nData passed : {me.Vector2d} viewport position vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VDQ4UbwTTgc1TNU8sFb4d","name":"VIEWPORT_ONRESIZE","brief":"","access":"public","defaultValue":"\"viewport.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the viewport is resized
                \n(this usually follows a WINDOW_ONRESIZE event, when using the flexEvent for when the current context is lost
                \nData passed : {me.Renderer} the current renderer instance

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-GDmvkkehpCueL-KdsRoL","name":"WINDOW_ONORIENTATION_CHANGE","brief":"","access":"public","defaultValue":"\"globalThis.orientationchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the device is rotated
                \nData passed : {Event} Event object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NZsJXiJ1f8B6Xh0EMiqXM","name":"WINDOW_ONRESIZE","brief":"","access":"public","defaultValue":"\"globalThis.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the (browser) window is resized
                \nData passed : {Event} Event object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8RGozj79hrxsWYFA4_Aco","name":"WINDOW_ONSCROLL","brief":"","access":"public","defaultValue":"\"globalThis.onscroll\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the (browser) window is scrolled
                \nData passed : {Event} Event object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9SKgw6EbjY9WL0Lp1urRi","name":"WORLD_STEP","brief":"","access":"public","defaultValue":"\"me.world.step\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                Event for when the physic world is updated\nData passed : {number} time the current time stamp

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H60WXtGFOlResAYLA-Wsb","name":"emit","brief":"","examples":[{"caption":"","code":"me.event.emit(\"event-name\", a, b, c);"}],"scope":"static","type":"FunctionDoc","description":"

                calls each of the listeners registered for a given event.

                ","params":[{"identifier":"eventName","optional":false,"description":"

                The event name.

                ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"args","optional":true,"variadic":true,"description":"

                arguments to be passed to all listeners

                ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                true if the event had listeners, false otherwise.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rcM00vs0neGoTREg9ZSjS","name":"off","brief":"","access":"public","examples":[{"caption":"","code":"me.event.off(\"event-name\", myFunction);"}],"scope":"static","type":"FunctionDoc","description":"

                remove the given listener for a given event.

                ","params":[{"identifier":"eventName","optional":false,"description":"

                The event name.

                ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                The listener function.

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                this.

                ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tf4WqJRsB3Kh-EXfDMVFO","name":"on","brief":"","access":"public","examples":[{"caption":"","code":"me.event.on(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

                Add a listener for a given event.

                ","params":[{"identifier":"eventName","optional":false,"description":"

                The event name.

                ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                The listener function.

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

                The context to invoke the listener with.

                ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                this.

                ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dwEqJRHRhO8GDbG8wEmmd","name":"once","brief":"","access":"public","examples":[{"caption":"","code":"me.event.once(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

                Add a one-time listener for a given event.

                ","params":[{"identifier":"eventName","optional":false,"description":"

                The event name.

                ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                The listener function.

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

                The context to invoke the listener with.

                ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                this.

                ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"0Q8D4Nk9TOwB0W8Jg8rx7","name":"game","brief":"","readonly":true,"see":["Application"],"type":"NSDoc","description":"

                game is a default instance of a melonJS Application and represents your current game,\nit contains all the objects, tilemap...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NGxou_b4nxgvPYv6_Sb5p","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"bd0GJa_lQHfl_wZpXNmDs","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

                Namespace for standard gamepad mapping constants

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"S-1aQYXcg2hja7g6dGIAM","name":"AXES","brief":"","access":"public","scope":"static","see":["https://w3c.github.io/gamepad/#remapping"],"type":"EnumDoc","description":"

                Standard gamepad mapping information for axes

                \n
                  \n
                • Left control stick: LX (horizontal), Standard gamepad mapping information for buttons

                  \n
                    \n
                  • Face buttons: FACE_1, FACE_2standard keyboard constants

                    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"_ac-M-Aj5Po_7urrGNXUb","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7pKWciRrfbk-LfTH64Wgd","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h2lqBlqlBYJ1GuN28ND4E","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-os419Nvc-mXPDdVKlNdR","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8kvsPWNT7gR6IyfldS7xG","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K2Ma9D-4VI3wDtUAICMOU","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gAdiuXkS3_t1RYrgz9hGr","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EH4qag_v44xpajzJ8mN5B","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WHOVwvXc9ZCynpjcDRhBQ","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KhM8atzDFbTkAEV3BGT50","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lWmZHHOyY8LO7YYOdz3iA","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NfDNsBHbHsk-99_rpMK1F","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XPfO3CUXfgGuv3MoNzLIX","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kZz3rt1AQ_N98yHei8v8U","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jl6dClwU4jhua43dH4nRx","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A0EgpU5NlSsKkrZsDJtu5","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Lw1_eljqdCli4k-JWVkw0","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QukWseTCCIK_HeEACy52D","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OwMB_8iQuvk-9OEfZ1huR","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BSAc30QgN60MQTDSMFz7D","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BfpitLi60QojVUaQQFipd","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ap6-fRS2gy1Kay2Y7z5D0","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nVP76QgQs1_lepu9stVKn","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2rwGq98SAOQuhAKEZe2bO","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DCbHdz1Vcpgk4X3oAiefA","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kmcRUYqfzGI4sbC07o2En","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mFgwaxI5F66ZAvocPlklV","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A8SR4bV-WOnLM8XvTx_OY","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"csKLOfNO09mwD3UEfgXEV","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUE0l6vTnAjf0jCt5caz6","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"76Hj9SmreEqilFlw2h4d9","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8aiWp42SWEGdw2Pw_f_sC","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P3y6e5u7VEWNJXzpjv-eJ","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-pNepHQGk1Wu2CW7Zv4CV","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kJ9f2YJeTDJ7FMm_tJN89","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zFL0fZ0SW019PMPy8OfWs","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qhlw7t34EQn1h1hcesKkb","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wofNKFpm3j07-V6Gw9pcD","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8aQHRoPINU93kkWWcPHi9","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ti4asbIfmzFziPXNHuPgC","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OTyQUEYBb21ZIIwMWnQqx","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bLhCDPVpLBmtPrffjrPxy","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6A1P4AmdzaE3K3yexGwaP","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1I8wvewFJOh7OPH5huTUI","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gn1XlnbuUsEWaXrXVOv14","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eLWpO2Qxdevt2RknwY7Sv","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_hc4QCxbMcEf8Ircg3JCN","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9fKfBYeSAoB9QAeDpxrOb","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5bguYUtxQziUCyXagCwcV","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pJ5jC_4reyKOJvVDNKao6","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hqIyEdDwl9zELFH502GLQ","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NHwDuO6U7AXRlg0yVd7_w","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0Phrht5d3Se8e_0eBfYJV","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QQxl4ddY47BUEaUaMIgrr","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KGUKhLka_QlcwlSisip2T","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ise5_iW3hwTaMbaMrnOBv","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iYUaIAvXHN3TgVgzSETZo","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E9dA1KmXpmX-eGedRIchA","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WwbpZZerw-57Uub4e9umZ","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gMFlbyzhyeaGPAZ59ONfP","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NBmYM--3OpyOFzM9ac_tA","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1qanJe2LkjcjoamYFIBQL","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Nb_F74-Yzk-ZDsJ3mYBJ","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hw2Qd90f9ANi668gisXDf","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dldgHbtkwQBazuXakdNi_","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6hCn1DB5Unsxb-6SKwp_C","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HdrEGqEHuiLjSDoAj0HWc","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GHGlWUgunaBGjLQ-Gy8Xj","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"emePtctNLel34WPULcK6h","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ajrrckU6GRCIZ_vbxuaDV","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_JxDh37KaMG41GCSInMvN","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eRy8rZAmNeY2PvCzqMdZX","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6yG3utDd95A0wnKm9OedV","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DMcGnFaJFhOnArcDkYbWq","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"80MSj6bCL3bWPJOqYQza7","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"un2JsKOmA6pD-j5GnjKAJ","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zAGlZowrYilT61iErxh1W","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b7BY1kx6HbTO4muNs8pGA","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rLilaUQwAVCIiFRhrzqUf","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u04vW2Z3NGF5-rYwJBmek","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mWnYoB67j0tkFP-i3CahS","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s4MuoKcrc4-3E9ZAHGP5J","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-DmxKhyV_9sTQYjiW3uM0","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XtVturKOLDXgN5GNUxfrz","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ASqnOmTE4SjKJ5Clrt3tV","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T5kQJuYC1gTix98PfT31m","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M3QlPQ5mJKEWE6CYNNhL1","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yt0yqbo1MaYeLVLO2gFvS","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nCokCRuI4nksEF-axMLk0","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9wGEfpqCtabDVY-4vOuM","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"icK-g4UTGnxOi2gLUZfKG","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xIAWDBlbpVork5DSy7aZu","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3tMJIZ3nZ7qFcmhywxy7g","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zSx-fkO3s-3JZ4zLuJzdZ","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uoSduWwyoKJh52MFUIhwA","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rCf9jMv1Oo6MzudHZKAFM","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NEul5yfLKHVMU6B1gD6eX","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3SpRQrkEG4TjM61ppe6Z7","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"tEZFT43Q4VPcndWEHLsRg","name":"keyBoardEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

                    the default target element for keyboard events (usually the window element in which the game is running)

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YdMxy1r1QFWDcDeo_HY5E","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

                    indicates if the pointer is currently locked

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aDUUDOg2952I4kTWHzAVH","name":"pointer","brief":"","access":"public","type":"PropertyDoc","description":"

                    Pointer information (current position and size)

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5rFJkFI7aBGQFPQg6eMTJ","name":"pointerEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

                    the default target element for pointer events (usually the canvas element in which the game is rendered)

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P6Twj7FuSMsJp_5jyh4a2","name":"preventDefault","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

                    specify if melonJS should prevent all default browser action on registered events.

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XiKGIOCBWRoc-FMCwY4ZG","name":"setGamepadMapping","brief":"","access":"public","examples":[{"caption":"","code":" // A weird controller that has its axis mappings reversed\n me.input.setGamepadMapping(\"Generic USB Controller\", {\n \"axes\" : [ 3, 2, 1, 0 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ]\n });\n\n // Mapping extra axes to analog buttons\n me.input.setGamepadMapping(\"Generic Analog Controller\", {\n \"axes\" : [ 0, 1, 2, 3 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ],\n\n // Raw axis 4 is mapped to GAMEPAD.BUTTONS.FACE_1\n // Raw axis 5 is mapped to GAMEPAD.BUTTONS.FACE_2\n // etc...\n // Also maps left and right triggers\n \"analog\" : [ 4, 5, 6, 7, -1, -1, 8, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1 ],\n\n // Normalize the value of button L2: [-1.0..1.0] => [0.0..1.0]\n \"normalize_fn\" : function (value, axis, button) {\n return ((button === me.input.GAMEPAD.BUTTONS.L2) ? ((value + 1) / 2) : value) || 0;\n }\n });"}],"type":"PropertyDoc","description":"

                    specify a custom mapping for a specific gamepad id
                    \nsee below for the default mapping :

                    \n
                    Gamepad id string

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"mapping","description":"

                    A hash table

                    ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"mapping.axes","description":"

                    Standard analog control stick axis locations

                    ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.buttons","description":"

                    Standard digital button locations

                    ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.analog","optional":true,"description":"

                    Analog axis locations for buttons

                    ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.normalize_fn","optional":true,"description":"

                    a function that returns a normalized value in range [-1.0..1.0] for the given value, axis and button

                    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"gOy-6FTVQXknu7DnR8gRG","name":"throttlingInterval","brief":"","access":"public","type":"PropertyDoc","description":"

                    time interval for event throttling in milliseconds
                    \ndefault value : "1000/me.timer.maxfps" ms
                    \nset to 0 ms...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J5YAW3x3BUIf-NL2Zx3ja","name":"bindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n...\n// map the lower face button on the first gamepad to the X key\nme.input.bindGamepad(0, {type:\"buttons\", code: me.input.GAMEPAD.BUTTONS.FACE_1}, me.input.KEY.X);\n// map the left axis value on the first gamepad to the LEFT key\nme.input.bindGamepad(0, {type:\"axes\", code: me.input.GAMEPAD.AXES.LX, threshold: -0.5}, me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

                    Associate a gamepad event to a keycode

                    ","params":[{"identifier":"index","optional":false,"description":"

                    Gamepad index

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

                    Button/Axis definition

                    ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"button.type","description":"

                    "buttons" or "axes"

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"button.code","description":"

                    button or axis code id (See {@link input.GAMEPAD.BUTTONS}, {@link input.GAMEPAD.AXES})

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button.threshold","optional":true,"default":"1","description":"

                    value indicating when the axis should trigger the keycode (e.g. -0.5 or 0.5)

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","optional":false,"description":"

                    (See {@link input.KEY})

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HJodshqUNs0kkFj2vdT6V","name":"bindKey","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.LEFT, \"left\");\nme.input.bindKey(me.input.KEY.RIGHT, \"right\");\nme.input.bindKey(me.input.KEY.X, \"jump\", true);\nme.input.bindKey(me.input.KEY.F1, \"options\", true, true);"}],"type":"FunctionDoc","description":"

                    associate a user defined action to a keycode

                    ","params":[{"identifier":"keycode","optional":false,"description":"

                    (See {@link input.KEY})

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"action","optional":false,"description":"

                    user defined corresponding action

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"lock","optional":true,"default":"false","description":"

                    cancel the keypress event once read

                    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"preventDefault","optional":true,"default":"input.preventDefault","description":"

                    prevent default browser action

                    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"oqHfNA7jbZnw_N7UCA37c","name":"bindPointer","brief":"","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n// map the left button click on the X key (default if the button is not specified)\nme.input.bindPointer(me.input.KEY.X);\n// map the right button click on the X key\nme.input.bindPointer(me.input.pointer.RIGHT, me.input.KEY.X);"}],"type":"FunctionDoc","description":"

                    Associate a pointer event to a keycode
                    \nLeft button – 0\nMiddle button – 1\nRight button – 2

                    ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

                    (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","dataType":{"tokens":[{"value":"input.KEY","kind":"canonical"},{"value":"input.KEY","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fBOG1tzc7G4UrWbjVi5xv","name":"exitPointerLock","brief":"","type":"FunctionDoc","description":"

                    Initiates an exit from pointer lock state

                    ","params":[],"returns":[{"description":"

                    return true if the request was successfully submitted

                    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-zeNu7bcj0iaFNdcLzUah","name":"getBindingKey","brief":"","access":"public","type":"FunctionDoc","description":"

                    return the action associated with the given keycode

                    ","params":[{"identifier":"keycode","optional":false,"description":"

                    (See {@link input.KEY})

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                    user defined associated action

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"xujzM7IgCeVmEXQI5Jiwc","name":"globalToLocal","brief":"","examples":[{"caption":"","code":"onMouseEvent : function (pointer) {\n // convert the given into local (viewport) relative coordinates\n let pos = me.input.globalToLocal(pointer.clientX, pointer.clientY);\n // do something with pos !\n};"}],"type":"FunctionDoc","description":"

                    Translate the specified x and y values from the global (absolute)\ncoordinate to local (viewport) relative coordinate.

                    ","params":[{"identifier":"x","optional":false,"description":"

                    the global x coordinate to be translated.

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                    the global y coordinate to be translated.

                    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                    an optional vector object where to set the translated coordinates

                    ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                    A vector object with the corresponding translated coordinates

                    ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9A5i-USQ_vfzkuWN-CF4-","name":"hasActiveEvents","brief":"","type":"FunctionDoc","description":"

                    return true if there are pending pointer events in the queue

                    ","params":[],"returns":[{"description":"

                    true if there are pending events

                    "}],"extends":[],"implements":[]},{"id":"6Ex9QD3lccoSFyTYttIU2","name":"hasRegisteredEvents","brief":"","see":["registerPointerEvent"],"type":"FunctionDoc","description":"

                    return true if there are register pointer events

                    ","params":[],"returns":[{"description":"

                    true if there are pending events

                    "}],"extends":[],"implements":[]},{"id":"hR6Xmk-G47EW-XqUxKSGp","name":"isKeyPressed","brief":"","access":"public","examples":[{"caption":"","code":"if (me.input.isKeyPressed('left')) {\n //do something\n}\nelse if (me.input.isKeyPressed('right')) {\n //do something else...\n}"}],"type":"FunctionDoc","description":"

                    return the key press status of the specified action

                    ","params":[{"identifier":"action","optional":false,"description":"

                    user defined corresponding action

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                    true if pressed

                    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pCqka7QYYODu7k-sfP-_s","name":"keyStatus","brief":"","access":"public","type":"FunctionDoc","description":"

                    return the key status of the specified action

                    ","params":[{"identifier":"action","optional":false,"description":"

                    user defined corresponding action

                    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                    down (true) or up(false)

                    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0dlTULk_6_J8ZPgNDFDtC","name":"registerPointerEvent","brief":"","examples":[{"caption":"","code":" // onActivate function\n onActivateEvent: function () {\n // register on the 'pointerdown' event\n me.input.registerPointerEvent('pointerdown', this, (e) => this.pointerDown(e));\n },\n\n // pointerDown event callback\n pointerDown: function (pointer) {\n // do something\n ....\n // don\"t propagate the event to other objects\n return false;\n },"}],"see":["Pointer","{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

                    allows registration of event listeners on the object target.
                    \nmelonJS will pass a me.Pointer object to the defined cal...","params":[{"identifier":"eventType","optional":false,"description":"

                    The event type for which the object is registering
                    \nmelonJS currently supports:

                    \n
                      \n
                    • \"pointermo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

                      a shape representing the region to register on

                      ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":false,"description":"

                      methods to be called when the event occurs.\nReturning false from the defined callback will prevent the event ...","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"0J1wVJ8hhpCtTcgXkZnYK","name":"releaseAllPointerEvents","brief":"","examples":[{"caption":"","code":"// release all registered event on the\nme.input.releaseAllPointerEvents(this);"}],"type":"FunctionDoc","description":"

                      allows the removal of all registered event listeners from the object target.

                      ","params":[{"identifier":"region","optional":false,"description":"

                      the registered region to release event from

                      ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"LUY5Q8mkHULbhE7-BMraN","name":"releasePointerEvent","brief":"","examples":[{"caption":"","code":"// release the registered region on the 'pointerdown' event\nme.input.releasePointerEvent('pointerdown', this);"}],"see":["{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

                      allows the removal of event listeners from the object target.

                      ","params":[{"identifier":"eventType","optional":false,"description":"

                      The event type for which the object was registered. See {@link input.registerPointerEvent}

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

                      the registered region to release for this event

                      ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":true,"default":"\"all\"","description":"

                      if specified unregister the event only for the specific callback

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"EzrVO5PijNwJnPRSCbAs8","name":"requestPointerLock","brief":"","examples":[{"caption":"","code":"// register on the pointer lock change event\nevent.on(event.POINTERLOCKCHANGE, (locked)=> {\n console.log(\"pointer lock: \" + locked);\n});\n// request for pointer lock\nme.input.requestPointerLock();"}],"type":"FunctionDoc","description":"

                      request for the pointer to be locked on the parent DOM element.\n(Must be called in a click event or an event that requires...","params":[],"returns":[{"description":"

                      return true if the request was successfully submitted

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fCaUzpUQfDIcO1Pj4WtDV","name":"setGamepadDeadzone","brief":"","access":"public","type":"FunctionDoc","description":"

                      Set deadzone for analog gamepad inputs
                      \nThe default deadzone is 0.1 (10%) Analog values less than this will be ignored

                      ","params":[{"identifier":"value","optional":false,"description":"

                      Deadzone value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"k_LfwLRh_8LlsXv8-o4qr","name":"setTouchAction","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action"],"type":"FunctionDoc","description":"

                      enable/disable all gestures on the given element.
                      \nby default melonJS will disable browser handling of all panning and ...","params":[{"identifier":"element","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"value","optional":true,"default":"\"none\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"kBR022SARcVL41zgynTes","name":"triggerKeyEvent","brief":"","access":"public","examples":[{"caption":"","code":"// trigger a key press\nme.input.triggerKeyEvent(me.input.KEY.LEFT, true);"}],"type":"FunctionDoc","description":"

                      trigger the specified key (simulated) event

                      ","params":[{"identifier":"keycode","optional":false,"description":"

                      (See {@link input.KEY})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"status","optional":true,"default":"false","description":"

                      true to trigger a key down event, or false for key up event

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mouseButton","optional":true,"description":"

                      the mouse button to trigger

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2jCkHbNCsjrSNO2rP4XbM","name":"unbindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindGamepad(0, me.input.GAMEPAD.BUTTONS.FACE_1);"}],"type":"FunctionDoc","description":"

                      unbind the defined keycode

                      ","params":[{"identifier":"index","optional":false,"description":"

                      Gamepad index

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

                      (See {@link input.GAMEPAD.BUTTONS})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"S7HWlbXXF6z10iHf-Jjfb","name":"unbindKey","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindKey(me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

                      unbind the defined keycode

                      ","params":[{"identifier":"keycode","optional":false,"description":"

                      (See {@link input.KEY})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DpQQoAqYk42GVC1RM8Pv9","name":"unbindPointer","brief":"","examples":[{"caption":"","code":"me.input.unbindPointer(me.input.pointer.LEFT);"}],"type":"FunctionDoc","description":"

                      unbind the defined keycode

                      ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

                      (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"x6gSCrfeRp2nRrJV_UjYF","name":"unlockKey","brief":"","access":"public","examples":[{"caption":"","code":"// Unlock jump when touching the ground\nif (!this.falling && !this.jumping) {\n me.input.unlockKey(\"jump\");\n}"}],"type":"FunctionDoc","description":"

                      unlock a key manually

                      ","params":[{"identifier":"action","optional":false,"description":"

                      user defined corresponding action

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"kHcQAEvt-93XthA60QnH_","name":"level","brief":"","type":"NSDoc","description":"

                      a level manager. once ressources loaded, the level manager contains all references of defined levels.

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ytgoj4PpKby8vaMrW1Q4s","name":"add","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      add a level into the game manager (usually called by the preloader)

                      ","params":[{"identifier":"format","optional":false,"description":"

                      level format (only "tmx" supported)

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"levelId","optional":false,"description":"

                      the level id (or name)

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"callback","optional":true,"description":"

                      a function to be called once the level is loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                      true if the level was loaded

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lMAYQkQufIQbKm_T7gZfT","name":"getCurrentLevel","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return the current level definition.\nfor a reference to the live instantiated level,\nrather use the container in which it ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Ni5dB5fuVM8IX_hkZY2L","name":"getCurrentLevelId","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return the current level id

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"kYwCYeHOP7ch7ISczYYhD","name":"levelCount","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return the amount of level preloaded

                      ","params":[],"returns":[{"description":"

                      the amount of level preloaded

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eoXhZu0PCkMMJ0LgDz0b2","name":"load","brief":"","access":"public","examples":[{"caption":"","code":" // the game assets to be be preloaded\n // TMX maps\n let resources = [\n {name: \"a4_level1\", type: \"tmx\", src: \"data/level/a4_level1.tmx\"},\n {name: \"a4_level2\", type: \"tmx\", src: \"data/level/a4_level2.tmx\"},\n {name: \"a4_level3\", type: \"tmx\", src: \"data/level/a4_level3.tmx\"},\n // ...\n ];\n\n // ...\n\n // load a level into the game world\n me.level.load(\"a4_level1\");\n ...\n ...\n // load a level into a specific container\n let levelContainer = new me.Container();\n me.level.load(\"a4_level2\", {container:levelContainer});\n // add a simple transformation\n levelContainer.currentTransform.translate(levelContainer.width / 2, levelContainer.height / 2 );\n levelContainer.currentTransform.rotate(0.05);\n levelContainer.currentTransform.translate(-levelContainer.width / 2, -levelContainer.height / 2 );\n // add it to the game world\n me.game.world.addChild(levelContainer);"}],"scope":"instance","type":"MethodDoc","description":"

                      load a level into the game manager
                      \n(will also create all level defined entities, etc..)

                      ","params":[{"identifier":"levelId","optional":false,"description":"

                      level id

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options","optional":true,"description":"

                      additional optional parameters

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                      container in which to load the specified level

                      ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                      callback for when the level is fully loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                      if true, flatten all objects into the given container

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.setViewportBounds","optional":true,"default":"true","description":"

                      if true, set the viewport bounds to the map size

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      true if the level was successfully loaded

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q0X7h1u7roj-MZf5gnRdF","name":"next","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      load the next level

                      ","params":[{"identifier":"options","optional":true,"description":"

                      additional optional parameters

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                      container in which to load the specified level

                      ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                      callback for when the level is fully loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                      if true, flatten all objects into the given container

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      true if the next level was successfully loaded

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"We4d1-wvqUlWRKAY5VXEc","name":"previous","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      load the previous level

                      ","params":[{"identifier":"options","optional":true,"description":"

                      additional optional parameters

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                      container in which to load the specified level

                      ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                      callback for when the level is fully loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                      if true, flatten all objects into the given container

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      true if the previous level was successfully loaded

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UVrPHM34DMm_40TR6CD9X","name":"reload","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      reload the current level

                      ","params":[{"identifier":"options","optional":true,"description":"

                      additional optional parameters

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                      container in which to load the specified level

                      ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                      callback for when the level is fully loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                      if true, flatten all objects into the given container

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      the current level

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"IFpHVzN8R3qsHfHTe5DQt","name":"loader","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

                      a small class to manage loading of stuff and manage resources

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"gGYGXv15ToBg4bOgOh4Js","name":"Asset","brief":"","examples":[{"caption":"","code":"// PNG tileset\n{name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"}\n// PNG packed texture\n{name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n// PNG base64 encoded image\n{name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n// TSX file\n{name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"}\n// TMX level (XML & JSON)\n{name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"}\n{name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"}\n{name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}}\n{name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}}\n// audio resources\n{name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"}\n{name: \"cling\", type: \"audio\", src: \"data/audio/\"}\n// base64 encoded audio resources\n{name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"}\n// binary file\n{name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"}\n// JSON file (used for texturePacker)\n{name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"}\n// JavaScript file\n{name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"}\n// Font Face\n{ name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\" }\n// video resources\n{name: \"intro\", type: \"video\", src: \"data/video/\"}"}],"scope":"static","see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

                      an asset definition to be used with the loader

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Yfqbl503dRDdcXNGzEv4Y","name":"autoplay","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Set to true to automatically start playing audio or video when loaded or added to a scene (using autoplay might require us..."},{"id":"c181iz6D1B4GfNjFsY325","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      TMX data if not provided through a src url

                      "},{"id":"FcYqa_A682khyljPHrl8M","name":"loop","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Set to true to automatically loop the audio or video when playing

                      "},{"id":"aWbTkv7AugiJE40Ku2kmy","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      name of the asset

                      "},{"id":"12bJlokS4cyEyg-oaMBIV","name":"src","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      path and/or file name of the resource (for audio assets only the path is required)

                      "},{"id":"vnS-f2lr_s3okpfx12ooA","name":"stream","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Set to true to not to wait for large audio or video file to be downloaded before playing.

                      "},{"id":"36VlWF3w3MTfAMerSZUVW","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"RLYaU1kH8LozikbCp5AA4","name":"crossOrigin","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":" // allow for cross-origin texture loading\n me.loader.crossOrigin = \"anonymous\";\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["loader.setOptions","https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"],"type":"PropertyDoc","description":"

                      crossOrigin attribute to configure the CORS requests for Image and Video data element.\nBy default (that is, when the attri...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Abf7LEXQ4lg1dBeoTQIvJ","name":"onError","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for error notification\nme.loader.onError = this.loaderError.bind(this);"}],"type":"PropertyDoc","description":"

                      onError callback
                      \neach time a resource loading is failed, the loader will fire the specified function giving the actual...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-d6gQPyJ95fTPNZdUrMd8","name":"onload","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback when everything is loaded\nme.loader.onload = this.loaded.bind(this);"}],"type":"PropertyDoc","description":"

                      onload callback

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ah-Warz9JoyCR775XD9Fd","name":"onProgress","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for progress notification\nme.loader.onProgress = this.updateProgress.bind(this);"}],"type":"PropertyDoc","description":"

                      onProgress callback
                      \neach time a resource is loaded, the loader will fire the specified function,\ngiving the actual pro...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ovrhTbRRf49U8TWo64jKa","name":"withCredentials","brief":"","access":"public","defaultValue":"false","examples":[{"caption":"","code":" // enable withCredentials\n me.loader.withCredentials = true;\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["loader.setOptions","https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials"],"type":"PropertyDoc","description":"

                      indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies,\nauthorizatio...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6oiH7Pzbg2ajy2HQ5xfSI","name":"getBinary","brief":"","type":"FunctionDoc","description":"

                      return the specified Binary object

                      ","params":[{"identifier":"elt","optional":false,"description":"

                      name of the binary object ("ymTrack");

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      requested element or null if not found

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"JXlBnH7WbWGvxdnu5XsWO","name":"getFont","brief":"","type":"FunctionDoc","description":"

                      return the specified FontFace Object

                      ","params":[{"identifier":"elt","optional":false,"description":"

                      name of the font file

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"FontFace","kind":"canonical"},{"value":"FontFace","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u5-dpYXKsfAfzTPVqMmS4","name":"getImage","brief":"","type":"FunctionDoc","description":"

                      return the specified Image Object

                      ","params":[{"identifier":"image","optional":false,"description":"

                      name of the Image element ("tileset-platformer");

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      requested element or null if not found

                      ","dataType":{"tokens":[{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v9CJ5zB_k8nSz6Vf6fhfd","name":"getJSON","brief":"","type":"FunctionDoc","description":"

                      return the specified JSON Object

                      ","params":[{"identifier":"elt","optional":false,"description":"

                      name of the json file

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"JSON","kind":"canonical"},{"value":"JSON","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t13oG0ozFRAYOvrve1Ij3","name":"getTMX","brief":"","type":"FunctionDoc","description":"

                      return the specified TMX/TSX object

                      ","params":[{"identifier":"elt","optional":false,"description":"

                      name of the tmx/tsx element ("map1");

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      requested element or null if not found

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"YSJOmjQMsJIljXnUGlZkd","name":"getVideo","brief":"","type":"FunctionDoc","description":"

                      return the specified Video Object

                      ","params":[{"identifier":"elt","optional":false,"description":"

                      name of the video file

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dszv55ePANcMa4yQCryhy","name":"load","brief":"","examples":[{"caption":"","code":"// load an image asset\nme.loader.load({name: \"avatar\", type:\"image\", src: \"data/avatar.png\"}, () => this.onload(), () => this.onerror());\n// load a base64 image asset\n me.loader.load({name: \"avatar\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"};\n // load a base64 video asset\n me.loader.load({\n name: \"avatar\",\n type:\"video\",\n src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ..\"\n };\n// start loading music\nme.loader.load({\n name : \"bgmusic\",\n type : \"audio\",\n src : \"data/audio/\"\n}, function () {\n me.audio.play(\"bgmusic\");\n});"}],"type":"FunctionDoc","description":"

                      Load a single asset (to be used if you need to load additional asset(s) during the game)

                      ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onload","optional":true,"description":"

                      function to be called when the asset is loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerror","optional":true,"description":"

                      function to be called in case of error

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                      the amount of corresponding resource to be preloaded

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jppGfvpTnWBgCzT7cuhK8","name":"preload","brief":"","examples":[{"caption":"","code":"game.assets = [\n // PNG tileset\n {name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"},\n // PNG packed texture\n {name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n // PNG base64 encoded image\n {name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n // TSX file\n {name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"},\n // TMX level (XML & JSON)\n {name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"},\n {name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"},\n {name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}},\n {name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}},\n // audio resources\n {name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"},\n {name: \"cling\", type: \"audio\", src: \"data/audio/\"},\n // base64 encoded audio resources\n {name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"},\n // binary file\n {name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"},\n // JSON file (used for texturePacker)\n {name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"},\n // JavaScript file\n {name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"},\n // Font Face\n {name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\"},\n // video resources\n {name: \"intro\", type: \"video\", src: \"data/video/\"},\n // base64 encoded video asset\n me.loader.load({name: \"avatar\", type:\"video\", src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ...\"};\n];\n...\n// set all resources to be loaded\nme.loader.preload(game.assets, () => this.loaded());"}],"type":"FunctionDoc","description":"

                      set all the specified game assets to be preloaded.

                      ","params":[{"identifier":"assets","optional":false,"description":"

                      list of assets to load

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1<%2>"}},{"identifier":"onloadcb","optional":true,"default":"loader.onload","description":"

                      function to be called when all resources are loaded

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"switchToLoadState","optional":true,"default":"true","description":"

                      automatically switch to the loading screen

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_k66PDRUZYuK6Ma7WQ2C1","name":"reload","brief":"","examples":[{"caption":"","code":"event.on(\n event.LOADER_ERROR,\n (res) => {\n // custom function\n showErrorNotification({\n text: `Error during loading content: ${res.name}`,\n done: loader.reload(res.src);\n })\n }\n);"}],"type":"FunctionDoc","description":"

                      retry loading assets after a loading failure

                      ","params":[{"identifier":"src","optional":false,"description":"

                      src of asset to reload

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zoq0BWAhGbP3fpXHQAjLk","name":"setBaseURL","brief":"","access":"public","examples":[{"caption":"","code":"// change the base URL relative address for audio assets\nme.loader.setBaseURL(\"audio\", \"data/audio/\");\n// change the base URL absolute address for all object types\nme.loader.setBaseURL(\"*\", \"http://myurl.com/\")"}],"type":"FunctionDoc","description":"

                      change the default baseURL for the given asset type.
                      \n(this will prepend the asset URL and must finish with a '/')

                      ","params":[{"identifier":"type","optional":false,"description":"

                      "*", "audio", "video", "binary", "image", "json", "js&quo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"url","optional":true,"default":"\"./\"","description":"

                      default base URL

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"OCZFt1Q0LKX00pDsOb47o","name":"setOptions","brief":"","examples":[{"caption":"","code":" // Set the crossOrigin attribute to \"anonymous\"\n me.loader.setOptions({ crossOrigin: \"anonymous\" });\n\n // Enable the nocache mechanism\n me.loader.setOptions({ nocache: true });\n\n // Enable withCredentials\n me.loader.setOptions({ withCredentials: true });"}],"type":"FunctionDoc","description":"

                      Sets the options for the loader.

                      ","params":[{"identifier":"options","optional":false,"description":"

                      The options to set.

                      ","dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}},{"identifier":"options.crossOrigin","optional":true,"description":"

                      The crossOrigin attribute to configure the CORS requests for Image and Video data element.

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options.nocache","optional":true,"description":"

                      Enable or disable the nocache mechanism.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.withCredentials","optional":true,"description":"

                      Indicates whether or not cross-site Access-Control requests should be made using credentials.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"zWqBQ_MBhpiedYky-MR72","name":"setParser","brief":"","examples":[{"caption":"","code":"// specify a custom function for \"abc\" format\nfunction customAbcParser(data, onload, onerror) {\n // preload and do something with the data\n let parsedData = doSomething(data);\n // when done, call the onload callback with the parsed data\n onload(parsedData);\n // in case of error, call the onerror callback\n onerror();\n // return the amount of asset parsed\n return 1\n}\n// set the parser for the custom format\nloader.setParser(\"abc\", customAbcParser);"}],"see":["loader.Asset.type"],"type":"FunctionDoc","description":"

                      specify a parser/preload function for the given asset type

                      ","params":[{"identifier":"type","optional":false,"description":"

                      asset type

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"parserFn","optional":false,"description":"

                      parser function

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"Wz41gH_1JvygAhwh0o-ro","name":"unload","brief":"","examples":[{"caption":"","code":"me.loader.unload({name: \"avatar\", type:\"image\"});"}],"type":"FunctionDoc","description":"

                      unload the specified asset to free memory

                      ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      true if unloaded

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"G2AU-x56LInhhhXZRWkZS","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.loader.unloadAll();"}],"type":"FunctionDoc","description":"

                      unload all resources to free memory

                      ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"U0482Oj5AyxIPDqoSnN7m","name":"Math","brief":"","type":"NSDoc","description":"

                      a collection of math utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"92IEnLbTGmBAfERkp5eMX","name":"DEG_TO_RAD","brief":"","readonly":true,"type":"PropertyDoc","description":"

                      constant to convert from degrees to radians

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HJl0b4EaNFwhXOyWbcWEB","name":"EPSILON","brief":"","defaultValue":"0.000001","readonly":true,"type":"PropertyDoc","description":"

                      the difference between 1 and the smallest floating point number greater than 1

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_EDYmq2uc7dVR9x5fN5aA","name":"ETA","brief":"","readonly":true,"type":"PropertyDoc","description":"

                      constant equals to half pi

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pEayI9QKtPfcDW7gTM80s","name":"RAD_TO_DEG","brief":"","readonly":true,"type":"PropertyDoc","description":"

                      constant to convert from radians to degrees

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c466tu8lLuYRlDmh9vl_o","name":"TAU","brief":"","readonly":true,"type":"PropertyDoc","description":"

                      constant equals to 2 times pi

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iROXz-roeht-MKkS2kg3m","name":"clamp","brief":"","type":"FunctionDoc","description":"

                      clamp the given value

                      ","params":[{"identifier":"val","optional":false,"description":"

                      the value to clamp

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"low","optional":false,"description":"

                      lower limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"description":"

                      higher limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      clamped value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EtHEJgEDWvbv0xYqHKPzS","name":"degToRad","brief":"","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.degToRad(60); // return 1.0471..."}],"type":"FunctionDoc","description":"

                      Converts an angle in degrees to an angle in radians

                      ","params":[{"identifier":"angle","optional":false,"description":"

                      angle in degrees

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      corresponding angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-c_3K-Y3XgGW1XfOwVhXe","name":"isPowerOfFour","brief":"","type":"FunctionDoc","description":"

                      returns true if the given value is a power of four

                      ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lv0vtxkYwmG9pQY9P1CKq","name":"isPowerOfTwo","brief":"","type":"FunctionDoc","description":"

                      returns true if the given value is a power of two

                      ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bw-h_ddw-i1rG-C7CUs3z","name":"nextPowerOfTwo","brief":"","type":"FunctionDoc","description":"

                      returns the next power of two for the given value

                      ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BVWfDWKHWgeUVyCKOnLTb","name":"pow","brief":"","type":"FunctionDoc","description":"

                      Calculates the power of a number.

                      ","params":[{"identifier":"n","optional":false,"description":"

                      The number to be raised to the power of 2.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      The result of raising the number to the power of 2.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2YI_7cw5BrmyJNH16Xpf8","name":"radToDeg","brief":"","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.radToDeg(1.0471975511965976); // return 60"}],"type":"FunctionDoc","description":"

                      Converts an angle in radians to an angle in degrees.

                      ","params":[{"identifier":"radians","optional":false,"description":"

                      angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      corresponding angle in degrees

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7erj7yO9ZiJR5LN1519JH","name":"random","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.random(5, 10) );"}],"type":"FunctionDoc","description":"

                      return a random integer between min (included) and max (excluded)

                      ","params":[{"identifier":"min","optional":false,"description":"

                      minimum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                      maximum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      random value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3qlSudXwnRuU6FSuioWl3","name":"randomFloat","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.randomFloat(5, 10) );"}],"type":"FunctionDoc","description":"

                      return a random float between min, max (exclusive)

                      ","params":[{"identifier":"min","optional":false,"description":"

                      minimum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                      maximum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      random value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FFzhtggMUHs1ChxM-V6lS","name":"round","brief":"","examples":[{"caption":"","code":"// round a specific value to 2 digits\nme.Math.round(10.33333, 2); // return 10.33"}],"type":"FunctionDoc","description":"

                      round a value to the specified number of digit

                      ","params":[{"identifier":"num","optional":false,"description":"

                      value to be rounded.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dec","optional":true,"default":"0","description":"

                      number of decimal digit to be rounded to.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      rounded value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F99ASwPo4t3BkS1yx-UTR","name":"toBeCloseTo","brief":"","examples":[{"caption":"","code":"// test if the given value is close to 10\nif (me.Math.toBeCloseTo(10, value)) {\n // do something\n}"}],"type":"FunctionDoc","description":"

                      check if the given value is close to the expected one

                      ","params":[{"identifier":"expected","optional":false,"description":"

                      value to be compared with.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"actual","optional":false,"description":"

                      actual value to compare

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"precision","optional":true,"default":"2","description":"

                      float precision for the comparison

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      if close to

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"csMcJp7qf97Ha3AQe0A1g","name":"weightedRandom","brief":"","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.weightedRandom(5, 10) );"}],"type":"FunctionDoc","description":"

                      return a weighted random between min, max (exclusive)

                      ","params":[{"identifier":"min","optional":false,"description":"

                      minimum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                      maximum value.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      random value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"eYrKf5Bjwd9e6uL8lzniI","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

                      ParticleEmitterSettings contains the default settings for ParticleEmitter

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"80cuvYglzJCvXffLc1Gh5","name":"angle","brief":"","access":"public","defaultValue":"Math.PI / 2","scope":"static","type":"PropertyDoc","description":"

                      Start angle for particle launch in Radians

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RDPZu1Cr-9icSUK7Db2T0","name":"angleVariation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      letiation in the start angle for particle launch in Radians.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XI6pYUv3xG0zalsEnGLVd","name":"blendMode","brief":"","access":"public","defaultValue":"normal","scope":"static","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                      the blend mode to be applied when rendering particles.\n(note: this will superseed the textureAdditive setting...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kIefxQXJxxlYlnjnqSIVv","name":"duration","brief":"","access":"public","defaultValue":"Infinity","scope":"static","type":"PropertyDoc","description":"

                      Duration that the emitter releases particles in ms (used only if emitter is Stream).\nAfter this period, the emitter stop t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CNQGyE1bT0KkA_XpyfnZI","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Render particles in screen space.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VFKfoRrxFWll3ZHTYwsrU","name":"followTrajectory","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Update the rotation of particle in accordance the particle trajectory.
                      \nThe particle sprite should aim at zero angle (d...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O8xRakBBgVftwMEsppI6O","name":"framesToSkip","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Skip n frames after updating the particle system once.\nThis can be used to reduce the performance impact of emitters with ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cf4lH4IH34wI1U9rAHCQZ","name":"frequency","brief":"","access":"public","defaultValue":"100","scope":"static","type":"PropertyDoc","description":"

                      How often a particle is emitted in ms (used only if emitter is a Stream).

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Soc-3Henia1RD4gjMLNKq","name":"gravity","brief":"","access":"public","defaultValue":"0","scope":"static","see":["game.world.gravity"],"type":"PropertyDoc","description":"

                      Vertical force (Gravity) for each particle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MfvnbWDgneDtwGTyFStd4","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      Height of the particle spawn area

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r8_aKe37MbfbFq8TL93uU","name":"image","brief":"","access":"public","defaultValue":"undefined","scope":"static","see":["ParticleEmitterSettings.textureSize"],"type":"PropertyDoc","description":"

                      image used for particles texture\n(by default melonJS will create an white 8x8 texture image)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z4KYVeRU6N-ruZVJe2lB1","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Maximum end scale ratio for particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BtOdlAUd2Unms8ZrV5Hs6","name":"maxLife","brief":"","access":"public","defaultValue":"3000","scope":"static","type":"PropertyDoc","description":"

                      Maximum time each particle lives once it is emitted in ms.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p__205n2KKEtLkJanHS1J","name":"maxParticles","brief":"","access":"public","defaultValue":"10","scope":"static","type":"PropertyDoc","description":"

                      Maximum number of particles launched each time in this emitter (used only if emitter is Stream).

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2w5_zbSYcWgUkVits6oI4","name":"maxRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Maximum start rotation for particles sprites in Radians

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iyHMvua_4LKYx8GRuYQ1r","name":"maxStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      Maximum start scale ratio for particles (1 = no scaling)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3_RzZwGLRMxWvE7Wbl56K","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Minimum end scale ratio for particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2cuK7TYLb3eZStmNGobuS","name":"minLife","brief":"","access":"public","defaultValue":"1000","scope":"static","type":"PropertyDoc","description":"

                      Minimum time each particle lives once it is emitted in ms.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GNiBILaRJole0KzI8JJVc","name":"minRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Minimum start rotation for particles sprites in Radians

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvGug10OLucHP2uATu-3F","name":"minStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      Minimum start scale ratio for particles (1 = no scaling)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U_qbAPncnCkDbUmyNg3E7","name":"onlyInViewport","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

                      Update particles only in the viewport, remove it when out of viewport.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D4Bj4ywDb_RlLOQnXcnSR","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

                      Start speed of particles.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xBg4aP3y4D64vaZuVxax6","name":"speedVariation","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      letiation in the start speed of particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PpH2Envq3Py6c3_8EILD-","name":"textureAdditive","brief":"","access":"public","defaultValue":"false","scope":"static","see":["ParticleEmitterSettings.blendMode"],"type":"PropertyDoc","description":"

                      Enable the Texture Additive by composite operation ("additive" blendMode)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Vdi72DYFu7JgeGSqeGN5","name":"textureSize","brief":"","access":"public","defaultValue":"8","scope":"static","see":["ParticleEmitterSettings.image"],"type":"PropertyDoc","description":"

                      default texture size used for particles if no image is specified\n(by default melonJS will create an white 8x8 texture imag...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HGlEpLUZzuxejnubBwTRF","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

                      tint to be applied to particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H08Q73sRFFw-L7CKroe1Y","name":"totalParticles","brief":"","access":"public","defaultValue":"50","scope":"static","type":"PropertyDoc","description":"

                      Total number of particles in the emitter

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jI--zifv_qNid1y9tw0-R","name":"width","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      Width of the particle spawn area.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2LRDpTX8TZhdgxl14jjvs","name":"wind","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Horizontal force (like a Wind) for each particle

                      ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"C2WANRqT8Acvo5MxiKo6L","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"o4SdUZwt-LC42NaHuA8ZX","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"FbZMlu4OvydlO3FYBUgGM","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the app/game that registered this plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rY1gk-ctg180EFuQyt7kM","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

                      define the minimum required version of melonJS
                      \nthis can be overridden by the plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"HO6Pi57hlPnFtEagZD8Uw","name":"BasePlugin","brief":"","type":"ClassDoc","description":"

                      a base Object class for plugin\n(plugin must be installed using the register function)

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jdipuF7uwcJ_YIOElvD1r","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the app/game that registered this plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OORuh92IlTZ8DyQU3uOBI","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

                      define the minimum required version of melonJS
                      \nthis can be overridden by the plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5-3_VIkWDmDrI_X0wSIWj","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"app","optional":true,"description":"

                      a reference to the app/game that registered this plugin

                      ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"SUIDtMeT5ESIFTmQE2Ytl","name":"cache","brief":"","type":"PropertyDoc","description":"

                      Contains all registered plugins.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9U7vafs3KFnaaFvbSQKsP","name":"get","brief":"","type":"FunctionDoc","description":"

                      returns the the plugin instance with the specified class type or registered name

                      ","params":[{"identifier":"classType","optional":false,"description":"

                      the Class Object or registered name of the plugin to retreive

                      ","dataType":{"tokens":[{"value":"object | string","kind":"canonical"}],"template":"object | string"}}],"returns":[{"description":"

                      a plugin instance or undefined

                      ","dataType":{"tokens":[{"value":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yB9IFEd1SE4Ex2TwUQmu2","name":"patch","brief":"","examples":[{"caption":"","code":"// redefine the me.game.update function with a new one\nme.plugin.patch(me.game, \"update\", function () {\n // display something in the console\n console.log(\"duh\");\n // call the original me.game.update function\n this._patched();\n});"}],"type":"FunctionDoc","description":"

                      patch a melonJS function

                      ","params":[{"identifier":"proto","optional":false,"description":"

                      target object

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

                      target function

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fn","optional":false,"description":"

                      replacement function

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"46scPS_UCWNvdlBKGlC6L","name":"register","brief":"","examples":[{"caption":"","code":"// register a new plugin\nme.plugin.register(TestPlugin, \"testPlugin\");\n// the `testPlugin` class instance can also be accessed through me.plugin.cache\nme.plugin.cache.testPlugin.myfunction ();"}],"type":"FunctionDoc","description":"

                      Register a plugin.

                      ","params":[{"identifier":"plugin","optional":false,"description":"

                      Plugin object to instantiate and register

                      ","dataType":{"tokens":[{"value":"plugin.BasePlugin","kind":"canonical"},{"value":"plugin.BasePlugin","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":true,"default":"plugin.constructor.name","description":"

                      a unique name for this plugin

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"args","optional":true,"description":"

                      all extra parameters will be passed to the plugin constructor

                      ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"MbIp9fQxsqerBYCD0Ygh8","name":"pool","brief":"","examples":[{"caption":"","code":"// register our bullet object into the object pool\npool.register(\"bullet\", BulletEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = pool.pull(\"bullet\", x, y, direction, velocity);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\ngame.world.removeChild(bullet);"}],"see":["ObjectPool"],"type":"NSDoc","description":"

                      a default global ObjectPool instance

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UMVWLm9QZhG1HjCTTzZex","name":"save","brief":"","examples":[{"caption":"","code":" // Initialize \"score\" and \"lives\" with default values\n // This loads the properties from localStorage if they exist, else it sets the given defaults\n me.save.add({ score : 0, lives : 3 });\n\n // Print all\n // On first load, this prints { score : 0, lives : 3 }\n // On further reloads, it prints { score : 31337, lives : 3, complexObject : ... }\n // Because the following changes will be saved to localStorage\n console.log(JSON.stringify(me.save));\n\n // Save score\n me.save.score = 31337;\n\n // Also supports complex objects thanks to the JSON backend\n me.save.add({ complexObject : {} })\n me.save.complexObject = { a : \"b\", c : [ 1, 2, 3, \"d\" ], e : { f : [{}] } };\n\n // WARNING: Do not set any child properties of complex objects directly!\n // Changes made that way will not save. Always set the entire object value at once.\n // If you cannot live with this limitation, there's a workaround:\n me.save.complexObject.c.push(\"foo\"); // Modify a child property\n me.save.complexObject = me.save.complexObject; // Save the entire object!\n\n // Remove \"lives\" from localStorage\n me.save.remove(\"lives\");"}],"type":"NSDoc","description":"

                      allow to access and manage the device localStorage

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"GL6Ade2PgBnAJAtQx8TYW","name":"add","brief":"","examples":[{"caption":"","code":"// Initialize \"score\" and \"lives\" with default values\nme.save.add({ score : 0, lives : 3 });\n// get or set the value through me.save\nme.save.score = 1000;"}],"scope":"instance","type":"MethodDoc","description":"

                      Add new keys to localStorage and set them to the given default values if they do not exist

                      ","params":[{"identifier":"props","optional":false,"description":"

                      key and corresponding values

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"SL8LzwA6XeN3GXeG0qkzL","name":"remove","brief":"","examples":[{"caption":"","code":"// Remove the \"score\" key from localStorage\nme.save.remove(\"score\");"}],"scope":"instance","type":"MethodDoc","description":"

                      Remove a key from localStorage

                      ","params":[{"identifier":"key","optional":false,"description":"

                      key to be removed

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"UOVGWGBZiuG7qrlC_PIdT","name":"state","brief":"","type":"NSDoc","description":"

                      a State Manager (state machine)

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xgJwv3YdnwA9AnouDnKcN","name":"CREDITS","brief":"","defaultValue":"7","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Credits Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-cNRcgAcR41uIE4XgMzkF","name":"DEFAULT","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","description":"

                      default state ID for the default Stage\n(the default stage is the one running as soon as melonJS is started)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jj90Ypezg7PjdENs0X2AJ","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Game End Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kdSkujc8z0KP6ehMWhJbQ","name":"GAMEOVER","brief":"","defaultValue":"4","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Game Over Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3AgaRgp0lkaydwAAsC1P0","name":"LOADING","brief":"","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Loading Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"23TZQA-KyNCYAxihwiNkF","name":"MENU","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Menu Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cEsSQhaERX8ODukpf0yva","name":"PLAY","brief":"","defaultValue":"3","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Play Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_ob0qrByhxsxBBr3Vwsck","name":"READY","brief":"","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

                      default state ID for "Ready" Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rw0mmQ9R7PQr406_Ia1d9","name":"SCORE","brief":"","defaultValue":"6","scope":"static","type":"PropertyDoc","description":"

                      default state ID for High Score Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D_hqeZkn7bpVQpxqeyEsu","name":"SETTINGS","brief":"","defaultValue":"8","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Settings Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jmgpaEgSLpYKcu7fQK8Kx","name":"USER","brief":"","defaultValue":"100","examples":[{"caption":"","code":"let STATE_INFO = me.state.USER + 0;\nlet STATE_WARN = me.state.USER + 1;\nlet STATE_ERROR = me.state.USER + 2;\nlet STATE_CUTSCENE = me.state.USER + 3;"}],"scope":"static","type":"PropertyDoc","description":"

                      default state ID for user defined constants

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rtoShfCzdm083FZxJE4h5","name":"change","brief":"","access":"public","examples":[{"caption":"","code":"// The onResetEvent method on the play screen will receive two args:\n// \"level_1\" and the number 3\nme.state.change(me.state.PLAY, \"level_1\", 3);"}],"scope":"instance","type":"MethodDoc","description":"

                      change the game/app state

                      ","params":[{"identifier":"state","optional":false,"description":"

                      State ID (see constants)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"forceChange","optional":false,"description":"

                      if true the state will be changed immediately

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":true,"description":"

                      extra arguments to be passed to the reset functions

                      ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]},{"id":"V2yjkJIvCkfs15KXRyA4k","name":"current","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return a reference to the current stage
                      \nuseful to call a object specific method

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oKGLKm-53AyETnlIGjEXS","name":"isCurrent","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return true if the specified state is the current one

                      ","params":[{"identifier":"state","optional":false,"description":"

                      State ID (see constants)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if the specified state is the current one

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"p91nym0Q-7yCFVK-Y4QZw","name":"isPaused","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      Return the pause state of the state manager

                      ","params":[],"returns":[{"description":"

                      true if the game is paused

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HXdt6ZtUPHUTU7GpA7n24","name":"isRunning","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      return the running state of the state manager

                      ","params":[],"returns":[{"description":"

                      true if a "process is running"

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kI6nzsJLXc0oUT1h8k0I0","name":"pause","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      pause the current stage

                      ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                      pause current music track on screen pause

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"tRXWZbqhSrkTS9n6jBFs8","name":"restart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      Restart the current stage from a full stop.

                      ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                      resume current music track on screen resume

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"YsbhXKtuLYqmz8-cY0zHN","name":"resume","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      resume the current stage

                      ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                      resume current music track on screen resume

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"iiIePh17YGrD5JQuFuX6M","name":"set","brief":"","access":"public","examples":[{"caption":"","code":" class MenuButton extends me.GUI_Object {\n onClick() {\n // Change to the PLAY state when the button is clicked\n me.state.change(me.state.PLAY);\n return true;\n }\n };\n\n class MenuScreen extends me.Stage {\n onResetEvent() {\n // Load background image\n me.game.world.addChild(\n new me.ImageLayer(0, 0, {\n image : \"bg\",\n z: 0 // z-index\n }\n );\n\n // Add a button\n me.game.world.addChild(\n new MenuButton(350, 200, { \"image\" : \"start\" }),\n 1 // z-index\n );\n\n // Play music\n me.audio.playTrack(\"menu\");\n }\n\n onDestroyEvent() {\n // Stop music\n me.audio.stopTrack();\n }\n };\n\n me.state.set(me.state.MENU, new MenuScreen());"}],"scope":"instance","type":"MethodDoc","description":"

                      associate the specified state with a Stage

                      ","params":[{"identifier":"state","optional":false,"description":"

                      State ID (see constants)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"stage","optional":false,"description":"

                      Instantiated Stage to associate with state ID

                      ","dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}},{"identifier":"start ","optional":true,"default":" false","description":"

                      if true the state will be changed immediately after adding it.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7EKv5Ur-Xk4ejVj-BoKOr","name":"set","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      returns the stage associated with the specified state\n(or the current one if none is specified)

                      ","params":[{"identifier":"state","optional":true,"description":"

                      State ID (see constants)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hgIxf1L_7AxMI3uDcxUKK","name":"setTransition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      enable/disable the transition to a particular state (by default enabled for all)

                      ","params":[{"identifier":"state","optional":false,"description":"

                      State ID (see constants)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"w3VHDidkGwQNhe8Zn3DVT","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      Stop the current stage.

                      ","params":[{"identifier":"pauseTrack","optional":true,"default":"false","description":"

                      pause current track on screen stop.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"74xhU2wucz-ueY7Qu8EzF","name":"transition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                      specify a global transition effect

                      ","params":[{"identifier":"effect","optional":false,"description":"

                      (only "fade" is supported for now)

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

                      a CSS color value

                      ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                      expressed in milliseconds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"0e2MqLujNIHFWTIsOGw67","name":"timer","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\ntimer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setTimeout(myFunction, 1000, true, param1, param2);\n// set a timer to call \"myFunction\" every 1000ms\ntimer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setInterval(myFunction, 1000, true, param1, param2);"}],"see":["Timer"],"type":"NSDoc","description":"

                      the default global Timer instance

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iWpFu5ewarbE_sBVsvEk-","name":"TMXUtils","brief":"","type":"NSDoc","description":"

                      a collection of utility functions for parsing TMX maps

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"_bbmYuSFBX1a_R2oZhAHk","name":"applyTMXProperties","brief":"","type":"FunctionDoc","description":"

                      Apply TMX Properties to the given object

                      ","params":[{"identifier":"obj","optional":false,"description":"

                      object to apply the properties to

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

                      TMX data object

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                      obj

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"KoZYo2wOaFeUpcpoe1_UF","name":"decode","brief":"","type":"FunctionDoc","description":"

                      Decode a encoded array into a binary array

                      ","params":[{"identifier":"data","optional":false,"description":"

                      data to be decoded

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"encoding","optional":true,"default":"\"none\"","description":"

                      data encoding ("csv", "base64", "xml")

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      Decoded data

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"lQWci6IOgwiA21R0484Nq","name":"decodeBase64AsArray","brief":"","type":"FunctionDoc","description":"

                      Decode a base64 encoded string into a byte array

                      ","params":[{"identifier":"input","optional":false,"description":"

                      Base64 encoded data

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"bytes","optional":true,"default":"1","description":"

                      number of bytes per array entry

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Decoded data

                      ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cjg3D8oUfm9KZZlBGQIVP","name":"decodeCSV","brief":"","type":"FunctionDoc","description":"

                      Decode a CSV encoded array into a binary array

                      ","params":[{"identifier":"input-","optional":false,"description":"

                      CSV formatted data (only numbers, everything else will be converted to NaN)

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      Decoded data

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Ik1mysgorI9R4CcPTTgcd","name":"decompress","brief":"","type":"FunctionDoc","description":"

                      decompress and decode zlib/gzip data

                      ","params":[{"identifier":"input","optional":false,"description":"

                      Base64 encoded and compressed data

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"format","optional":false,"description":"

                      compressed data format ("gzip","zlib", "zstd")

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      Decoded and decompress data

                      ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rd9X61zVVB01NFepJx21h","name":"parse","brief":"","type":"FunctionDoc","description":"

                      Parse a XML TMX object and returns the corresponding javascript object

                      ","params":[{"identifier":"xml","optional":false,"description":"

                      XML TMX object

                      ","dataType":{"tokens":[{"value":"Document","kind":"canonical"},{"value":"Document","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Javascript object

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"iybfsw6R8Tlw0JCs-48Ym","name":"setInflateFunction","brief":"","type":"FunctionDoc","description":"

                      set the function used to inflate gzip/zlib data

                      ","params":[{"identifier":"fn","optional":false,"description":"

                      inflate function

                      ","dataType":{"tokens":[{"value":"Func","kind":"canonical"},{"value":"Func","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"wE_WSD87PQZx2z1W202Md","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

                      a collection of utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"d7Mp9_WNOAEKRxxA59kYy","name":"agent","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of utility functons to ease porting between different user agents.

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"dQtP9kGbxFFsA07pzSCsQ","name":"prefixed","brief":"","access":"public","type":"FunctionDoc","description":"

                      Get a vendor-prefixed property

                      ","params":[{"identifier":"name","optional":false,"description":"

                      Property name

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

                      Object or element reference to access

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                      Value of property

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"79YtECRiLMH70H4AHX7TY","name":"setPrefixed","brief":"","access":"public","type":"FunctionDoc","description":"

                      Set a vendor-prefixed property

                      ","params":[{"identifier":"name","optional":false,"description":"

                      Property name

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                      Property value

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

                      Object or element reference to access

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                      true if one of the vendor-prefixed property was found

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"YoWc1uA_64EbqDH0CZnf6","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of array utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"88HOqoyIr_G_qSNBuDvl1","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Select a random array element\nlet arr = [ \"foo\", \"bar\", \"baz\" ];\nconsole.log(me.utils.array.random(arr));"}],"type":"FunctionDoc","description":"

                      return a random array element

                      ","params":[{"identifier":"arr","optional":false,"description":"

                      array to pick a element

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

                      random member of array

                      ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]},{"id":"2Tx0b_rps17GSrbkbgxKD","name":"remove","brief":"","access":"public","type":"FunctionDoc","description":"

                      Remove the specified object from the given Array

                      ","params":[{"identifier":"arr","optional":false,"description":"

                      array from which to remove an object

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}},{"identifier":"obj","optional":false,"description":"

                      to be removed

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                      the modified Array\nlet arr = [ "foo", "bar", "baz" ];\n// remove "foo" from the arr...","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"extends":[],"implements":[]},{"id":"TNPwQxMxcem_Ubm_mFQUv","name":"weightedRandom","brief":"","access":"public","type":"FunctionDoc","description":"

                      return a weighted random array element, favoring the earlier entries

                      ","params":[{"identifier":"arr","optional":false,"description":"

                      array to pick a element

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

                      random member of array

                      ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]}]},{"id":"t5JZYa3L9uFou-xNS-T1g","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

                      a collection of file utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"U9mq6jbtkc_VrNuANvxSv","name":"getBasename","brief":"","access":"public","type":"FunctionDoc","description":"

                      return the base name of the file without path info

                      ","params":[{"identifier":"path","optional":false,"description":"

                      path containing the basename to extract

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      the base name without path information.

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"h2o-Pgyp-xOfjFVCs4E3w","name":"getExtension","brief":"","access":"public","type":"FunctionDoc","description":"

                      return the extension of the file in the given path

                      ","params":[{"identifier":"path","optional":false,"description":"

                      path containing the filename and extension to extract

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      filename extension.

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"4hOo4dV_mp7DiY_e6_Yga","name":"getPath","brief":"","access":"public","type":"FunctionDoc","description":"

                      return the path of the file

                      ","params":[{"identifier":"path","optional":false,"description":"

                      the copmplete file path to extract the path from

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      the extracted path

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"WEqo23jN-jxGnje709EpH","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"OQYh3t3H2i31D0YBSGZxJ","name":"defer","brief":"","access":"public","examples":[{"caption":"","code":"// execute myFunc() when the stack is empty,\n// with the current context and [1, 2, 3] as parameter\nme.utils.function.defer(myFunc, this, 1, 2, 3);"}],"type":"FunctionDoc","description":"

                      Executes a function as soon as the interpreter is idle (stack empty).

                      ","params":[{"identifier":"func","optional":false,"description":"

                      The function to be deferred.

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":false,"description":"

                      The value to be passed as the this parameter to the target function when the deferred function is called

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                      Optional additional arguments to carry for the function.

                      ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                      id that can be used to clear the deferred function using\nclearTimeout

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ySGvRpVfQ5ywJR2tytaMT","name":"throttle","brief":"","access":"public","type":"FunctionDoc","description":"

                      returns a function that, when invoked will only be triggered at most once during a given window of time

                      ","params":[{"identifier":"fn","optional":false,"description":"

                      the function to be throttled.

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                      The delay in ms

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"no_trailing","optional":false,"description":"

                      disable the execution on the trailing edge

                      ","dataType":{"tokens":[{"value":"no_trailing","kind":"canonical"},{"value":"no_trailing","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      the function that will be throttled

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"extends":[],"implements":[]}]},{"id":"bPue1LXl5_DedFd6r3sYk","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of string utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ZRicrwCNzogHjdB_6Faye","name":"capitalize","brief":"","access":"public","type":"FunctionDoc","description":"

                      converts the first character of the given string to uppercase

                      ","params":[{"identifier":"str","optional":false,"description":"

                      the string to be capitalized

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      the capitalized string

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"AaahOhy0jJaUcyntjzIAi","name":"isBoolean","brief":"","access":"public","type":"FunctionDoc","description":"

                      returns true if the given string contains a true or false

                      ","params":[{"identifier":"str","optional":false,"description":"

                      the string to be tested

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      true if the string is either true or false

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HHAC94bCRNlJfiUBdbSgc","name":"isDataUrl","brief":"","access":"public","type":"FunctionDoc","description":"

                      returns true if the given string is a data url in the data:[<mediatype>][;base64],<data> format.\n...","params":[{"identifier":"str","optional":false,"description":"

                      the string (url) to be tested

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      true if the string is a data url

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NcJDn7BrQgqLs8Li6vEca","name":"isNumeric","brief":"","access":"public","type":"FunctionDoc","description":"

                      returns true if the given string contains a numeric integer or float value

                      ","params":[{"identifier":"str","optional":false,"description":"

                      the string to be tested

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      true if string contains only digits

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BLlh1XSJz4miVC_7Cdxov","name":"toHex","brief":"","access":"public","type":"FunctionDoc","description":"

                      convert a string to the corresponding hexadecimal value

                      ","params":[{"identifier":"str","optional":false,"description":"

                      the string to be converted

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      the converted hexadecimal value

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"7RQGv8iT3Dj1W8N4NXLbU","name":"checkVersion","brief":"","access":"public","examples":[{"caption":"","code":"if (me.utils.checkVersion(\"7.0.0\") > 0) {\n console.error(\n \"melonJS is too old. Expected: 7.0.0, Got: 6.3.0\"\n );\n}"}],"type":"FunctionDoc","description":"

                      Compare two version strings

                      ","params":[{"identifier":"v1","optional":false,"description":"

                      First version string to compare

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"v2","optional":false,"description":"

                      second version string to compare

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      Return 0 if v1 == v2, or 1 if v1 is greater, or -1 if v2 is greater

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jQR-3b8adOrs7tuXr69bc","name":"getUriFragment","brief":"","access":"public","examples":[{"caption":"","code":"// http://www.example.com/index.html#debug&hitbox=true&mytag=value\nlet UriFragment = me.utils.getUriFragment();\nconsole.log(UriFragment[\"mytag\"]); //> \"value\""}],"type":"FunctionDoc","description":"

                      parse the fragment (hash) from a URL and returns them into

                      ","params":[{"identifier":"url","optional":true,"default":"document.location","description":"

                      an optional params string or URL containing fragment (hash) params to be parsed

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      an object representing the deserialized params string.

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[],"members":[{"id":"Y5Y7mFyyi3DNqjOSbJNas","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      display the debug panel (if preloaded)

                      "},{"id":"VIwIJ8uT63TRqj8vdHhi_","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

                      show/hide the debug panel (if preloaded)

                      "},{"id":"abVNDgIxTijCmBxcEsc4d","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the hitbox in the debug panel (if enabled)

                      "},{"id":"BkTHWt7EhvaLH0NPbAjgz","name":"quadtree","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the quadtree in the debug panel (if enabled)

                      "},{"id":"jnfUMe0ydI70QhwIDL_Mh","name":"velocity","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the entities velocity in the debug panel (if enabled)

                      "},{"id":"huj481USDy3MlVirK8KXq","name":"webgl","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      force the renderer to WebGL

                      "}]}]},{"id":"08kgVZTTXDgNsqONngaon","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"bBqmzgbVR_nNiT5WO8AyX","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

                      A reference to the active Canvas or WebGL active renderer renderer

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K4a-slKiPDB-pwOD1-Y-C","name":"createCanvas","brief":"","type":"FunctionDoc","description":"

                      Create and return a new Canvas element

                      ","params":[{"identifier":"width","optional":false,"description":"

                      width

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      height

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"returnOffscreenCanvas","optional":true,"default":"false","description":"

                      will return an OffscreenCanvas if supported

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      a new Canvas element of the given size

                      ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"VRralBmTNNqZ-pHNWF77T","name":"getParent","brief":"","type":"FunctionDoc","description":"

                      return a reference to the parent DOM element holding the main canvas

                      ","params":[],"returns":[{"description":"

                      the HTML parent element

                      ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z8OBzH3dWUmf205ogMrKB","name":"init","brief":"","examples":[{"caption":"","code":"// init the video with a 640x480 canvas\nme.video.init(640, 480, {\n parent : \"screen\",\n renderer : me.video.AUTO,\n scale : \"auto\",\n scaleMethod : \"fit\"\n});"}],"type":"FunctionDoc","description":"

                      Initialize the "video" system (create a canvas based on the given arguments, and the related renderer).

                      ","params":[{"identifier":"width","optional":false,"description":"

                      The width of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The height of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                      optional parameters for the renderer

                      ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      false if initialization failed (canvas not supported)

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"MTJ6NFjC85uvLhEudTYtK","name":"Application","brief":"","see":["game"],"type":"ClassDoc","description":"

                      An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object statu...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"n_Ir2NkXOZcQrcJB9IZXJ","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      true when this app instance has been initialized

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"liTyGjNMk5Eu9iWeZy5G7","name":"lastUpdate","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                      Last time the game update loop was executed.
                      \nUse this value to implement frame prediction in drawing events,\nfor crea...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2HhoNpbCssTu746q33r7P","name":"mergeGroup","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      when true, all objects will be added under the root world container.
                      \nWhen false, a me.Container object wi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hv9LA9BH1wqxRjr5q2xAb","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the parent HTML element holding the main canvas of this application

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dQQdtLhF5NmUbLhTTZhhh","name":"pauseOnBlur","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// keep the default game instance running even when loosing focus\nme.game.pauseOnBlur = false;"}],"scope":"instance","type":"PropertyDoc","description":"

                      Specify whether to pause this app when losing focus

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"266fVnINuI5tXBV0xb539","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the active Canvas or WebGL active renderer renderer

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ubFL66-g40vcWvQVho3Kt","name":"resumeOnFocus","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      Specify whether to unpause this app when gaining back focus

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ixSQ2Bhod6QzTt_dz17wU","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the given settings used when creating this application

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vwwoDwiIGE5xXp3cYVv85","name":"sortOn","brief":"","scope":"instance","see":["World.sortOn"],"type":"PropertyDoc","description":"

                      Specify the property to be used when sorting renderables for this application game world.\nAccepted values : "x",...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PvAYWmpklUKIHoeEa7R5W","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Specify whether to stop this app when losing focus

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1eQFj6ONGfxZClqlRSHwa","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the active stage "default" camera

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJfOlWho7YBR3lMnU-QAt","name":"world","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the game world,
                      \na world is a virtual environment containing all the game objects

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z3L_GL1IpIFLS8qHmrFjl","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

                      The width of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The height of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                      The optional parameters for the application and default renderer

                      ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_IJN2sQJJB1Zc4JRVMSdT","name":"draw","brief":"

                      draw the active scene/stage associated to this game

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W88spmdoAirAwvunE5QJz","name":"getParentElement","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns the parent HTML Element holding the main canvas of this application

                      ","params":[],"returns":[{"description":"

                      the parent HTML element

                      ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WK9ell7mSG7LdMfq-bGyr","name":"init","brief":"","scope":"instance","type":"MethodDoc","description":"

                      init the game instance (create a physic world, update starting time, etc..)

                      ","params":[{"identifier":"width","optional":false,"description":"

                      The width of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The height of the canvas viewport

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                      The optional parameters for the application and default renderer

                      ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jIeXsb3b58TG7lupQNtM9","name":"onLevelLoaded","brief":"","examples":[{"caption":"","code":"// call myFunction () everytime a level is loaded\nme.game.onLevelLoaded = this.myFunction.bind(this);"}],"scope":"instance","type":"MethodDoc","description":"

                      Fired when a level is fully loaded and all renderable instantiated.
                      \nAdditionnaly the level id will also be passed to ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sQscFq-wuxtkPUkuGObo7","name":"repaint","brief":"

                      force the redraw (not update) of all objects

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"onHguDzTfqt8h4Ap3UHPj","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                      reset the game Object manager\ndestroy all current objects

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VkigLq7ZcXqrzUNtYHkzm","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                      update all objects related to this game active scene/stage

                      ","params":[{"identifier":"time","optional":false,"description":"

                      current timestamp as provided by the RAF callback

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HAIhM5oeSAl7xwr1SEvKL","name":"updateFrameRate","brief":"","scope":"instance","see":["timer.maxfps","World.fps"],"type":"MethodDoc","description":"

                      Update the renderer framerate using the system config variables.

                      ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"86I7kkhYkKH088hHTfz_E","name":"BitmapText","brief":"","type":"ClassDoc","description":"

                      a bitmap font object

                      ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"XL5vJZlft6YdLgmK5HiJU","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                      Define the renderable opacity
                      \nSet to zero if you do not wish an object to be drawn

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lDVWyyzGYJMCGVrTlZ6WV","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether the renderable object will always update, even when outside of the viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGNGndVR5jSAMObRA-dbk","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the parent object that contains this renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ndxUFQpY141Um0RGn_kyr","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                      The anchor point is used for attachment behavior, and/or when applying transformations.
                      \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mjfCAPbiipyPNdouuvYjy","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                      When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CTcVr18Br2ahriagyTpJQ","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                      the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"feaDGBaGDIcfsv4ZyJia4","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                      the renderable physic body

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vEw7sXPdkjtRkCPPGsM2V","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"al_iqOqm5fU35U5RwB1jt","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QaV4b-ahubunj5N2_ZA61","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LP2lhvEms7BVLBONKk0aO","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the renderable default transformation matrix

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UEGm3eIjbrcg9kbFnm6Ld","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the depth of this renderable on the z axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ydDiVW31dyXVVPmbA_Mu0","name":"fillStyle","brief":"","access":"public","scope":"instance","see":["Renderable#tint"],"type":"PropertyDoc","description":"

                      defines the color used to tint the bitmap text

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lRaCXCEqFLx0zLVphVChc","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56rdruL-br2pwdD-IU-YE","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      (G)ame (U)nique (Id)entifier"
                      \na GUID will be allocated for any renderable object added
                      \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EBlR9KiEV-nuMgiK5kFzo","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      height of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-bB9Rs1krn2f_aiSZybzK","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether the renderable object is visible and within the viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tlE5NHzEK_ctJg_tMvCg_","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      when true the renderable will be redrawn during the next update cycle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cz7RwHg4YeS1U4vObR_pP","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                      returns true if this renderable is flipped on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p6EVL-0V7Ud8QDnGXZQkM","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                      returns true if this renderable is flipped on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hZe461_MX9WAGm6ElT4Nz","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                      Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aROPD7bP1IPAVweIbttEM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      If true then physic collision and input events will not impact this renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A0QWCm-Sc-XpiC3BddpW2","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      make the renderable object persistent over level changes

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hQ4UzO6r9T_K9QnuGFAPZ","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1rRbfV6r0Lw9mXY0t-r_e","name":"lineHeight","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                      Set the line spacing height (when displaying multi-line strings).
                      \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lEDYd5q6mld3mx3QJkXRc","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                      A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z1wbJPbIo6Ksz_12eVmac","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                      The name of the renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vnM3Qhiz9dA6-ilTLpJth","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                      an event handler that is called when the renderable leave or enter a camera viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BhsqNrqNAE7-UqYSm5U5k","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      returns the parent application (or game) to which this renderable is attached to

                      ","params":[],"returns":[{"description":"

                      the parent application or undefined if not attached to any container/app

                      ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kXjDaPrUvXeEVgdSzyrCe","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      Array of points defining the Polygon
                      \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oEWnYGC6zV5ZUdh5XAetM","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Position of the Renderable relative to its parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xC5c0Vbt_PDs6SIpSoU0S","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hxuT5q61w7aVH-qO8Elp6","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                      (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9O00yh8LHO9yiP5e7h31U","name":"textAlign","brief":"","access":"public","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

                      Set the default text alignment (or justification),
                      \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RSP0c7Amrdev02ajfSFea","name":"textBaseline","brief":"","access":"public","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

                      Set the text baseline (e.g. the Y-coordinate for the draw operation),
                      \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L7Z4_EzrJINcGTxE6RxXL","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                      define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d00tUL_n-FM38oDezlmE7","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ypm2PwPDquR2lZOBc5FhZ","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                      the shape type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tz9NpkN95sk7FNqKLxWKW","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether to update this object when the game is paused.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8xoZHE1A0EtPQEksnRm1i","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y-V7kQwni47yeELQ_K0Ej","name":"wordWrapWidth","brief":"","access":"public","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

                      the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_viplBmyjEU6sNh7RBxJ","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      the text to be displayed

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mpZ0_7HM_hRNqk1WirnJY","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      font data

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GMe6ZXfTFo_9qbdvRUyOY","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      font image

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uk-SzaWiTlZl3IJcOLiba","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      scaled font size

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m4E0JisJDN1CdnvFszftC","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the angle to the specified target

                      ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KYtvUgLYR91_tqrZlkFt_","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                      center the rectangle position around the given coordinates

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the x coordinate around which to center this rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the y coordinate around which to center this rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cQus998AnAzpWrf3udAxk","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                      clone this rectangle

                      ","params":[],"returns":[{"description":"

                      new rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dgEhmuFWBARqeleC5xlXs","name":"constructor","brief":"","examples":[{"caption":"","code":"// Use me.loader.preload or me.loader.load to load assets\nme.loader.preload([\n { name: \"arial\", type: \"binary\" src: \"data/font/arial.fnt\" },\n { name: \"arial\", type: \"image\" src: \"data/font/arial.png\" },\n])\n// Then create an instance of your bitmap font:\nlet myFont = new me.BitmapText(x, y, {font:\"arial\", text:\"Hello\"});\n// two possibilities for using \"myFont\"\n// either call the draw function from your Renderable draw function\nmyFont.draw(renderer, \"Hello!\", 0, 0);\n// or just add it to the word container\nme.game.world.addChild(myFont);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                      position of the text object

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      position of the text object

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                      the text configuration

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

                      a font name to identify the corresponing source image

                      ","dataType":{"tokens":[{"value":"string | Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"string | %1"}},{"identifier":"settings.fontData","optional":true,"default":"settings.font","description":"

                      the bitmap font data corresponding name, or the bitmap font data itself

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"description":"

                      size a scaling ratio

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.fillStyle","optional":true,"description":"

                      a CSS color value used to tint the bitmapText (@see BitmapText.tint)

                      ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"1","description":"

                      line width, in pixels, when drawing stroke

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

                      horizontal text alignment

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

                      the text baseline

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

                      line spacing height

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

                      anchor point to draw the text at

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

                      the maximum length in CSS pixel for a single segment of text

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

                      a string, or an array of strings

                      ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wQjsPN0dDrylG-cbx88Uu","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                      Returns true if the rectangle contains the given point or rectangle

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point, or a rectangle to test

                      ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                      y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      True if the rectangle contain the given point or rectangle, otherwise false

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1tvjRke9rddp-K25NmlXk","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                      copy the position and size of the given rectangle into this one

                      ","params":[{"identifier":"rect","optional":false,"description":"

                      Source rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      new rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TvNVjHIy2Xiqt8FAVWpjP","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the distance to the specified target

                      ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      distance

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iqzgikkPfY6yC8W4WH68g","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

                      draw the bitmap font

                      ","params":[{"identifier":"renderer","optional":false,"description":"

                      Reference to the destination renderer instance

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zn23TXUX_hZN5U0jfHy5Z","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if this rectangle is identical to the specified one

                      ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      true if equals

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L0PQ87rGLjeog3Hzjy9iX","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                      flip the renderable on the horizontal axis (around the center of the renderable)

                      ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                      true to flip this renderable.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Hu9g0S8d5wT1yFqiwPpOj","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                      flip the renderable on the vertical axis (around the center of the renderable)

                      ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                      true to flip this renderable.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eD9YcpdMUDTT1yZ0jPrVE","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the renderable absolute position in the game world

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"78f7g8NsJcTeNcnR0vm-C","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns the bounding box for this renderable

                      ","params":[],"returns":[{"description":"

                      bounding box Rectangle object

                      ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ix1cK5G6-Tta58IthfdOK","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns a list of indices for all triangles defined in this polygon

                      ","params":[],"returns":[{"description":"

                      an array of vertex indices for all triangles forming this polygon.

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"i7EVpy-SNrWO8lqXTg3Vx","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                      get the renderable alpha channel value

                      ","params":[],"returns":[{"description":"

                      current opacity value between 0 and 1

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vx_IZ8DYDlwwekkpAH9Xr","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                      ","params":[],"returns":[{"description":"

                      true if the vertices are convex, false if not, null if not computable

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zV2225bzZECO91wUDmWbM","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                      determines whether all coordinates of this rectangle are finite numbers.

                      ","params":[],"returns":[{"description":"

                      false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MUiDQktiUMz9ktoBLDOWs","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Rotate this renderable towards the given target.

                      ","params":[{"identifier":"target","optional":false,"description":"

                      the renderable or position to look at

                      ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4o7odiemTz433AbXgzPzi","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                      measure the given text size in pixels

                      ","params":[{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      a TextMetrics object with two properties: width and height, defining the output dimensions

                      ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1LdFXzyLZA17lYxZ0lbDq","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                      onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                      ","params":[{"identifier":"response","optional":false,"description":"

                      the collision response object

                      ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                      the other renderable touching this one (a reference to response.a or response.b)

                      ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                      true if the object should respond to the collision (its position and velocity will be corrected)

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9N5WUpmWt-UkyllZIiBR2","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                      OnDestroy Notification function
                      \nCalled by engine before deleting the object

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cr1d80g-bLje1X7jkOfAp","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if this rectangle is intersecting with the specified one

                      ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      true if overlaps

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oRyxtQcZYbbDzs_iCkpdn","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                      restore the rendering context after drawing (automatically called by melonJS).

                      ","params":[{"identifier":"renderer","optional":false,"description":"

                      a renderer object

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"PgMXeG9DKfb-SVM8YuKBs","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                      Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                      a renderer object

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"XMqn1xbNZjBPWXmpmzWTQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uv8Rqp-jfZmL30Ya1H_JV","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                      change the font display size

                      ","params":[{"identifier":"scale","optional":false,"description":"

                      ratio

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this object for chaining

                      ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"28w1ed0x1hpbmlTfWDjIE","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Rotate this renderable by the specified angle (in radians).

                      ","params":[{"identifier":"angle","optional":false,"description":"

                      The angle to rotate (in radians)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                      an optional point to rotate around

                      ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eFjGHwFAe6L0ywf2vbwjg","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                      scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                      a number representing the abscissa of the scaling vector.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                      a number representing the ordinate of the scaling vector.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yBGWt0ZB-2OVe9ZPcP1q1","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                      scale the renderable around his anchor point

                      ","params":[{"identifier":"v","optional":false,"description":"

                      scaling vector

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H_J1ULdnJJ7_9UQbfCftQ","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                      change the font settings

                      ","params":[{"identifier":"textAlign","optional":false,"description":"

                      ("left", "center", "right")

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"scale","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this object for chaining

                      ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kiu3rG1MLNAZ1AfYp5R9T","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the renderable alpha channel value

                      ","params":[{"identifier":"alpha","optional":false,"description":"

                      opacity value between 0.0 and 1.0

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KMhIbPRimtbpnoda5X_Ye","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set new value to the rectangle shape

                      ","params":[{"identifier":"x","optional":false,"description":"

                      position of the Rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      position of the Rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                      width of the rectangle, or an array of vector defining the rectangle

                      ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                      height of the rectangle, if a numeral width parameter is specified

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ef04carj4M-0A7pj2MwfB","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

                      change the text to be displayed

                      ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

                      a string, or an array of strings

                      ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

                      this object for chaining

                      ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QAldRLLW3hhWypM4u_jZR","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the vertices defining this Polygon

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      array of vector or vertice defining the Polygon

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                      this instance for objecf chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VoAFI7Z3zHH6aYPzPFlIk","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      Shifts the Polygon to the given position vector.

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point to shift to

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"S9W6fmVeubKN7Yx4JSEQq","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                      apply a 2d projection to this shapen

                      ","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jIZtvvY90FsQSC9OfDm0W","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                      apply an isometric projection to this shape

                      ","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"63_Byyd0479XK-ltL2Jsf","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns a polygon whose edges are the same as this box.

                      ","params":[],"returns":[{"description":"

                      a new Polygon that represents this rectangle.

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6ZwdfLRffL6Fyf30U7OgL","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                      multiply the renderable currentTransform with the given matrix

                      ","params":[{"identifier":"m","optional":false,"description":"

                      the transformation matrix

                      ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GeZeu5uCQ0wD-4xOtgC7a","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      translate the Polygon by the specified offset

                      ","params":[{"identifier":"x","description":"

                      x offset or a vector point to translate by

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                      y offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"34bp1TW1U18bOxzZwsrdG","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                      merge this rectangle with another one

                      ","params":[{"identifier":"rect","optional":false,"description":"

                      other rectangle to union with

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      the union(ed) rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OzF0JSJC5BrpsXyoQfG4a","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                      update function (automatically called by melonJS).

                      ","params":[{"identifier":"dt","optional":false,"description":"

                      time since the last update in milliseconds.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if the renderable is dirty

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9PB6jS3oE6WQh9t4Y9BY_","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      update the bounding box for this Bitmap Text.

                      ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                      update the bounds size and position in (world) absolute coordinates

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      this Bitmap Text bounding box Rectangle object

                      ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RedxNc7z4lhrm1rtikbGG","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                      called when the anchor point value is changed

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the new X value to be set for the anchor

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the new Y value to be set for the anchor

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"F8r6mHnnZf2yYjsG_O9NJ","name":"Body","brief":"","see":["Renderable.body"],"type":"ClassDoc","description":"

                      a Generic Physic Body Object with some physic properties and behavior functionality, to add as a member of a Renderable.

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"7hOmcBFaPfUyu9rjfeyOP","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the parent object that contains this body,\nor undefined if it has not been added to one.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g0yPSrCfUjc_sxvtIKbZ_","name":"bounce","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                      the body bouciness level when colliding with other solid bodies :\na value of 0 will not bounce, a value of 1 will fully re...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xG3cw9DEsfGV8PXp0i-Kc","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      The AABB bounds box reprensenting this body

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Le461JKg5pFm2k3iC2gWF","name":"collisionType","brief":"","access":"public","defaultValue":"collision.types.ENEMY_OBJECT","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"PropertyDoc","description":"

                      define the collision type of the body for collision filtering

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JuomqxEVTqdenu4Bz6l3J","name":"falling","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                      falling state of the body
                      \ntrue if the object is falling
                      \nfalse if the object is standing on something

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m_yWOdNP_miHmJIxEsaxW","name":"force","brief":"","access":"public","defaultValue":"<0,0>","examples":[{"caption":"","code":" // define a default maximum acceleration, initial force and friction\n this.body.force.set(1, 0);\n this.body.friction.set(0.4, 0);\n this.body.setMaxVelocity(3, 15);\n\n // apply a postive or negative force when pressing left of right key\n update(dt) {\n if (me.input.isKeyPressed(\"left\")) {\n this.body.force.x = -this.body.maxVel.x;\n } else if (me.input.isKeyPressed(\"right\")) {\n this.body.force.x = this.body.maxVel.x;\n }\n }"}],"scope":"instance","see":["Body.setMaxVelocity"],"type":"PropertyDoc","description":"

                      body force to apply to this the body in the current step.\n(any positive or negative force will be cancelled after every wo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h1ibvBAQY30fyJ2ZE93dA","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

                      body friction

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Agr7j0NABd9hGN0ZkBsOW","name":"gravityScale","brief":"","access":"public","defaultValue":"1.0","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

                      The degree to which this body is affected by the world gravity

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x3zQ3HgzhalrzL1c5UMRp","name":"ignoreGravity","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

                      If true this body won't be affected by the world gravity

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JvknHKRUf461PgcUmZpzP","name":"isStatic","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                      Either this body is a static body or not.\nA static body is completely fixed and can never change position or angle.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fFkGb9hEI-vROwHQPW_7i","name":"jumping","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                      jumping state of the body
                      \nequal true if the body is jumping

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z2Y0fUwcmWBLro2-Xsxbc","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                      the body mass

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ofYHSyEFuopt4-_4y7IM5","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

                      max velocity (to limit body velocity)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OwYMCx2F15CeuVmDBZoDa","name":"vel","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","see":["Body.force"],"type":"PropertyDoc","description":"

                      The current velocity of the body.\nSee to apply a force if you need to modify a body velocity

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b54XsAqybFgWN-iA7UQen","name":"addShape","brief":"","examples":[{"caption":"","code":"// add a rectangle shape\nthis.body.addShape(new me.Rect(0, 0, image.width, image.height));\n// add a shape from a JSON object\nthis.body.addShape(me.loader.getJSON(\"shapesdef\").banana);"}],"scope":"instance","type":"MethodDoc","description":"

                      add a collision shape to this body
                      \n(note: me.Rect objects will be converted to me.Polygon before being added)

                      ","params":[{"identifier":"shape","optional":false,"description":"

                      a shape or JSON object

                      ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse | Point | Array | Bounds | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6<%7> | %8 | object"}}],"returns":[{"description":"

                      the shape array length

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sifv6KlGCOmnZ1RSFPjtV","name":"addVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      add the given vertices to the body shape

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      an array of me.Vector2d points defining a convex hull

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

                      the shape object for which to set the vertices

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EL4D8PU7k2iAEBXLDSFgS","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

                      the parent object this body is attached to

                      ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"shapes","optional":true,"description":"

                      a initial shape, list of shapes, or JSON object defining the body

                      ","dataType":{"tokens":[{"value":"Rect | Array | Polygon | Array | Line | Array | Ellipse | Array | Point | Array | Bounds | Array | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1 | %3<%2> | %4 | %5<%6> | %7 | %8<%9> | %10 | %11<%12> | %13 | %14<%15> | %16 | %17<%18> | object"}},{"identifier":"onBodyUpdate","optional":true,"description":"

                      callback for when the body is updated (e.g. add/remove shapes)

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"QqT3NiaXw7lWf1TDsMtek","name":"contains","brief":"","examples":[{"caption":"","code":"if (mySprite.body.contains(10, 10)) {\n // do something\n}\n// or\nif (mySprite.body.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                      Returns true if the any of the shape composing the body contains the given point.

                      ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                      x coordinate or a vector point to check

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                      y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if contains

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5Jtycot_Z5Y-BW5ZuiSJ1","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all shapes of the physic body\nmySprite.body.forEach((shape) => {\n shape.doSomething();\n});\nmySprite.body.forEach((shape, index) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                      The forEach() method executes a provided function once per body shape element.
                      \nthe callback function is invoked with ...","params":[{"identifier":"callback","optional":false,"description":"

                      fnction to execute on each element

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                      value to use as this(i.e reference Object) when executing callback.

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"2vGVekLoE-wJ4L40Vmo5S","name":"fromJSON","brief":"","examples":[{"caption":"","code":"// define the body based on the banana shape\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\").banana);\n// or ...\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\"), \"banana\");"}],"scope":"instance","see":["https://www.codeandweb.com/physicseditor"],"type":"MethodDoc","description":"

                      add collision mesh based on a JSON object\n(this will also apply any physic properties defined in the given JSON file)

                      ","params":[{"identifier":"json","optional":false,"description":"

                      a JSON object as exported from a Physics Editor tool

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"id","optional":true,"description":"

                      an optional shape identifier within the given the json object

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      how many shapes were added to the body

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fBSlJMA4dx_CtymaoBrbn","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns the AABB bounding box for this body

                      ","params":[],"returns":[{"description":"

                      bounding box Rectangle object

                      ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zRn88AnttT7G2cpHlKVwZ","name":"getShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the collision shape at the given index

                      ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                      the shape object at the specified index

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      shape a shape object if defined

                      ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"extends":[],"implements":[]},{"id":"ruOiwMLnOkotZqfmaz4iO","name":"removeShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                      remove the specified shape from the body shape list

                      ","params":[{"identifier":"shape","optional":false,"description":"

                      a shape object

                      ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      the shape array length

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_d9rANUey7ffEpTNesVik","name":"removeShapeAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                      remove the shape at the given index from the body shape list

                      ","params":[{"identifier":"index","optional":false,"description":"

                      the shape object at the specified index

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      the shape array length

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YNSvNwpNu5AGKQ-zyCnGx","name":"respondToCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

                      the built-in function to solve the collision response

                      ","params":[{"identifier":"response","optional":false,"description":"

                      the collision response object (see {@link ResponseObject})

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"8DGWrLWE0Zi254b-IGaIU","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Rotate this body (counter-clockwise) by the specified angle (in radians).\nUnless specified the body will be rotated around...","params":[{"identifier":"angle","optional":false,"description":"

                      The angle to rotate (in radians)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"default":"Body.getBounds().center","description":"

                      an optional point to rotate around

                      ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jMQgteefmJLgUQoTGF4wW","name":"setCollisionMask","brief":"","examples":[{"caption":"","code":"// filter collision detection with collision shapes, enemies and collectables\nbody.setCollisionMask(me.collision.types.WORLD_SHAPE | me.collision.types.ENEMY_OBJECT | me.collision.types.COLLECTABLE_OBJECT);\n...\n// disable collision detection with all other objects\nbody.setCollisionMask(me.collision.types.NO_OBJECT);"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

                      By default all physic bodies are able to collide with all other bodies,
                      \nbut it's also possible to specify 'collision ...","params":[{"identifier":"bitmask ","optional":true,"default":" collision.types.ALL_OBJECT","description":"

                      the collision mask

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KQgJuKpDVsLa0O8seJYdO","name":"setCollisionType","brief":"","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

                      define the collision type of the body for collision filtering

                      ","params":[{"identifier":"type","optional":false,"description":"

                      the collision type

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TiVnSUue8KvznaHkxLgDX","name":"setFriction","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the body default friction

                      ","params":[{"identifier":"x","optional":false,"default":"0","description":"

                      horizontal friction

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                      vertical friction

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qh9o0wXeDYEJVljumy_Pt","name":"setMaxVelocity","brief":"","scope":"instance","type":"MethodDoc","description":"

                      cap the body velocity (body.maxVel property) to the specified value

                      ","params":[{"identifier":"x","optional":false,"description":"

                      max velocity on x axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      max velocity on y axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cjCiKdavFXwizc5Dygq6H","name":"setStatic","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the body as a static body\nstatic body do not move automatically and do not check againt collision with others

                      ","params":[{"identifier":"isStatic","optional":true,"default":"true","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"j2EaN56TOoY4turVbae_o","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the body vertices to the given one

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      an array of me.Vector2d points defining a convex hull

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

                      the shape object for which to set the vertices

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"true","description":"

                      either to reset the body definition before adding the new vertices

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ocd7V7cXCc21xYlHw1oDW","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                      Updates the parent's position as well as computes the new body's velocity based\non the values of force/friction. Velocity...","params":[{"identifier":"dt","optional":false,"description":"

                      time since the last update in milliseconds.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if resulting velocity is different than 0

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"TI94-XTW4lFVwVX2w6O1f","name":"Bounds","brief":"","type":"ClassDoc","description":"

                      a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"80dx2ii_OjhvFBaEhpDSh","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ldeZ5z0lB6z8RaK59NKpY","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      return the center position of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCM_eEc8BdrQSpUDA3Qjq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      center position of the bound on the x axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9AzUTcWSycjj1H1ghSm4","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      center position of the bound on the y axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AD9ek7IOeQiwJjK5zR-a9","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tv5hXsSIFu1xmU-csiJBJ","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"epWxWbAnlD22sjVQBExt6","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"32o4UsxJ8c80g42EXa9DI","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aTSKuMdz_DCzUh1-mt_JI","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                      the object type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XiF-A7RKSrOzomVvaPjov","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W32ghvZS5nk4cg0VB1GgT","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      x position of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hb27jFyJBhEtHjesCa9Tg","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      y position of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gBTM0sBIio0h3U0J1GwVy","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                      add the given vertices to the bounds definition.

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      an array of Vector2d or Point

                      ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                      either to reset the bounds before adding the new vertices

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"KonMTTJ5MRYgzw9FbJGfD","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      add the given bounds to the bounds definition.

                      ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                      either to reset the bounds before adding the new vertices

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"SLT_6fcoOicKiS-HxXS72","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                      add the given quad coordinates to this bound definition, multiplied by the given matrix

                      ","params":[{"identifier":"x0","optional":false,"description":"

                      left X coordinates of the quad

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                      top Y coordinates of the quad

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                      right X coordinates of the quad

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                      bottom y coordinates of the quad

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                      an optional transform to apply to the given frame coordinates

                      ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0a8d_rS66jpARAZAC6YaP","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                      add the given point to the bounds definition.

                      ","params":[{"identifier":"point","optional":false,"description":"

                      the vector or point to be added to the bounds

                      ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                      an optional transform to apply to the given point (if the given point is a Vector2d)

                      ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"as3v07uPPQ97vfQmdZwyd","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                      center the bounds position around the given coordinates

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the x coordinate around which to center this bounds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the y coordinate around which to center this bounds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jJY5FNOwZnKQqrs2queFv","name":"clear","brief":"

                      reset the bound

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1rxaZwBb6qQAbPzhQCq-m","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                      clone this bounds

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BWV7LWrkd785KNg_75JYh","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"vertices","optional":true,"description":"

                      an array of Vector2d or Point

                      ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"m8UY5EyN3qDsx-FSZFMRK","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                      Returns true if the bounds contains the given point.

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point to check

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                      y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      True if the bounds contain the point, otherwise false

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RNVqNYcpVxMUT6gWZngIS","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                      determines whether all coordinates of this bounds are finite numbers.

                      ","params":[],"returns":[{"description":"

                      false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZzQBHZF2_OZfL9FMTPqlg","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns true if the two bounds intersect.

                      ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                      True if the bounds overlap, otherwise false

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"o3JWqbzdYy15OiZqBcaWB","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                      sets the bounds to the given min and max value

                      ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_VoI1t_lMl9rbRPzKsH2-","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      Shifts the bounds to the given x, y position.

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point to shift to

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7I5hrlTvnIZ7asF7y_u_j","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns a polygon whose edges are the same as this bounds.

                      ","params":[],"returns":[{"description":"

                      a new Polygon that represents this bounds.

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P98iOXhAlD5uG4Cr_Zd-k","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      Translates the bounds by the given point

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point to translate by

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FdUoBLCUm3TIxTg5rNz65","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Updates bounds using the given vertices

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      an array of Vector2d or Point

                      ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"SxNh9zIylv-hD5qDv-xoN","name":"Camera2d","brief":"","type":"ClassDoc","description":"

                      a 2D orthographic camera

                      ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"lDdP-GNJoQn8RXyFbdA16","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

                      Axis definition

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xc-U0o5KceaOiZ8WDLLD1","name":"BOTH","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      both axis

                      "},{"id":"Luojux99_l0IqLDHx4s2H","name":"HORIZONTAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      horizontal axis only

                      "},{"id":"LK6uQeNU8UYLgd1fztMc-","name":"NONE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      no axis

                      "},{"id":"S9I2540M_N1_IRyagrPY4","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      vertical axis only

                      "}]},{"id":"_nBDJ4OgK3U_9gFgkzVUg","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                      Define the renderable opacity
                      \nSet to zero if you do not wish an object to be drawn

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fuw5lXedryYdwLsnlKeAY","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether the renderable object will always update, even when outside of the viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JhWoapSjGAZDes5gBzsle","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the parent object that contains this renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OIN_3yZ_n02uEXUtVGgru","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                      The anchor point is used for attachment behavior, and/or when applying transformations.
                      \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LUHRIr3OazighA8_TR7aE","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                      When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d0vFY0bjEkh8f7eyp1bfE","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                      the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CaeDX9UDEXLQuJTmHMtd9","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                      the renderable physic body

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Ovd8nrTmjZMXITOug93j","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0X3vl5HBXA3NGRnTU9yn_","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Camera bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m5xveM8nG9V0amI8pB799","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aNVaHvZ1ivw-GekEi0r69","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TtlVoRtzoQcK8_SG4ff41","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the renderable default transformation matrix

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m5ZrS5igHE3vm-fzYt648","name":"damping","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                      Camera damping for smooth transition [0 .. 1].\n1 being the maximum value and will snap the camera to the target position

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j3rdizsxFGdXPnmH5diDi","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the depth of this renderable on the z axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rdWZnXhKOJw8DLFXhP_ox","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

                      the furthest point relative to the camera.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lZX3UFWlfAX8Phxzln1BR","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qVUuOKrsdcDNUdm3_HH4L","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      (G)ame (U)nique (Id)entifier"
                      \na GUID will be allocated for any renderable object added
                      \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_kPeiFj2_omSO37bQQ0Ak","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      height of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4yGbX6SoXb6VqA55gzRD","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether the renderable object is visible and within the viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EpMNkGAzv1ADkuUuNT035","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      when true the renderable will be redrawn during the next update cycle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGfg1N5mvtX89wlKWxSun","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                      returns true if this renderable is flipped on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"chfy-ENJ95oGcYvWEGfJL","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                      returns true if this renderable is flipped on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7q1W6PdeQe8oRUHwuRg3B","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                      Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jo_tcoyGWParT7PLM0T8e","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      If true then physic collision and input events will not impact this renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vsxhfxJnGMGpAzZ2DajKp","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      make the renderable object persistent over level changes

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5oH_7XNVgGIaDf9HCnsVM","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U8IRTyP_pcf-POzPFC-fk","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                      A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QgOociDKlhCOQdaupWP_2","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                      The name of the renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2NZnkrZEZNeIp1bcJhE1d","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

                      the closest point relative to the camera

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wy4fJpiBIfWgW46cj9j9J","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                      an event handler that is called when the renderable leave or enter a camera viewport

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6LMFe4vhJjFOoQLWilOTd","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      returns the parent application (or game) to which this renderable is attached to

                      ","params":[],"returns":[{"description":"

                      the parent application or undefined if not attached to any container/app

                      ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XlHfBJsIBZA8V_A6t3AyN","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      Array of points defining the Polygon
                      \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T0AILgG_NJkEe97u3Yene","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Position of the Renderable relative to its parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N18kcIj68vr5UIhlBuxSV","name":"projectionMatrix","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      the default camera projection matrix\n(2d cameras use an orthographic projection by default).

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aYeBvcmgiOwxFCoWW4Xuy","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qTi9LGZv-zNjMV6BH7JLC","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                      (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tYlv9pn9SEHwFw_EBt1jy","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                      define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YJLmrzCGLXukDo27bccTs","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XD_2nJAQkLd6TWDcHCdS_","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                      the shape type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7-oPaVV33ycgMyvqLbnnd","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Whether to update this object when the game is paused.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IO3359fvP5zba4PsCJa1e","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PYzUpWKGtpVJcbqzasfor","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      enable or disable damping

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lxImakbjCCEOEKQ22mcN1","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the angle to the specified target

                      ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GZ_jImjtGwhu2Ps6KdEaj","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                      center the rectangle position around the given coordinates

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the x coordinate around which to center this rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the y coordinate around which to center this rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4EObCw0aGifjwM8v1Nn4l","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                      clone this rectangle

                      ","params":[],"returns":[{"description":"

                      new rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Msd289ch1UiOp6wvuNqFt","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"minX","optional":false,"description":"

                      start x offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"description":"

                      start y offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"description":"

                      end x offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"description":"

                      end y offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cWgenUU3zikygPjKOe65b","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                      Returns true if the rectangle contains the given point or rectangle

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point, or a rectangle to test

                      ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                      y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      True if the rectangle contain the given point or rectangle, otherwise false

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HsL2KKCCOnsdPnyEPxUfU","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                      copy the position and size of the given rectangle into this one

                      ","params":[{"identifier":"rect","optional":false,"description":"

                      Source rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      new rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PhvatMAiz-bfmJQSledjA","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the distance to the specified target

                      ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      distance

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1rBTyl5ETzxcs1ElhFwU5","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                      Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                      a renderer instance

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                      the viewport to (re)draw

                      ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UBkxp6N8H70Kgpcig4Eve","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if this rectangle is identical to the specified one

                      ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      true if equals

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rl6iPKc_L6QNoMojt5cJg","name":"fadeIn","brief":"","examples":[{"caption":"","code":"// flash the camera to white for 75ms\nme.game.viewport.fadeIn(\"#FFFFFF\", 75);"}],"scope":"instance","type":"MethodDoc","description":"

                      fadeIn effect

                      \nfade to the specified color

                      ","params":[{"identifier":"color","optional":false,"description":"

                      a CSS color value

                      ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                      expressed in milliseconds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                      callback once effect is over

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"hK8mHcuxBFwVeV-L36DYE","name":"fadeOut","brief":"","examples":[{"caption":"","code":"// fade the camera to white upon dying, reload the level, and then fade out back\nme.game.viewport.fadeIn(\"#fff\", 150, function() {\n me.audio.play(\"die\", false);\n me.level.reload();\n me.game.viewport.fadeOut(\"#fff\", 150);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                      fadeOut(flash) effect

                      \nscreen is filled with the specified color and slowly goes back to normal

                      ","params":[{"identifier":"color","optional":false,"description":"

                      a CSS color value

                      ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                      expressed in milliseconds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                      callback once effect is over

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"dte2SlVUL8gkGkCi8kGov","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                      flip the renderable on the horizontal axis (around the center of the renderable)

                      ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                      true to flip this renderable.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u3v8dfIQP-yxiUYsfpi-l","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                      flip the renderable on the vertical axis (around the center of the renderable)

                      ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                      true to flip this renderable.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hbUzX8o9CWctIYzuMPT2b","name":"focusOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the camera position around the specified object

                      ","params":[{"identifier":"target","optional":false,"description":"

                      the renderable to focus the camera on

                      ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"znG80bjKoqaMllAkK8yd5","name":"follow","brief":"","examples":[{"caption":"","code":"// set the camera to follow this renderable on both axis, and enable damping\nme.game.viewport.follow(this, me.game.viewport.AXIS.BOTH, 0.1);"}],"scope":"instance","type":"MethodDoc","description":"

                      set the camera to follow the specified renderable.
                      \n(this will put the camera center around the given target)

                      ","params":[{"identifier":"target","optional":false,"description":"

                      renderable or position vector to follow

                      ","dataType":{"tokens":[{"value":"Renderable | Vector2d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

                      Which axis to follow (see {@link Camera2d.AXIS})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"damping","optional":true,"default":"1","description":"

                      default damping value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nxw2h7XIE-tNj7GGasgEA","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the renderable absolute position in the game world

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cvo5IX0ikjiDFnroakhVR","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns the bounding box for this renderable

                      ","params":[],"returns":[{"description":"

                      bounding box Rectangle object

                      ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"peGpeC33Hxr4zW1PvA_Dz","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns a list of indices for all triangles defined in this polygon

                      ","params":[],"returns":[{"description":"

                      an array of vertex indices for all triangles forming this polygon.

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"JZsrjgLJVkQw8U_I_Qi8k","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                      get the renderable alpha channel value

                      ","params":[],"returns":[{"description":"

                      current opacity value between 0 and 1

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l9Jy6cp6lwG3i-ndQQBsQ","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                      ","params":[],"returns":[{"description":"

                      true if the vertices are convex, false if not, null if not computable

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Dr3-tjGVdEAvoSxY4d82F","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                      determines whether all coordinates of this rectangle are finite numbers.

                      ","params":[],"returns":[{"description":"

                      false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_JL9QXY1o9-g4sD0151UC","name":"isVisible","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if the specified renderable is in the camera

                      ","params":[{"identifier":"obj","optional":false,"description":"

                      to be checked against

                      ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"floating ","optional":true,"default":" obj.floating","description":"

                      if visibility check should be done against screen coordinates

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      true if within the viewport

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uhkrR9ZSNb3pMa8aLDVvg","name":"localToWorld","brief":"","scope":"instance","type":"MethodDoc","description":"

                      convert the given "local" (screen) coordinates into world coordinates

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the x coordinate of the local point to be converted

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the y coordinate of the local point to be converted

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                      an optional vector object where to set the converted value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4fZQfmzsROM8Y6y48ycvW","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Rotate this renderable towards the given target.

                      ","params":[{"identifier":"target","optional":false,"description":"

                      the renderable or position to look at

                      ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U5vvDe8LxEu6VLFKBFCjl","name":"move","brief":"","examples":[{"caption":"","code":"// Move the camera up by four pixels\nme.game.viewport.move(0, -4);"}],"scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

                      move the camera upper-left position by the specified offset.

                      ","params":[{"identifier":"x","optional":false,"description":"

                      horizontal offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      vertical offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ArMNl_uwU-9kMjCXzhiNl","name":"moveTo","brief":"","scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

                      move the camera upper-left position to the specified coordinates

                      ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gIYN62kL3zuJaSbBncG05","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                      onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                      ","params":[{"identifier":"response","optional":false,"description":"

                      the collision response object

                      ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                      the other renderable touching this one (a reference to response.a or response.b)

                      ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                      true if the object should respond to the collision (its position and velocity will be corrected)

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HyoPE-7gx8QRzQ4t36-tI","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                      OnDestroy Notification function
                      \nCalled by engine before deleting the object

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VJuJLMCQp6oiwV6BvfseR","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if this rectangle is intersecting with the specified one

                      ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      true if overlaps

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I4O6fVP4bz35OzA4ZEOAI","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                      restore the rendering context after drawing (automatically called by melonJS).

                      ","params":[{"identifier":"renderer","optional":false,"description":"

                      a renderer object

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"yowZ-OPBVu6kM-woNvL5g","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                      Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                      a renderer object

                      ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"c9G1wf0GprjkuTMhUA95h","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ngyLvXSRNx1W1zdPGx4F6","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                      reset the camera position to specified coordinates

                      ","params":[{"identifier":"x","optional":true,"default":"0","description":"

                      initial position of the camera on the x axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                      initial position of the camera on the y axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xjUAtGd1Oezru2gm3PLQ-","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                      resize the camera

                      ","params":[{"identifier":"w","optional":false,"description":"

                      new width of the camera

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                      new height of the camera

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this camera

                      ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NxHVXCZxnM05o5UmBkEHp","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Rotate this renderable by the specified angle (in radians).

                      ","params":[{"identifier":"angle","optional":false,"description":"

                      The angle to rotate (in radians)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                      an optional point to rotate around

                      ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u8aiccSNTb_ewi3MV528p","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                      scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                      a number representing the abscissa of the scaling vector.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                      a number representing the ordinate of the scaling vector.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V68O746y5mybUX3MrI36y","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                      scale the renderable around his anchor point

                      ","params":[{"identifier":"v","optional":false,"description":"

                      scaling vector

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aPLHbnkKYIxA_eB_igYCl","name":"setBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the camera boundaries (set to the world limit by default).\nthe camera is bound to the given coordinates and cannot mov...","params":[{"identifier":"x","optional":false,"description":"

                      world left limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      world top limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                      world width limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                      world height limit

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"D84Dl9tQcC604WgC6fVxz","name":"setDeadzone","brief":"","scope":"instance","see":["Camera2d.follow"],"type":"MethodDoc","description":"

                      change the deadzone settings.\nthe "deadzone" defines an area within the current camera in which\nthe followed ren...","params":[{"identifier":"w","optional":false,"description":"

                      deadzone width

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                      deadzone height

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"41mWb5jWhVnhTEfXy0LP8","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the renderable alpha channel value

                      ","params":[{"identifier":"alpha","optional":false,"description":"

                      opacity value between 0.0 and 1.0

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FdeECj0bFc_OXCDV7sw3F","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set new value to the rectangle shape

                      ","params":[{"identifier":"x","optional":false,"description":"

                      position of the Rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      position of the Rectangle

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                      width of the rectangle, or an array of vector defining the rectangle

                      ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                      height of the rectangle, if a numeral width parameter is specified

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      this rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gli9yPg6FzNcmykoft49K","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                      set the vertices defining this Polygon

                      ","params":[{"identifier":"vertices","optional":false,"description":"

                      array of vector or vertice defining the Polygon

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                      this instance for objecf chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hC7oYiYj7wfupOFaFR7t5","name":"shake","brief":"","examples":[{"caption":"","code":"// shake it baby !\nme.game.viewport.shake(10, 500, me.game.viewport.AXIS.BOTH);"}],"scope":"instance","type":"MethodDoc","description":"

                      shake the camera

                      ","params":[{"identifier":"intensity","optional":false,"description":"

                      maximum offset that the screen can be moved\nwhile shaking

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

                      expressed in milliseconds

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

                      specify on which axis to apply the shake effect (see {@link Camera2d.AXIS})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                      callback once shaking effect is over

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"force","optional":true,"description":"

                      if true this will override the current effect

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"JqWVG5euq6dkAmExbd8tz","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      Shifts the Polygon to the given position vector.

                      ","params":[{"identifier":"x","description":"

                      x coordinate or a vector point to shift to

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FXwilrY65lf1p9Msp7GLp","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                      apply a 2d projection to this shapen

                      ","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"atEguHXsf0GcMSXMXSqwA","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                      apply an isometric projection to this shape

                      ","params":[],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZZ96Zu54LORlSxuriJ-h5","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Returns a polygon whose edges are the same as this box.

                      ","params":[],"returns":[{"description":"

                      a new Polygon that represents this rectangle.

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"atVVAU2Zp4PhHh_6D1wR1","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                      multiply the renderable currentTransform with the given matrix

                      ","params":[{"identifier":"m","optional":false,"description":"

                      the transformation matrix

                      ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KnbhnblskexyRIKm3zHOs","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                      translate the Polygon by the specified offset

                      ","params":[{"identifier":"x","description":"

                      x offset or a vector point to translate by

                      ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                      y offset

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      Reference to this object for method chaining

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dmRHwYtL5W3Ac0AmoFMjM","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

                      unfollow the current target

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6nykbVpHH-rGef4E3uxSh","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                      merge this rectangle with another one

                      ","params":[{"identifier":"rect","optional":false,"description":"

                      other rectangle to union with

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      the union(ed) rectangle

                      ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ENEYNyZPV2qH8WmsVmtkX","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                      update function (automatically called by melonJS).

                      ","params":[{"identifier":"dt","optional":false,"description":"

                      time since the last update in milliseconds.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if the renderable is dirty

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SJo7AFKsZoiyQnYHcHNmT","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                      update the bounding box for this shape.

                      ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                      update the bounds size and position in (world) absolute coordinates

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                      this shape bounding box Rectangle object

                      ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DYNBrZ1yViqdmpAyn0mkT","name":"worldToLocal","brief":"","scope":"instance","type":"MethodDoc","description":"

                      convert the given world coordinates into "local" (screen) coordinates

                      ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                      an optional vector object where to set the converted value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      a vector with the converted local coordinates

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lt7rpCZm5G6MUaK_BKyQO","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                      called when the anchor point value is changed

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the new X value to be set for the anchor

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the new Y value to be set for the anchor

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"stWQentxbw-U-BeVi-f3m","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

                      a canvas renderer object

                      ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"0MuhQm3umRxeds94yIv3R","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                      the default method to sort object ("sorting", "z-buffer")

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g7HDY_rW08vo_kkY7nfgP","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      the requested video size ratio

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ZTaSCK3gFfyO04re4qtS","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      return the height of the canvas which this renderer draws to

                      ","params":[],"returns":[{"description":"

                      height of the system Canvas

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uH9umdHHFWjC6uK71groD","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      true if the current rendering context is valid

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rNgVr_srygQdL6ruDTf5Z","name":"lineWidth","brief":"

                      sets or returns the thickness of lines for shape drawing

                      ","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"twe_cgR_EKNB4gnueLTIY","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      The Path2D instance used by the renderer to draw primitives

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t1rW0n4hNhz-YAfS7vweL","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      The renderer renderTarget

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aOfFem_DU3r6i-FXsNK4j","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                      the scaling ratio to be applied to the main canvas

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-CmZMovWlQ4ClbKz4k4YC","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      The given constructor options

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z08I-kZj2g_5Dhz0TGsvB","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                      The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JdhZFWQy7-D4N5dAJY33H","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      return the width of the canvas which this renderer draws to

                      ","params":[],"returns":[{"description":"

                      width of the system Canvas

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IYztxx9Fi_0lnxvP3WOPG","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

                      starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LAbRNb2_JcXb8YBM1voDW","name":"clear","brief":"

                      prepare the framebuffer for drawing a new frame

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AtE2W2Q3ZP6-Hr45r2chh","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Clears the main framebuffer with the given color

                      ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

                      CSS color.

                      ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

                      Allow transparency [default] or clear the surface completely [true]

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_sKh2O7fh0moBKkQtp3wS","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

                      disable (remove) the rendering mask set through setMask.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6j_6DTqExBoZzGKgsvQ_n","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

                      ","params":[{"identifier":"x","optional":false,"description":"

                      x axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      y axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                      The rectangle's width.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The rectangle's height.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qtFqY1O5DcADW_hTz86RF","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                      clear the rendering tint set through setTint.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sXI4cLd3GrwwvoISEM0nG","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iaF-zqSTLQ1nTjrUdhBnd","name":"closePath","brief":"

                      add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CYNEe1Rbh0ueb4UsZhKe4","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                      optional parameters for the renderer

                      ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wM8UdFN1x70XuILJv1SgE","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

                      Create a pattern with the specified repetition

                      ","params":[{"identifier":"image","optional":false,"description":"

                      Source image to be used as the pattern's image

                      ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

                      Define how the pattern should be repeated

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AtH9o6stMDM9emBmRvZgo","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

                      Draw an image onto the main using the canvas api

                      ","params":[{"identifier":"image","optional":false,"description":"

                      An element to draw into the context.

                      ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

                      The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

                      The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

                      The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

                      The height of the sub-rectangle of the source image to draw into the destination context.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

                      The X coordinate in the destination canvas at which to place the top-left corner of the source image.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

                      The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

                      The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

                      The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Aq-Txa0y0-_PMceYCdpwo","name":"drawPattern","brief":"","scope":"instance","see":["CanvasRenderer#createPattern"],"type":"MethodDoc","description":"

                      Draw a pattern within the given rectangle.

                      ","params":[{"identifier":"pattern","optional":false,"description":"

                      Pattern object

                      ","dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NHXWvVU1zvlpS0fH94bLh","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                      fill the given shape or the current defined path

                      ","params":[{"identifier":"shape","optional":true,"description":"

                      a shape object to fill

                      ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"TkWYjv_ihht61j7vzTYlG","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Fill an arc at the specified coordinates with given radius, start and end points

                      ","params":[{"identifier":"x","optional":false,"description":"

                      arc center point x-axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      arc center point y-axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                      start angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                      end angle in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                      draw arc anti-clockwise

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"daY696P-Q7iG7JSV4aJD8","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Fill an ellipse at the specified coordinates with given radius

                      ","params":[{"identifier":"x","optional":false,"description":"

                      ellipse center point x-axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      ellipse center point y-axis

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                      horizontal radius of the ellipse

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                      vertical radius of the ellipse

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"U3HfZ6wH8tP5wKijjOZXC","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Fill a line of the given two points

                      ","params":[{"identifier":"startX","optional":false,"description":"

                      the start x coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                      the start y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                      the end x coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                      the end y coordinate

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EcVjkqUhNf7hGmdmaeYee","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Draw a a point at the specified coordinates

                      ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CnAINWpErH-pCzrNY_x4m","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Fill the given me.Polygon on the screen

                      ","params":[{"identifier":"poly","optional":false,"description":"

                      the shape to draw

                      ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"u4UDt34z2AE8ZlOSKaKAU","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Draw a filled rectangle at the specified coordinates

                      ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"z016kcFOtz5laS05WaleU","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Draw a rounded filled rectangle at the specified coordinates

                      ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RoFZm-kT6E0lwXsuRCILD","name":"flush","brief":"

                      render the main framebuffer on screen

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bykjAEmw2Z4OgeXgb1Rqh","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                      returns the current blend mode for this renderer

                      ","params":[],"returns":[{"description":"

                      blend mode

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"XAaNLetUnpQwqkfnal0yW","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return a reference to the current render target corresponding canvas which this renderer draws to

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JqU0EwrbrizXz9uFsuSU3","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                      get the current fill & stroke style color.

                      ","params":[],"returns":[{"description":"

                      current global color

                      ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xUkGl3oRE67pUmYbRxh_2","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return a reference to the current render target corresponding Context

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"PdNE3C1t_BgN0EalOSGeL","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                      Return the global alpha

                      ","params":[],"returns":[{"description":"

                      global alpha value

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WoDVknOMCj-sv0gHLLz13","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","scope":"instance","see":["height"],"type":"MethodDoc","description":"

                      return the height of the system Canvas

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f9TDFa3cWYbpmCCSHNy0G","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                      return a reference to the screen canvas

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qpRNMEA4oqQ624duEKo36","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                      return a reference to the screen canvas corresponding 2d Context
                      \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1Uow-ATGr1F_2Z7sObZhz","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                      return the current global alpha

                      ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4__7_AybQwOuhmh86Hg-i","name":"lineTo","brief":"

                      adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

                      ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"LxPXf4aulvaV6VzX42Ctc","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                      begins a new sub-path at the point specified by the given (x, y) coordinates.

                      ","params":[{"identifier":"x","optional":false,"description":"

                      The x axis of the point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      The y axis of the point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"S2UPhJso72357PnXHKpRu","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                      check if the given rect or bounds overlaps with the renderer screen coordinates

                      ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                      true if overlaps

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q2oRiNr890CXg4ByzODBE","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

                      ","params":[{"identifier":"x","optional":false,"description":"

                      The x axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      The y axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                      The rectangle's width.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The rectangle's height.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iRvbdfHYGykkuXhA-ICYP","name":"reset","brief":"

                      Reset context state

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TcyeSt-v_mflYf9CtN8_E","name":"resetTransform","brief":"

                      Reset the canvas transform to identity

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m7F7zxDq-VZa-Ck_L6AHJ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                      resizes the system canvas

                      ","params":[{"identifier":"width","optional":false,"description":"

                      new width of the canvas

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      new height of the canvas

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9ONojRrx13UodsAAkLYY-","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                      restores the most recently saved renderer state by popping the top entry in the drawing state stack

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YVncxb5VmaadR_khk5KHu","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                      adds a rotation to the transformation matrix.

                      ","params":[{"identifier":"angle","optional":false,"description":"

                      the rotation angle, clockwise in radians

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"z2b3-Ar89E7cxfMfxbdyl","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                      adds a rounded rectangle to the current path.

                      ","params":[{"identifier":"x","optional":false,"description":"

                      The x axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      The y axis of the coordinate for the rectangle starting point.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                      The rectangle's width.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                      The rectangle's height.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                      The corner radius.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MNPejcVBz2S7AIasTaDb3","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                      saves the entire state of the renderer by pushing the current state onto a stack.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y_N9axLF-yXUZYm9OClK6","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                      adds a scaling transformation to the renderer units horizontally and/or vertically

                      ","params":[{"identifier":"x","optional":false,"description":"

                      Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HnKYO7ZYXK-lvnH_4bk97","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                      enable/disable image smoothing (scaling interpolation) for the current render target

                      ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"U89eX7CkoHYNUOK4-v1Jm","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

                      set a blend mode for the given context.
                      \nSupported blend mode between Canvas and WebGL remderer :

                      \n
                        \n
                      • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                        blend mode : "normal", "multiply", "lighter, "additive", "screen"

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c04TxYuYoCgEMPZYNztV8","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                        ","params":[{"identifier":"color","optional":false,"description":"

                        css color value

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"uJ4Rg9lQQtd2wOqYQ1otW","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Set the global alpha

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        0.0 to 1.0 values accepted.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dt8rdREgaywEeZtpK3KrH","name":"setLineWidth","brief":"","access":"public","deprecated":"since 17.3.0","scope":"instance","see":["lineWidth"],"type":"MethodDoc","description":"

                        return the height of the system Canvas

                        ","params":[{"identifier":"width","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"xF8Bt-VcEgg7wpnhBehSq","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                        the shape defining the mask to be applied

                        ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                        either the given shape should define what is visible (default) or the opposite

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"R3OLwpX0NGcV-cHpdmWw2","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set/change the current projection matrix (WebGL only)

                        ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CVwq3VGH1IbcDry0dVDcQ","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set a coloring tint for sprite based renderables

                        ","params":[{"identifier":"tint","optional":false,"description":"

                        the tint color

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                        an alpha value to be applied to the tint

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0QOZrKxxu4dkZ3QjjDPcx","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                        ","params":[{"identifier":"a","optional":false,"description":"

                        a matrix2d to transform by, or a the a component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                        the b component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                        the c component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                        the d component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                        the e component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                        the f component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3NJtkU-mDIB5WAhxZjpEx","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                        stroke the given shape or the current defined path

                        ","params":[{"identifier":"shape","optional":true,"description":"

                        a shape object to stroke

                        ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"2N_1AvDN3o_QzH9pDD4uf","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke an arc at the specified coordinates with given radius, start and end points

                        ","params":[{"identifier":"x","optional":false,"description":"

                        arc center point x-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        arc center point y-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                        start angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                        end angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                        draw arc anti-clockwise

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        also fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"iQwfTZlvmxaKE-wpWan7Q","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke an ellipse at the specified coordinates with given radius

                        ","params":[{"identifier":"x","optional":false,"description":"

                        ellipse center point x-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        ellipse center point y-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        horizontal radius of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        vertical radius of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        also fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"9ZK-vLFdsGfNgmP1PlLGd","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke a line of the given two points

                        ","params":[{"identifier":"startX","optional":false,"description":"

                        the start x coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                        the start y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                        the end x coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                        the end y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IUsf_rnja7YqOEDNWabLk","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke a Point at the specified coordinates

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"O_5g4z2gK5FB7IeXEvsKg","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke the given me.Polygon on the screen

                        ","params":[{"identifier":"poly","optional":false,"description":"

                        the shape to draw

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        also fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"F1M3Fx6Mty-ym-4Iefshj","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke a rectangle at the specified coordinates

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        also fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6pTtkcyYih1cpvC1OGQxI","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Stroke a rounded rectangle at the specified coordinates

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        also fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"OI0IgKk8FmKTxvrY0zMIU","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        tint the given image or canvas using the given color

                        ","params":[{"identifier":"src","optional":false,"description":"

                        the source image to be tinted

                        ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                        the color that will be used to tint the image

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                        the composition mode used to tint the image

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        a new canvas or offscreencanvas (if supported) element representing the tinted image

                        ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"a_YKvjWsdIOLMelQEKroB","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates a Blob object representing the last rendered frame

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a Blob object representing the last rendered frame

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uol8bkzvl68GTGwjnwf85","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                        returns a data URL containing a representation of the last frame rendered

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a string containing the requested data URL.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W60hxmFC-cRL3XAJHwY9P","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning an ImageBitmap.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jJv3_eQnDheZ_59pfZVlD","name":"transform","brief":"","scope":"instance","see":["{@link CanvasRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                        Multiply given matrix into the renderer tranformation matrix

                        ","params":[{"identifier":"a","optional":false,"description":"

                        a matrix2d to transform by, or a the a component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                        the b component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                        the c component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                        the d component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                        the e component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                        the f component to multiply the current matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rSbTVUk9k37CDqEFHQ3KZ","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds a translation transformation to the current matrix.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        Distance to move in the vertical direction. Positive values are down, and negative are up.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"KaDQ62mxsge5yB3jDUG_l","name":"CanvasRenderTarget","brief":"

                        CanvasRenderTarget is 2D render target which exposes a Canvas interface.

                        ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"gxpx3fxFnUW47t47LAGhA","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The height of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YAbA9fvxFTmDfnX0hF9XI","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The width of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S82M-TA1Z3RmTk51MwP92","name":"clear","brief":"

                        Clears the content of the canvas texture

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"An4NqHvYuOlMqnjxTik_y","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

                        the desired width of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the desired height of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

                        The attributes to create both the canvas and context

                        ","dataType":{"tokens":[{"value":"Settings","kind":"canonical"},{"value":"Settings","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

                        the context type to be created ("2d", "webgl")

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.preferWebGL1","optional":true,"default":"false","description":"

                        set to true for force using WebGL1 instead of WebGL2 (if supported)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.transparent","optional":true,"default":"false","description":"

                        specify if the canvas contains an alpha channel

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

                        will create an offscreenCanvas if true instead of a standard canvas

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

                        Indicates whether or not a lot of read-back operations are planned

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

                        Whether to enable anti-aliasing, use false (default) for a pixelated effect.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"cszqltAm37JluYATnqQWr","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

                        The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        The ImageData extracted from this CanvasRenderTarget.

                        ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3tqFUo41o9PU7j94PB-OT","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        invalidate the current CanvasRenderTarget, and force a reupload of the corresponding texture\n(call this if you modify the ...","params":[{"identifier":"renderer","optional":false,"description":"

                        the renderer to which this canvas texture is attached

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"QRy-RzbUubO136LsBDJda","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Resizes the canvas texture to the given width and height.

                        ","params":[{"identifier":"width","optional":false,"description":"

                        the desired width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the desired height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Y4gEVT3B5HoUoXANVtdyL","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                        enable/disable image smoothing (scaling interpolation)

                        ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

                        whether to enable or not image smoothing (scaling interpolation)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"2G0SMeg6rKsZGbkMYIUd5","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderTarget.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates a Blob object representing the image contained in this canvas texture

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a Blob object representing the image contained in this canvas texture

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5ITgUV0nmSfKHbpX_jjRJ","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                        returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a string containing the requested data URL.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mh8lhcyAsURSLa4_fzds3","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderTarget.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates an ImageBitmap object from the most recently rendered image of this canvas texture

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning an ImageBitmap.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"8WCS6b_03DgAQ3LjuKuLS","name":"CanvasTexture","brief":"","deprecated":"since 17.1.0","see":["CanvasRenderTarget"],"type":"ClassDoc","params":[],"returns":[],"extends":["CanvasRenderTarget"],"implements":[],"members":[{"id":"zsmHthob7kmvKwixO_uUg","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The height of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NLYWX3KS3w_2qgsqWdwNx","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The width of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K9inRgrso809C2e1ouxPw","name":"clear","brief":"

                        Clears the content of the canvas texture

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aZSpkTB5p71KUuIznUrM3","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

                        the desired width of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the desired height of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

                        The attributes to create both the canvas and context

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

                        the context type to be created ("2d", "webgl", "webgl2")

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

                        will create an offscreenCanvas if true instead of a standard canvas

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

                        Indicates whether or not a lot of read-back operations are planned

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

                        Whether to enable anti-aliasing, use false (default) for a pixelated effect.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"G1Oy8yyk52p8S39V5SGhE","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

                        The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        The ImageData extracted from this CanvasRenderTarget.

                        ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XLUvDh6hW16B3Q9q1OgHh","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        invalidate the current CanvasRenderTarget, and force a reupload of the corresponding texture\n(call this if you modify the ...","params":[{"identifier":"renderer","optional":false,"description":"

                        the renderer to which this canvas texture is attached

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"VGNtKdcXyc_ccTKwsasYu","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Resizes the canvas texture to the given width and height.

                        ","params":[{"identifier":"width","optional":false,"description":"

                        the desired width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the desired height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2ssNqajaPOliPMddvWhtc","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                        enable/disable image smoothing (scaling interpolation)

                        ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

                        whether to enable or not image smoothing (scaling interpolation)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZEVLWhyLXc-Qr8Byk5k3S","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderTarget.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates a Blob object representing the image contained in this canvas texture

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a Blob object representing the image contained in this canvas texture

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N75JwqA6Wh15b2oELE6Ee","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                        returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a string containing the requested data URL.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GeUYsEkzXeV4tC7k8YJWp","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderTarget.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates an ImageBitmap object from the most recently rendered image of this canvas texture

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning an ImageBitmap.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"iUW6ctFTyms7g_Pm7Y2nK","name":"Collectable","brief":"","type":"ClassDoc","description":"

                        a basic collectable helper class for immovable object (e.g. a coin)

                        ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"hcATs9IujbTD2nWkYCoEQ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wiXjU0O8fHRI6SguM_uHd","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nioqSWhVhnj0IMxtU7DM0","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9oZUl4Dl92eJT1O_aAgE9","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LUxiEhn8gYAw8r_Jx4yLZ","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RaNjdiV793mb925BzK-MA","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gIk7B67fXce2abYFgu3_G","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xo-NHuqysdkiH2ln5N1KG","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KgHVjhpSq24mg5k6_vyNJ","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w7gpYHKxE6Z7L1dRDilSl","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3jvy-7o0spQximS1Mcuxj","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"llinoWP-7uWMztnu-4ogo","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A1WaReCPwjFaEnNAObFZh","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J-h8HcMRTNT_CwoIar4zk","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P-gA5YdFEVf8GSxF6EWRJ","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ynuGiu7afzCJujWRv2EfR","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sV5hcaTB72GAeZXQ4d8Nh","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5yZbBJkTQscQeRScS-20q","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"35x_pdJA8Yv9taoIDO3DQ","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EyKdle2NxXrMpioohbPop","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"996hlcARvXOHsZwHhyK63","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tgMEEOX_cWYBiItRG7Dxt","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"unBCbCG2RL4DF8l7JCRD2","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hdwzbu_764Pd8_wpQWORP","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ya5woLR7whdmlGvybub-K","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9DJmkqe6KYVe0oVQTFL8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gQpC4q1n_OKhSMhzYtN7W","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d4_IKoG3V8beyMP0YBtVw","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oLsUN_7CXU90YL97MUaPK","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                        global offset for the position to draw from on the source image.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6fjkv21BD44K6rDr_Y9id","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rXRQGR3DudLn0chcMxFZY","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TZxnZhBJAJ2xdpZER5FII","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5tI0afwSS1D2w4mgLuSeD","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rdrnOv0CRBbPtWdx43Wk5","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yw7ujesTXnPt2-UctoEsN","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iPiDT4HJ5fqbdNVb8cf1W","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vmp2lVXPDCy-JeiKPDNHI","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JYi5fpKIQHGJB70PHLDcx","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bJnfp3JMrC3lEZhjZIxnX","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V3-42XaFAoEuaXAArALeU","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vp5mcJESZyGF0kUNBQed2","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kgc8vVJe_jCp8rw_f3mh8","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        add an animation
                        \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                        list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                        ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                        cycling speed for animation in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        frame amount of frame added to the animation (delay between each frame).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vcqEQ1lsCMEKN-qbaX2et","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LkIb6qqVbetbMuSxS1Vyc","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iU4ndnsMWTE1Ic1sTuy1n","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yQr52bxuWJ98-PhKMO9KM","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the collectable

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the collectable

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        See {@link Sprite}

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"OPthELR5zNyqrWzwG94ze","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sIWNjEFf5ghOCgSa5z2ma","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7PomDoY6_2z3opVuyvB5u","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WX-CJ3hbtClly_qf1eyRn","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a0uqzfTMg12EpuxhjdQ6H","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                        make the object flicker

                        ","params":[{"identifier":"duration","optional":false,"description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                        Function to call when flickering ends

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Up6SeKOA5UK27OH2HlIHJ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YxpX7a4Nwju-2yEBUbssk","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jtPJAqTJAcHmyGEB7vTtN","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jj8qfgLon1LUXHxg8LqMU","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mTquF3L07sLipVVxtnV3A","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current animation frame index.

                        ","params":[],"returns":[{"description":"

                        current animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"apKdUPW8gi4dBiQxZcstB","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"GqQmhXhr-PcKwu0AJZ3Zt","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7Hr-AAfH7Zdbk6wpWZ0mT","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"V2aesEZHYE0dDpHOQGD0M","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        return true if the specified animation is the current one.

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VqVYjF3A-gS1pY3WUR80q","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eM_HJhi2rUmGaA4CYh76q","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the flickering state of the object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"klLLA3R6c9jmimPQ4h11H","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"00fUHRA9gAA-eT9UDu8qe","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"O346721NxrU05mkX6Ta2N","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9u3MzCPiXCjl3jKImI9Af","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nLyx8A3R8TX2Vq5gIdNjr","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9r27mppcsx-eClA3oEMf-","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YWULsrjP3HOImM0gn2uDL","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"YqyP2olXwTWlddk47koox","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"1vqx4GjpPLUJI_EuY1s3k","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cHrUIw3LXcjOY84mLoWAl","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uai-k6NpsW-ecJfEGn1Or","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        reverse the given or current animation if none is specified

                        ","params":[{"identifier":"name","optional":true,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nhowAAUCD5DWCuKCJ5kc0","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xIbaiIbZzuraRk97YyKlS","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IApbJ6vTDrmmu2zR8Py_F","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1iLZ482hyXBQveCNCTi2-","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                        force the current animation frame index.

                        ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                        animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kYZ22bpIHHAS51ALNu_O2","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                        set the current animation\nthis will always change the animation & set the frame to zero

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                        animation id to switch to when complete, or callback

                        ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                        if false will reset the elapsed time counter since last frame

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZTra0UuYkdBwrJ9MR-2Ln","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"M6z_LuhFZzyhGISfQZVhJ","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                        change the current texture atlas region for this sprite

                        ","params":[{"identifier":"region","optional":false,"description":"

                        typically returned through me.Texture.getRegion()

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y0NRI8vf36WQHhYFwbAhO","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_t8Iuy1qrS6a4fp1n_B8B","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DMSguZZ4iZgIkKlBfJJjQ","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2YjjngoqBs6zmjcVtEL_s","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"05Ynoxik21knyOHDHnCW-","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QABU0AgUmYJapP2Q5gSja","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X11vNe7PHizrVyolRCo4-","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mF8jNnY8cYKa__11hixlI","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0YFMwYNPfZZNpBcexhx2O","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3UccaJvXbFcQgZt1y08bc","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aql1jZDkmBQ4RmBpFzNet","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this srite (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6EZBARi6P0QvtyXhnFSSM","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        update function.
                        \nautomatically called by the game manager {@link game}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Sprite is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Wj1t1kfnkUw-KNJ3ai9HB","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"bMqm1e0DbixDeMwVGJdXu","name":"Color","brief":"","type":"ClassDoc","description":"

                        A color manipulation object.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"MZHxu6_lrCcqinAlpoR90","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Alpha Component [0.0 .. 1.0]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jIeVeFhiXeMqTAN3hH4te","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Blue Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8FYO6DntQXBzWKowEUYZQ","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Green Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TaXs5TLSRR86gyDTqm4M7","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Red Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VU3scwuyAQGypuIbHskLt","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Blend this color with the given one using addition.

                        ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1dHyKic5sCLSZUJcNVvSq","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Create a new copy of this color object.

                        ","params":[],"returns":[{"description":"

                        Reference to the newly cloned object

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZMNu3WXC-xNkkZ1avT8i8","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"r","optional":true,"default":"0","description":"

                        red component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","description":"

                        green component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":true,"default":"0","description":"

                        blue component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                        alpha value [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yAsOUb2Eo9z7eUhZlNThI","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copy a color object or CSS color into this one.

                        ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"getUAiQ3pu6aHVuFCeY9b","name":"darken","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Darken this color value by 0..1

                        ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-tYDZzb-twjBFsstLUwM_","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Return true if the r,g,b,a values of this color are equal with the\ngiven one.

                        ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QDTuMZi_8oo_0ubowAjlJ","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Linearly interpolate between this color and the given one.

                        ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                        with alpha = 0 being this color, and alpha = 1 being the given one.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"22sAt1EbKfViS49ePWKbV","name":"lighten","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Lighten this color value by 0..1

                        ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bwFRSXoIqKL9H_87PU3JN","name":"parseCSS","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Parse a CSS color string and set this color to the corresponding\nr,g,b values

                        ","params":[{"identifier":"cssColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sSGvIs2HPoY3N-oGrF7AR","name":"parseHex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Parse a Hex color ("#RGB", "#RGBA" or "#RRGGBB", "#RRGGBBAA" format) and set this ...","params":[{"identifier":"hexColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"argb ","optional":true,"default":" false","description":"

                        true if format is #ARGB, or #AARRGGBB (as opposed to #RGBA or #RGGBBAA)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HcMlG4CDgM6ndIQmFOIpe","name":"parseRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Parse an RGB or RGBA CSS color string

                        ","params":[{"identifier":"rgbColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8LzYBmCSl9gaxOW_5SS2E","name":"random","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Generate random r,g,b values for this color object

                        ","params":[{"identifier":"min","optional":true,"default":"0","description":"

                        minimum value for the random range

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":true,"default":"255","description":"

                        maxmium value for the random range

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DXjsRDWgOVciRBAKHq1C1","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Set this color to the specified value.

                        ","params":[{"identifier":"r","optional":false,"description":"

                        red component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

                        green component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

                        blue component [0 .. 255]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                        alpha value [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VO1kcxn65FnLjdP2AEyLP","name":"setFloat","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set this color to the specified normalized float values

                        ","params":[{"identifier":"r","optional":false,"description":"

                        red component [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

                        green component [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

                        blue component [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                        alpha value [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kw9HJreoE6GCjPpwpmHyM","name":"setHSL","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set this color to the specified HSL value

                        ","params":[{"identifier":"h","optional":false,"description":"

                        hue (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

                        saturation (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"l","optional":false,"description":"

                        lightness (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QhUlnNJ0SFo1XysbydXM6","name":"setHSV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set this color to the specified HSV value

                        ","params":[{"identifier":"h","optional":false,"description":"

                        hue (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

                        saturation (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

                        value (a value from 0 to 1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZIuTi_6q8B_T1AXwwf6l-","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return an Float Array representation of this object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wayu8ZCKY9GBYte4iWaeH","name":"toHex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the color in "#RRGGBB" format

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"bTnrlGQiDm_NUmi352g5K","name":"toHex8","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Get the color in "#RRGGBBAA" format

                        ","params":[{"identifier":"alpha","optional":false}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"zlnSN3DuvaqEd7_4sWC3u","name":"toRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Get the color in "rgb(R,G,B)" format

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"VFTn7-C8Qzq0Z5CKHPy5Z","name":"toRGBA","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Get the color in "rgba(R,G,B,A)" format

                        ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

                        alpha value [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"A2TL3vWEtCuafbKA794_7","name":"toUint32","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Pack this color RGB components into a Uint32 ARGB representation

                        ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

                        alpha value [0.0 .. 1.0]

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"vHUewChU2pyIlsDH2TYfD","name":"ColorLayer","brief":"","type":"ClassDoc","description":"

                        a generic Color Layer Object. Fills the entire Canvas with the color not just the container the object belongs to.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"B7GoPP039ntpgeVyxlLtS","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yWrIfPV5b_gsXlrEPjs5Y","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BpW-9ZeHaf23lR9Cw29X4","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kQrmM4NqvZudfoQUZhi1y","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X9fXO9HFZ-dewq2t4k-8w","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nurAi4Q0v-qGr5m0rLBhg","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hcY2kwaET58QILvopXRPR","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pe9WWRGwTfSvKNpzdbKFP","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3-MNrfdAbS7fOM_DM-w6e","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IRExYLiOfb4e6FqS2a7rd","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vCH6URrnBSJIIYhPXVnDu","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the layer color component

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AL3DXDk5Ee_emMF_uLX2a","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xkbiBCqiTS-8ml5IYKfne","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PeMC4KgkCk2GXMdqyG_U_","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4SqQ1g9vHH2PPYGXhYuui","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v66h4eDSVMH4Ku41AYuZ9","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vh6I3wCPS7nreHQcgfj-U","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nr45srMsycEQonAhqaSJc","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"36VRa0gdlBMghDu_MEwuP","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PCOvj1zoXrhbnwHj-7I4V","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D6UCRinLlqUMvJBryu07v","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ab6q0XTlxAc1QoXSmY8F7","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uiqCqpXry7ZGO7D4ePEfh","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rWVErafkLdc-eLYx9_wHG","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"snRf5DOc8O28CEI1eYZZI","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6bXC6HCboCRTaYmnq8PZw","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7-VBv783VYFoTTlJKZbAU","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9QgrR-PT5xm0ZWiHfVrN","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YWx7R6gz89w_EppMcoVWb","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-JIyQCAlci7tgsVnziDON","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9inFrqnFf-keT953aTA5F","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sht8OKNy3oMa1mlIPF9o1","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h6CB2NkMHh5VG2Jzxvmaa","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R_1lOkcYUV_r1ZLVc4gJB","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5IpLylUs0uOrIhXRH7WbV","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J1h9YSYdd6_PlC4gPb6AC","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-VAQwPkY-FN08ziRsdMC9","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5v1xm0LYMgcnLzpWQUH9R","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L4jaXhDI7MYhLRapAr904","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NSBb5BWfjO8lFtN9dyX52","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jSv4KHNpZ08k8w_-H4I1G","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"name","optional":false,"description":"

                        Layer name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

                        CSS color

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"z ","optional":true,"default":" 0","description":"

                        z-index position

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WyubX9js9fgMLw31KgEDw","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QKoEQjkBcFsRGSGJz2DzA","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TW7hBy2HWTbdCk-2u7eA7","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"td4YZ1rV6ZmIm3sqxi4Nv","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tspyBFKr-B1oSdxjEcL59","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3fx-KueAvj9loUNevS2F8","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ddSlJ_VmkYneENLsZuT7A","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uj4wrVvT1u0-YKKqFUAcT","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V5B_wCq104DURR-FWoPDg","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"g3qtbDrKB5u4IY1dArh_q","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q6dVG7U-NNB2XRthWSP2j","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7RG9qgha3siKvUURoBaH6","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cCeE4Ip-599XpfDNAiXcd","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eMeeiV-0y7ckfgIQF8Upn","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0v49n8Vbma2FwG49XDMwQ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y9ax23JySwI3tt-WscVjH","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fouN4Zbqc5Pi1giLqo8NL","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"PtmbDdDq1yEwywcIh9UhO","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"hJZ1hB-KHeCixHGnHFTni","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YEKHcrXVsfXkyWnNBkyuj","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PDBX5Vg_cTeKAE2W1Pp3W","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rBXqYUa9Ya6UkEoMx8MHV","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-VSxCxe4HK5g6efhwkZUI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UcrbLYe512QPGDS61MxG5","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UYZ3cnZQdAqO3PVFYThvK","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SN5_G4DW45IuLaXceu0Yg","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UjIbYHsgkOTLrWQZu1S9a","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MQ5yOO6jgb13Phbqqfut1","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TEMaGdv63BEDHBbasTEEo","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M-MOjs2XdZst7YGy260rF","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xi1FtQFoMQmFP6d1GJKI8","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qx7eZpJELKGtvsSvRcPMe","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BQCBG2Y8KQqBgkzjy4Psg","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_WvEY4kQhiIq6dLmGWuo0","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"A6268ZiZLQ1s7003y7euD","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gojai_jW6z5n1JT8eqD2X","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this color layer (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6d5l0jGyY602zTIP7hxFg","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"q9lKsngwpa9159RWTUo_w","name":"Compositor","brief":"","type":"ClassDoc","description":"

                        A base Compositor object.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"MSLksRhWd3OeCXeFyVV4e","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8q6QbC9wKfbstXFb_8Nbj","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ho68YHRh5dhYxw8uyY5Z","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SXKR21hDbQHMHvKSU-RmO","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                        primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A7EvTSVl-7guM7GaAFDwM","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bGDr2TG8fg-IvgvzwJkhv","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o67QOQIY1zi05sH3dgju3","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sNv6_kRVRcPhROouiOQEG","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add vertex attribute property definition to the compositor

                        ","params":[{"identifier":"name","optional":false,"description":"

                        name of the attribute in the vertex shader

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                        number of components per vertex attribute. Must be 1, 2, 3, or 4.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                        data type of each component in the array

                        ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                        whether integer data values should be normalized into a certain range when being cast to a float

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                        offset in bytes of the first component in the vertex attribute array

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hND7YODibr9bTgUjeJFJR","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vf853oM5Q4ctjBir1i_qK","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"renderer","optional":false,"description":"

                        the current WebGL renderer session

                        ","dataType":{"tokens":[{"value":"WebGLRenderer","kind":"canonical"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        additional settings to initialize this compositors

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.attribute","description":"

                        an array of attributes definition

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.name","description":"

                        name of the attribute in the vertex shader

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.attribute.size","description":"

                        number of components per vertex attribute. Must be 1, 2, 3, or 4.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.type","description":"

                        data type of each component in the array

                        ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.normalized","description":"

                        whether integer data values should be normalized into a certain range when being cast to a float

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.attribute.offset","description":"

                        offset in bytes of the first component in the vertex attribute array

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shader","description":"

                        an array of attributes definition

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.shader.vertex","description":"

                        a string containing the GLSL source code to set

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.shader.fragment","description":"

                        a string containing the GLSL source code to set

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"f4Se5aj74TTWmdKudJbqq","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Flush batched vertex data to the GPU

                        ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                        the GL drawing mode

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NhJTQRCCrEkJcwhH_Sw1v","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set/change the current projection matrix

                        ","params":[{"identifier":"matrix","optional":false,"description":"

                        the new projection matrix

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Rflu_5iBjI8h_0GkOnO9P","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                        Select the shader to use for compositing

                        ","params":[{"identifier":"shader","optional":false,"description":"

                        a reference to a GLShader instance

                        ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ESvsGD1hUFjU7SyrX4KFw","name":"Container","brief":"","type":"ClassDoc","description":"

                        Container represents a collection of child objects

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"5qterpPqP7DeYvbDNld5c","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X3kKtXvE3YYNUJMAxf3dy","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L6O8pki35XHRpn9oWg6Ky","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TAxmDuxOLL63iNmjPDcvx","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KoK1tMOTzqXaJDu9QLhQG","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the children z index should automatically be managed by the parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GT4b1KOBWqm2tnOng-zzu","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the children list should be automatically sorted when adding a new child

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HiRcku7qknv4n054LzWgP","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZDA2_LPL4CYCp31P6WWz-","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a background color for this container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qjUk5K3nXTpncxNj1hzCl","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"irXTJT-iuy52tT4sc4xR5","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LpJy3c5xvgYLtZaVbRzW_","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XxezVH8lWbiKXtjVzYK4n","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OJ97rqmqOy7FUypzJoA1j","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1LgN5zeWzrGObz1VbMmAJ","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the container draw operation should clip his children to its own bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z1_nuQ-S5mTpdhmRqANb1","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FgnuHmJx2799-7uo_kMtZ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0O2J5vVw7QEtFaqiM1zZN","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wobz2PXUKMeMMm-obdChH","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Odj7guzovD0UG7BQXXDD","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MzZAPuXT3Qf14C78mWyu2","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VAWbnHO9sdbSgVQpVxvHY","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dwzA0W-h5yvmfGv8qNAYF","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukCGrHZglmx8b7G9pIXF7","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T1bS0GPal73IfAGfB52FC","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H6O70fIteeG2M0vSA0WiD","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Df8F1Irc0VZq5WJ_9nH0X","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-PMJWWnf0ZzdEExHfGCoN","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AgDgNmiuFSPsa22OwQosU","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mAtRcgssFnEGCPHTdZ4Ox","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AxFnm0dyRL0DTSOhNdN2G","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z0ExbnK6amQgLgYG-UQMX","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JqtC44biTu5pnU0nSUx6n","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"voIcSYdlxgDXtLt9bQZwI","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jd5nDme_N_jyEm_7voSwG","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lsU47EFiwgIhs5HDCFRlj","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QLB_O3z3ugC9zbjYROAj1","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        whether the container is the root of the scene

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9YMijZnq59UFKI6YII5QB","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nxmZJJCQ9tM6csvW8fVnm","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                        The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rd_5ezp3GV2HYK7QCbzqq","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SWle7yE5TBhqGDhH146PZ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hf94nilI5xWdPQEAPoUC1","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UNUaiEAYlnw6fm5ZIJpFW","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KpWR-mhUvnViA0VEUHPyX","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WafI1DfVJvrGgIPTewrfj","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add a child to the container
                        \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                        forces the z index of the child to the specified value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the added child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lNjpyPOSEWNpoxYc5OYx_","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add a child to the container at the specified index
                        \n(the list won't be sorted after insertion)

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                        The index at which to insert the child

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the added child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RjTe1hzjoZB33XjoLqM93","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z8DCdg7VfRMcgtmEXAwp1","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8eA--S8E-SaOtrHmSeFrk","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_9qlRNIo3SzbII06bv0Y0","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                        position of the container (accessible via the inherited pos.x property)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                        position of the container (accessible via the inherited pos.y property)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                        width of the container

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                        height of the container

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AK_GqmdYOucX0XHHVcYPD","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UXVET4V5Gx-ktF04QYAYb","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9zE2A_QfLPZE2q75_vR95","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jba8gqT3GMLgQQDh3tmvR","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NO59Iah3-BvUAlZq0q09Z","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BxhbhX6o5L4ZrOuXdC4YV","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h5z2WExcdGuIObtK3tzrm","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                        The forEach() method executes a provided function once per child element.
                        \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                        fnction to execute on each element

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                        value to use as this(i.e reference Object) when executing callback.

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"zrw9Sjn6l2dM0hTJrklzY","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QfcLUPY97Y4MlHB3TiE0i","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SoXMX3ncfy1zNjNRGrBjF","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the Child at the specified index

                        ","params":[{"identifier":"index","optional":false,"description":"

                        The index of the child

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the child at the specified index

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bhup0R0V_gAdM3cN5-63l","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the child corresponding to the specified GUID
                        \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                        child GUID

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        corresponding child or null

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IvWsSRBTcpLvabm2_eqeV","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the list of childs with the specified name
                        \nas defined in Tiled (Name field of the Object Properties)
                        \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                        child name

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        Array of children

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"RR588TCE-letwUceUkADr","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                        return the child corresponding to the given property and value.
                        \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                        Property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        Value of the property

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        Array of childs

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"VmxeblfxXNewtDIa2nNvK","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the list of childs with the specified class type

                        ","params":[{"identifier":"classType","optional":false,"description":"

                        Class type

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Array of children

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"dRj0Ty0UUFbK9xQN4YsWw","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the index of the given Child

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                        index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EKEa3v7JxCqyGp2-NBag3","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return all child in this container

                        ","params":[],"returns":[{"description":"

                        an array of renderable object

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"y074-zStOaA8w1GRWf-_Q","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"xNEKCF_z3lVNNw66PI8DZ","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the next child within the container or undefined if none

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                        child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ylz_1An0cN1X4V3SVBZMA","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h0D3N11FCtHntcfb7Bc1e","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the instance of the root container (i.e. the current application World container).

                        ","params":[],"returns":[{"description":"

                        root container

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V-dUuH38fuGfYTDJPIoXi","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if contains the specified Child

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZDFyJsvXDawrV-b6I5giH","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Checks if this container is root or if it's attached to the root container.

                        ","params":[],"returns":[{"description":"

                        true if this container is root or if it's attached to the root container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tVVdq7SqD3ixAixp5pa_9","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OxqtdQSW6vUqmhyr7Abv_","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Xjy6UDcc_5CyvzAFBOiVr","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TZtftHLKcA-8elPXj7Z0H","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the child in the group one step backward (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"DJ-i-KiBXI1Ky4VK5RFi8","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the specified child the bottom (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"jiuAr6mQZfl5QxLOSoJ66","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the specified child to the top(z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"yXsjOd7MQfrUbPm8zqwH7","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the child in the group one step forward (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"FJu9tzLng6n8p3wHWvSrR","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                        a callback to be extended, triggered after a child has been added or removed

                        ","params":[{"identifier":"index","optional":false,"description":"

                        added or removed child index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yqWUPso1yUCC01fWOf9yM","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"t5NGws9GrF4Exn7Wsgmyh","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4fLwap1N--Q3kRNJE3Zgl","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wwt5ClS0EsOFEY0ViAPXw","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"aW_iaATaM0scJplaNDoxW","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"aEL9teHY5M5zFNKd4HCzM","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3J0kwJ-URc42vF-P6lmr6","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be removed

                        ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                        true to prevent calling child.destroy()

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Hx8oqgTVkyw1qANVvGnUT","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Removes (and optionally destroys) a child from the container.
                        \n(removal is immediate and unconditional)
                        \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be removed

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                        True to prevent calling child.destroy()

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VFDn78hFUu_RsIPNO655c","name":"reset","brief":"

                        reset the container, removing all childrens, and reseting transforms.

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n8oe-knXxp4J0_Y6Ax0mR","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N-_GHoxAFwU-flHZjSj7M","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1MEmb1tqe1Wy16qxoW1h-","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zAL41V8Ebx5GJIlY3N6sN","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cu6fu3CCB31n5RMihqMKy","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Automatically set the specified property of all childs to the given value

                        ","params":[{"identifier":"prop","optional":false,"description":"

                        property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        property value

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                        recursively apply the value to child containers if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Tgg2nnwU6HgmYdGI3IiKu","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ke3WcH_e4l-UUaCz-ZJE1","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zNPK0xiipVzMoQfjKwJCa","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zWXyNz6djYJ-fgiOlw2sf","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Xfv8lheTemyxhXx8KouwA","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Manually trigger the sort of all the childs in the container

                        ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                        recursively sort all containers if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"dUTwMwiZQZ-s7yCluF9nq","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Swaps the position (z-index) of 2 children

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"FWYiLOUSfszmLI9YGUJc-","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6pN7EaEZqbqRwDeSwsJ6A","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"31blHWwxe_bO7RTRacWvB","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gExqfYd2QgrF1iF-mdjrO","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ku3m_qwvdJ82v-k-sHwGN","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i2d-VhCdx3AIn-84XxFTN","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3HsDOedz-3FbE3pA-3uZw","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this container.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this container bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fB_DGQaDyLmO5xOKoN8L0","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this renderable (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CsHQvBjtZUTnIQExmEOdj","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        container update function.
                        \nautomatically called by the application update loop {@link Application}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Container is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C9n2TBm61cVAYvjyR4gzH","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"8tEBdegWqM9x48wO6jdi3","name":"Detector","brief":"

                        the Detector class contains methods for detecting collisions between bodies using a broadphase algorithm.

                        ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xayKMjfeEbTmPfcG9-TdI","name":"response","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default response object used for collisions\n(will be automatically populated by the collides functions)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0WfIFKd_bztwAXbb1Rs_l","name":"collides","brief":"","scope":"instance","type":"MethodDoc","description":"

                        detect collision between two bodies.

                        ","params":[{"identifier":"bodyA","optional":false,"description":"

                        a reference to body A.

                        ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}},{"identifier":"bodyB","optional":false,"description":"

                        a reference to body B.

                        ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if colliding

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5mBluMdwV4CNbPkcTDi1e","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

                        the physic world this detector is bind to

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HCQ78-hSufouLtN9TA8yD","name":"shouldCollide","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determine if two objects should collide (based on both respective objects body collision mask and type).
                        \nyou can redef...","params":[{"identifier":"a","optional":false,"description":"

                        a reference to the object A.

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"b","optional":false,"description":"

                        a reference to the object B.

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if they should collide, false otherwise

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"jVQudpNKqUGbUyFHtsmU4","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

                        A Draggable base object

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"akhOeriFuybbuCwAT7M8B","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nsRWpmy97__06d-3fl9FE","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DJBiJTSvRaoP1DQp8xSPl","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RD1psm9SaALze3IvhkIeE","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0_afLa3LhYAb8-zT2Ekux","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9IEylVbxlt-0n4QyBJP_G","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p6feCjKJ0b03QVBKhlPmQ","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kB-m8KsG9ma1pYhgiq2X4","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"auO2IYUSW3-azu6hxJJeC","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f7q__NL39bf7ISOMrNrmR","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ucfGaZgVCHdHITs3WBFsr","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jHfNsuayAsViotoxF8299","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CkvNo1_eNfm7LbB-RuGYV","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"06SoDF_LGPCaH0CdogYmV","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OKTIB1cr3-pguCgWUUep2","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X0ULYLTFAuftW9ygUXFjt","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R31LmBQpzEcLTHDIuGi60","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W0HwlJvwrPC6pJVT7kF3d","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1HMBV2lIMge87UiMjgMXo","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sLOGDavVaoaDz6_2vVPH4","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NxXm9BXh1lHt60Gt8JZxl","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E1mAdNr3NIzBBcTJaT5h7","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CaPgKZJzVGiJHPg0th_cA","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x0NH5fmQoySacSbSp60I-","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J7xEB42HtpVaFBs1G3ccN","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GxLaki0gWpQ4-j0UcNMxv","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b8pRWdwRSrH1Lso3WrPrR","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0jnX-qLpRpQmqHlGSvOrA","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SNf4bZeqHBTgqqgr_Q4RD","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3C1USZ_vDeUEAwKXAw_EC","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uOMrA27DQx6VOJzORt5BY","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1HH7E4u7mYm9iPcOaxbrL","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BIPIxvdEnEoMVvVq8TRPT","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mpEatljRoYmKEI_K5uewb","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-py-C76RPhRvTo2mkJZPV","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B9z5T5Ntbdgk3URf8Fcyf","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CTTt3eDNARnf5nCLe-UlD","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HBvsEHCOKy3Lw485sNGP3","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"75k9AZZeUhT9TXc8dWij9","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4kELmI5lhP3Ar0SnopXt6","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        draggable object width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        draggable object height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IG2M4UgVQpAL52K1A2fL3","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zM-5ZUzd_TSaU4YP5rBP7","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9SYNDmHRHZ2fj_KL3YHOF","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oudLyhto5EVDEAPP_tC6y","name":"dragEnd","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Gets called when the user stops dragging the entity

                        ","params":[],"returns":[{"description":"

                        false if the object stopped being dragged

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nRG2J0-Q4QolxWivKdcDO","name":"dragMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Gets called when the user drags this entity around

                        ","params":[{"identifier":"e","optional":false,"description":"

                        the pointer event

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"5Lu4mTCl8cFu9vsG8EXMG","name":"dragStart","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Gets called when the user starts dragging the entity

                        ","params":[{"identifier":"e","optional":false,"description":"

                        the pointer event

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        false if the object is being dragged

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UEIXmTJG_WUfM8khsKzsA","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GBkOlNVD6vvhlnOTbJSYf","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"y3gUr8alpMAWzEqDKrRPw","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BZWMnFc3lePgzMVKnxhuw","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gmXBePGEBEiCtm53A9zFp","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ENcm4Mf1NlC6qgypKKp7i","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BICF1eiFxg78M25ftaanK","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"b-H-60AA1jHo9amJ8hDzm","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Y6kJoBU7nKEh9XPmiQDn","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"B4iwxVXGKa4yvHwBCkqj-","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"weY2GyPYrs9BlTx4Y51CT","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2xwsjFt7esV-8wGcxW_nS","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WQOdV_JKW2fW6QPTDRtlx","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jLprOMtPSpAAZ8GWBuSt-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QI8NGhoFaIkuEfHj2aoDX","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"edYgtSEnhQ4kmSVY0PQrE","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"6P7B-gOdi8IhzWhxSvbQy","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CAUkpEjLohEnY0xoOBmbB","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0riGGb4rSqwuHqYimeqMf","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A91cnlCebnJOo32Sf6oU1","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l4YlOSOiLSpxpgH4-gFs7","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3qT83GFvQLMSg5znA34lu","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Fx7S6HJisd12DT541r92F","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gxyx_LMtKlwupVTmypxqO","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eBtj7QOPWA4w7FmJRZxhM","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DXIn0xAZc4rBSupsJ3Kjq","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8MdiF032rKJ0xAaiwnNAF","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TFE8wUkQ3-4zF3pY_lfAb","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AoY5h6rgpo56GH1yxcICQ","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gxrWxLMQxvT2oglIR16Cg","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uo5E4IUn4x9lKnUOcOYqw","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-eRXFTVKtTkqbHBnQl3qZ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WXHXGXduhxAxoovkFpKQ8","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tc7BbOAnJjI0ULVy446Bu","name":"initEvents","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        Initializes the events the modules needs to listen to\nIt translates the pointer events to me.events\nin order to make them ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oWvlLXS4zz0kLfFgqzRLc","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ZRk3LFjan9aHnLfTcTl__","name":"DraggableEntity","brief":"","deprecated":"since 10.5.0","see":["Draggable"],"type":"ClassDoc","description":"

                        Used to make a game entity draggable

                        ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"9u_etRJF190roGktj51An","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0XTGGcqQZ4e6m0CkkThAx","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vgcxbElBRmbCAKWzVm6vd","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MhZ4lhMnUx6j2HsoxbxWD","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1NzkDhHPU5FVEH9DJbFAi","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HWijipMTW-8SV4kH-FOfi","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CkwfE0W5W7nOcH1vaWEsV","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X_eIsw9_xgkaXzpJv3GYs","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mkDHtgA81Bb5APqtdTLsJ","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YFAtbjStdYhKPXQx3NvBC","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KAmLCjXjtJ0LjmV4euXLO","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CcYE-KrwhAJ5y_xL7Q9wv","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ilxyff2Akhuu_VnRXWGWC","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K3aO3S0wYOYfoEQF-Yrcv","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O6CHUxKoENWZIsMKDwsfq","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7H0QX-U29gHG0RzC8Ho_c","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fcw2e2rj4hVUbEuoiJOjo","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e4CuGajBRXELBDJa-u2wc","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"me2ltbO0jFaOz8Hfsq2Ob","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gBZLQXmRn7TFaZVMTdjNN","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x15hkt1zjyEvC1Ce0AGUx","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6sc9E582DUoj-xC2_jmH9","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iK1tMslVCDI_Timl7AGvM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"im6PWHlhaiN7FWfT4rYPU","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrzy72iMWPgV5QB2Ob6IR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rF_v4nbbVhSvuJVJzNBbU","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iW38551trrbx9WEp7ZB1W","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MyKtF806xUab811mjPYm7","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I8buX2TG0H2IvLyYsbcLO","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DGUO6RCvgEEPClvOteXvX","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JNf3hCznPmGPvnG-U603k","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hexwsIzZTRm3nAc2s1Aip","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BdBfnKfWlZYqfhQEtTGCT","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"63jZ-lo3TZrJhtyD3dOP8","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BbtNqLcFC8wKY9Kl-n2R6","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Igu2otPr-N_D4UR_zKPdi","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uKlHrnaVz8ybSTR2kcdit","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K98VP8tBmKJlAUPz53Kzv","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gWgFIihiN-BPSTyD6ZbMT","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J-7a5AEG3qD6NwevXl61h","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EcH3G0kyA5KWrab1U9upl","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"czKc65iBx27xGwJvUex9r","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ro7umaq5ElZsxtROo91_g","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        Entity properties (see {@link Entity})

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"v7LzFHnKdzvWXN9qBW0Ia","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"j3nnV_qaqWmEN2VzmKOKa","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HwLASTKSfDTqbB36WTNTJ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xiddSwTSFrXpt_icZlx4L","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RrKOzXpk8qxW2KMmOBdK7","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AFvtG9xIp-OqdtNKBxIqt","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p8MiOumM6Xq_aJbgIKXQt","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ASJZ511QGiTHXQP9LcMv7","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ezAZuSnUPt_iBd6xhBHMn","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"hAPUCLecMn8xLJqIBDPVj","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eQn2Tz78kSmgD3klwpYDs","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"f-YgMaoeiklofb3MfPvPW","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oT6b_84ZHd12RRHxI2Wpu","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r3oqSbXXQp8gcHQ6NwMoi","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IOj6UaonLQGjUnVLwvKZa","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"H0v2vU6rgbV6aYaxziBJZ","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IfRNiggqNpbIp-XzQf3Rz","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1LxVddtEHEotql16XktPH","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U_P8iyXG-8HSTDCmvSb-o","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Rk6DvwqMJ2hPHYYNvJHsC","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"W8HeapJO5mW9_HHH8Nav4","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hcrenojkR6V1EtJ8eh4SY","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bD6ObV5sRlJEDsZYECNHe","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ddL1Kh9cJIt5s1J6uyaCg","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vz9etmKiiJx990AVVvRc0","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6q1J9GRTCNle7pMDRh69q","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tl-vMaUH6xoDwdyYuHWZJ","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ooPvyhr8KYghGRM_7MMKt","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CGGHk1cayltExw7BvLquS","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0cgk7U6uJer0DnyaKqQp-","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C65FUin3JaYwksV0GtTD0","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LRKCsmCm9WcHSx2ZW8f7C","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OlEaGAzi69ct4HkxPBCfU","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jpCiXrhMmjXc2VsMSN-E5","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ntCTO-OhmMfmquI5R5uH_","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"049RJSg6XzJZzieZxa13A","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Nffh9VK2_vkv3m0EY4rOv","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this entity.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this entity bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qR6tFn1R-oW2d8Rf2_BnL","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this entity (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_YnChJfm8JF45PkxekCpJ","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ITz-rrsoaihx6jy3Ci_jB","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

                        a base drop target object

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"Cy2siTE_MJfxi2HrfL6gz","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9h68Jo9IGq1M15Ow9SEPr","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QeYLTzqthqOABRsR5cqKa","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k3kL4tT9Hu_Lw5XRAbT3g","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3P9mH706-VwaoRGHcFxK3","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xuAvKoFueQovF9JKavl1E","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MwS48WTmx0GSJhIaojbl6","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rk1dgIxXp5GGyzfp6FcIb","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AoD-Qa7zY-ommhWYNxzhh","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CxKShuYds5nEhfflbz571","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q2knsXc7NEQLXpe3upPKF","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                        the checkmethod we want to use

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EvoLoHFGDtedj75TACPFx","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

                        constant for the contains method

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ARtl8ePflyh6Wgyd3YRu","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                        constant for the overlaps method

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bOpd-UB8Q2-p5AxirieJe","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N8GvjQs1p4oZQcF8TTBR6","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e5YZw7dk6JdpqAUe4sPZb","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A5zFnIFza2tvccO66lP9_","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r6qu3c2U-KBf_V1kEg_iT","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T_HYtYJU86uqI62HbmQp9","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ofe5geFmciQDUAsIBYmoW","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xFa4kbLaaxwR8emrNCn87","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Esq0yXeRnPMTQ55eQIPO4","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZwO7TskAkQmQeW2NVEV7p","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iX5LrvqLxeDoPmqhntGl8","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k4suAogXWmPGik2NeoXnW","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sr9YOVdaxZ-XwCxSik2-U","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lvXo11w2pjynW1DpXpuYk","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rZTXgI501LhsPCK_Jjn5L","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5H-Xj3yEtRagBKLNhr6Yp","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EWmYihTih_EV1pSKZHfKg","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AYSoiFaGmIs33C1GBk3Eq","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cV7RmHRLgqB0rhvuy6YAe","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QDg5Nbv5RTMpGgU7ctE8c","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DoE2xkO40cSA-s1xOgZ6b","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XhpntKMZmBbvyBjXzSVEv","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ev99nFj8z6Pzqyxsg5mew","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0byAP9CBFMXbKZdwEUdlt","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LxpEEtZ0mWjnFF689Cdhi","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2GEnRkBVtpAnVjtt68sXV","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VAhekPgmPMplQtZpW3Wz-","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HZG9-zRC4I5gtBmAvZHYS","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TA69OENRDESc7B41pEZbS","name":"checkOnMe","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Checks if a dropped entity is dropped on the current entity

                        ","params":[{"identifier":"e","optional":false,"description":"

                        the triggering event

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"draggable","optional":false,"description":"

                        the draggable object that is dropped

                        ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8acH4mZ3OQeUdh7_AfK7M","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZZM_-4bDgJzIkkANaB0BZ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the drop target

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the drop target

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        drop target width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        drop target height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Y12kpcw_cR1uI8UnsjYHA","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lKjCTyy-wUnVRB3h84BAF","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"viBycBzoihVeqTAM7Fc0V","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rs8Dp1PwAlRPdC4ub645g","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-XTuZsxdxUrToFMXke3PB","name":"drop","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Gets called when a draggable entity is dropped on the current entity

                        ","params":[{"identifier":"draggable","optional":false,"description":"

                        the draggable object that is dropped

                        ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"e7EwMq4NdAW4jb7t2hIME","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ag2szEbJPy08G6DQ-Enx7","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VvcbxUpKg7eofU0Z9ZeB8","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zHfD0OjmCZN0JAVJNk-4Z","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FU3_KbROvtZ_GsKP7nh61","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BtobZTatIiKcKxWWUrUZ9","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_pyXlBUsI7dxP9tX_zl7d","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9Sk9Yq2NcqRYZ90rXO5U6","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VIusjsVaTcJgL5f0ta8yA","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6_9DK5CH7wcGV7ifnvVmF","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"si3qWOM12qKZgguu2s-Rx","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Xq-bAsgCtztlrKcVcJlGk","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZOqZAaRJt_YLZXURIKIxJ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ojhff2g28EUGMFAU3zsKr","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Y6IYE2LzDt4ThoSPIPEYJ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ny6M2eX0acdnLXHvCknUM","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HvNRr1-1xehDiI2DKhSpW","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6AABvp5CpB8Yvk2SqYG_H","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hoRW1TlkZAZjfPGihTcZj","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2BTtg6Z9F4FIgEfKM3SUy","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"53fs28txyHhbvSV1FCdTO","name":"setCheckMethod","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Sets the collision method which is going to be used to check a valid drop

                        ","params":[{"identifier":"checkMethod","optional":false,"description":"

                        the checkmethod (defaults to CHECKMETHOD_OVERLAP)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"g_mmXcX5_2MACHcocFCe1","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Y2crwPHcVyZYMFD0J3Xm6","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6VeAU4yYpn5EEYyAwKqGF","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nrFJ3byf6skcqpkowqVzH","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8IMAcD_VE8ta8UPTpQse3","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GDRkigDt00URWnnC9YVza","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5fmmjFqGFsyCLIbV3ItZv","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UL0Ya3odgx5F5dFMJk3nF","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2vpxyluWAbwhkGRyAA5R9","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PsW7nlXjTdBdTnsOWbSYB","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iEfaLHwVqkdeM7DKQP9b5","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Eb8qFAnUMwiCRo7WlizKC","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5Cpip1kLn5JKBlphCSlWS","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"J5_B-nK1uWuIYm1tPlyAM","name":"DroptargetEntity","brief":"","deprecated":"since 10.5.0","see":["DropTarget"],"type":"ClassDoc","description":"

                        Used to make a game entity a droptarget

                        ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"xSfILCwSXH41mwId1rYmz","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yErhAYlF5arc0ke_3h0eF","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DyGUTAJyZMVQI6o8dN3T_","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yB_e0p9PdTqTqE4lnRVxr","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QeFl5S1ttdf_-4boKFdFA","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q4KzDnLvYPXVXH3oYZ4Wh","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jSZUXZKUa61s7Wnczsvz1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ToRxUY2QggSvOxZEFR3qv","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rs7tU8iaexoXPqKvRu_dl","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OZddtXqJG2XhE8rbbcj5u","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zvv8pogl7yDuJSk7kqPRm","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RpUTE-k_LnsVIKc0HXbiH","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rrP4OgxC9KO31zWAIpxzT","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M_vckiDN38MlLC2z6EJny","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vvNAv3iC9yOs3tGj7SxoN","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9tzDmuQYLcb8IggvDqOuP","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GSfYIgV2bEWFND7gFDway","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_zXkhYBD17pyC7INQ8bfZ","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v_pzi4hTd7nUkfNYT4qtg","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_26ywJwJyhJ9G7pwXSiBd","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hxlpj0u_pQdRR6OQIRqFf","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fWscvNDeDW2WRdKXWedf3","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kVo1wc6-6jgPd1i2VTWjB","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5DsST-sPibCfHQZXI5E2T","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j4CYrn5dJ6vgEcbWlJJrb","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"83GJysax0Nq7wORlr9lOv","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"23ZmMzx-KqMFQoNeSBgmg","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fNxxA27wD461gR-Wjb_2R","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bJINaapyr-OcH3Q-6jOyv","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TVNzzKOf5-fLeisG8THpb","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ACYbUlQxEW3K9fjD76W6X","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rgdoQYj8obS_ZjiYPJyOY","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eOTPbbbe3GlKf4QImNVks","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5MWQOOe5bBccRBM-YEJj5","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HHved8Yh0CxvWfblN8Ndd","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"994NciS3-P601rgJ3ApWN","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kGmmLQ_F4Ev-xCmXisv-Q","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2hYR8nUAGX7Vu5H6Kwe-L","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sjDMusL4bUPFIv9FTOZN0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eKQjVezmcADqR3EG-qpQD","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Edm5yOyFh74gUfn7vVSFd","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wJ9rDCNbxIbYWdSC26VFN","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"puDj3TkECKwgmWqZ2l2hF","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the draggable object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        Entity properties (see {@link Entity})

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"3faPfqQX49wh7I8AVVvBf","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I0UXqRI8Dd0ziJe5HSdFJ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_l08DlN0rQx-hA4F2w8tL","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L4ZSU6zTSxn-IZnOwPPJU","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yXa4fhmM4W6POif9RGVWA","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NBBFI7X0aa2vN4ucO67x0","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iJqx5K_on5MDC3N1BfR_W","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EcUOnJkaZiFIlFpcz3dVb","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mf7AUEd5qg9H6bOBJ5HQB","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"mSieO6jV8vJb_YjydFxJq","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bi22WmMyIcqTMs-V89Nsx","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"t_XcJNWqiP1Mgpcq9HdvO","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bXZ6xlUuSNPstTlKTpC84","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lXZennX4he0Twx36OmlDL","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SvtN4ggfAUKCZ9hkxOJXg","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gGrl7P82VEP1QnWfT0t-Z","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VnSewzABLYauL2wCXIfOV","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XXdAOOZuCSfrpZu3sfRAj","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"E6HI5deqAPLo9nfYMb1AJ","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"SQ0fxw0eDvGfMkaNofZtc","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GAAXJXC_dynhqPXhkbQfL","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dGjqYPrjZgrDQo73mOBUH","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"InYgGRSea5kxn1MAbYXvu","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xjV4FVKnG2l43iBnJA1ah","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pRc1Qqh3y8_8ngsHuzHYM","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_YmFZvVvwx9fHV9HAElEe","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5aSDpo01pSJTv5LWWQ-52","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"19B6UTus2Dyw7-JZZ_Z3P","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hlmmLf3aINDlqJNJ7aicE","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dOb3vtdubECX_sBECeomH","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ff-U-4t3eMFHfdCfb4wR0","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qoInTn_2BsTGUvEnSfJYm","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iMUGFUpMX2ET974lAcuOZ","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-TUc9jUlX4VsKOSPcPAla","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s9GmUIL0f7gKHsh_oOBdm","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wVhS8QhWEaBHXAZ2Ou1xj","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Az5xwBqiwremFlXLbsFJe","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this entity.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this entity bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MUFOSY2g4_NJr577l4vsx","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this entity (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"L9HNeqsrCvMFRJ6F8mOyS","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"XKEgr1dIfc0XldX5Ebjey","name":"Ellipse","brief":"","type":"ClassDoc","description":"

                        an ellipse Object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"q21FATyNssFy06WnFwuOB","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the center coordinates of the ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lDa0FVjb9UA4HorpgidGc","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Maximum radius of the ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wSG3VzMwRxkfB4iJvzIUf","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Radius squared, for pythagorean theorom

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9DHHpElE0cUwHBDL_AeQV","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Pre-scaled radius vector for ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-DKwHLaSHW5i58HnZgCY1","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x/y scaling ratio for ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1AcoZnMwCnlihSd_LN8_8","name":"type","brief":"","defaultValue":"\"Ellipse\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EhOM2GzwIef3itsyiqES7","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                        The bounding rectangle for this shape

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QpdaOAGupLiju522fnrJh","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this Ellipse

                        ","params":[],"returns":[{"description":"

                        new Ellipse

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_V7cWv6Wb-8BwUZfMnPPP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the center x coordinate of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the center y coordinate of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width (diameter) of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        height (diameter) of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"B7rlR0xMrmN8zD0eVqmAL","name":"contains","brief":"","examples":[{"caption":"","code":"if (circle.contains(10, 10)) {\n // do something\n}\n// or\nif (circle.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        check if this circle/ellipse contains the specified point

                        ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                        x coordinate or a vector point to check

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if contains

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RhCiB8Pi7EP40TlGzRF9x","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SUioyzty56-_ZbxGRn3iI","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this Ellipse (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8nHmjTgjadwSwtBMtrycE","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Ellipse by the specified scalar.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the scale factor along the x-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        the scale factor along the y-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VBr4poJAKJs8ZNNV_IrqI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Ellipse by the specified vector.

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9TtFvqmbSBbpgxlgPFGxQ","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the Ellipse shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the center x coordinate of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the center y coordinate of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width (diameter) of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        height (diameter) of the ellipse

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zZpdhKR4XTM5PxqSvr9H4","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the given transformation matrix to this ellipse

                        ","params":[{"identifier":"matrix","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lVP1suY5oAqZ2EJKiTDD7","name":"translate","brief":"","examples":[{"caption":"","code":"ellipse.translate(10, 10);\n// or\nellipse.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the circle/ellipse by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this ellipse

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"dEyBnAlLEXe-K23Kc4mkt","name":"Entity","brief":"","type":"ClassDoc","description":"

                        a Generic Object Entity

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"qI8nkzm8QcFlc6lDxuPIo","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9lVSAL_gTD2HUEzALzw0Q","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rFf4FPL8N98KmeZpVScip","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwq1qAeAvCEn37_Y85klY","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ildtcAqYgkX5spQm2m0Fe","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iGlqj7dRtnFnKc2vjX5Zn","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WTPU5deQV-B5t2pP_Bnhf","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Br2bEaNKa7tcmv3WgAgXw","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dsIyYMGa1llDbfbl8mDU1","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iqb7J-dZF5nPbaVuZO2Ii","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KjgCs23AE3xGc4i9HNczo","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PipLd8nMPCIx1asFznxCM","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ttisw-I9j8QfkrIWhbEU","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ONYpDCEDIPau2eMMWFOwf","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xRtCDnEJYuvifOIEt-0nW","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nkg0-4EJFvLjRBF7OTl_H","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ykFCShw6ZVdtWMLA5j6xJ","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ScsTnPKZ8Od_4kLP9WXYc","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Di8cpJkebOHImgHud7gO5","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t2VE4-L4fp_SdZreogVEQ","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"axMAm1e6kfMpL1SN1LrGK","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8eRDffo0WgG0T3BGoiIl1","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"drDFqqyiG9fhTUWGNOQ5b","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lFhbAwYmn6aLX1HYDQTnC","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"580dclHljheopykv-wcQv","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o-6v58aV1ltZtQdwa2A2X","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oy86BX_-bs_BdSVCSgLOM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3jsY6yqR1g_qbZMd0XqkL","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"st2OD1nJB7VTYEFw8QvM4","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l63WxM3BWAl6xNQ7rPPnZ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5OLx58Kz8syxu2etFT4Ou","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aq4mkmjZd6ytkl68CPz6h","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hU1BPjJPK1479X7KZRqqK","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FeyP1rNm0d7ywy82_isDW","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n4FJnZ_24oZC5CIxsPD1z","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l6p1OXSr6PFOCZNSHOM0B","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mSEQllSo2oVVMUk3bnWJs","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jCgA2Sv0wJ-tTvtErgLVw","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7GDjJnx5v77SabCRB_MN6","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_78a7hH2eVdeakMgRJWbO","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lqI4E9NEX8TajSnN6dXa9","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zFhCThmDZnvioqG7qpkfc","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ATTRKilwaX7KdKu05H-5q","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the entity object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the entity object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        Entity properties, to be defined through Tiled or when calling the entity constructor\nthe physical width the entity takes up in game

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

                        the physical height the entity takes up in game

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.name","optional":true,"description":"

                        object entity name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.id","optional":true,"description":"

                        object unique IDs

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.image","optional":true,"description":"

                        resource name of a spritesheet to use for the entity renderable component

                        ","dataType":{"tokens":[{"value":"Image | string","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.anchorPoint","optional":true,"default":"0.0","description":"

                        Entity anchor point

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.framewidth","optional":true,"default":"settings.width","description":"

                        width of a single frame in the given spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"default":"settings.width","description":"

                        height of a single frame in the given spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.type","optional":true,"description":"

                        object type

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.collisionMask","optional":true,"description":"

                        Mask collision detection for this object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

                        the initial list of collision shapes (usually populated through Tiled)

                        ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}}],"returns":[],"extends":[],"implements":[]},{"id":"rczr8WXb4eTXzB73vTTU1","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HRd81jzzz6Ulf1-3YzrpQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oEUPsXZhgZAJjMZiMKLdW","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z7ok6TbW2ibLwyLkxog6N","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xhVb2cMF-NXLG0or1N1EQ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RbiLI8fXkSuwdIQpguK3u","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YLhiPEkIUOQwls1pjKOP9","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FKnjKQDIdYjRU4FMuikFX","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZoPLhVlLX0jfVg-NoX3o9","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"A7bxwgfkA1gW4SyUTpiXi","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Q4W4aUATNfcouB2XxPVo","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4GzUSS_Q1xwL0aZMQn-ub","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"06ZGT1d8N2KP4U6OsxW26","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GqFXXqtmTbjLiZs--Kvbl","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pLZ8YA2GWQpSrWEs1JLyB","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XllU6JMWjzfxfBhH_mZv8","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeO0EW--X6s_cFpX4I0Je","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GMu0SLu9smTZPEp8FTsgM","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Yt1wkbGGnuoOJiX_FWmDA","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"fZpmXDzs_Gmw1NYMjSd1-","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"RsfH2lvsXKenEhCK-frHv","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3cge7QXW-ZHti5ES4CHA5","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YQl42y0t7iZaVTxy57lcG","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AKq3RnLNWTr4ObN9s4fEU","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pzWGOlL2tnuvwfICSg_Cs","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DBPciVYEDrVEu8pAim_uQ","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EE17lr198dUfWGwzI88W-","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pyN0ETn2mLDkTQ7ukVeEr","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fbyPrat6hX3cRpm4sOfze","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5K9D3u98LoOVQuv8_rQM5","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KzqXwotGVkwtOuFsHTUQ8","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lzuVRYwwAErL1P05V06Tz","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OZThR2dJ2vO9Lya_Q_OgP","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3bjWE5PQlTMr-yJU4fuiK","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5LcyNfRYCfY88tqC6lT-n","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JQPoaDV6Di9ZNJXqxwpLW","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9FbI_78zr7KHSVQKzSRwA","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this entity.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this entity bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8hDbbufnIM-U3INoxS14y","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this entity (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rByW8qo_XOi7Mb3uJmAws","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"GnNs88L_AGpuLSKO5Cpt8","name":"GLShader","brief":"","type":"ClassDoc","description":"

                        a base GL Shader object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"hXhfJTGqJf9dnvPYAk6bs","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the location attributes of the shader

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JxP0MNGCJj75ZZFPXVS8l","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the fragment shader source code

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XlrYM_vIgLj3z_HVP5a3P","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the active gl rendering context

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZXLmUzj1a82_vGnHSvt5J","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the shader program (once compiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jKAdhLDXiCrIjZ_H5AZg6","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the uniforms of the shader

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wFirOfGuJW5EjL9EW8JGp","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the vertex shader source code

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pDOOJR0XFx7Bor7-4k-Aq","name":"bind","brief":"

                        Installs this shader program as part of current rendering state

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I1C7Ge3kko1gPw5xQsiPC","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a basic shader\nlet myShader = new me.GLShader(\n // WebGL rendering context\n gl,\n // vertex shader\n [\n \"void main() {\",\n \" gl_Position = doMathToMakeClipspaceCoordinates;\",\n \"}\"\n ].join(\"\\n\"),\n // fragment shader\n [\n \"void main() {\",\n \" gl_FragColor = doMathToMakeAColor;\",\n \"}\"\n ].join(\"\\n\")\n )\n// use the shader\nmyShader.bind();"}],"scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_on_the_web/GLSL_Shaders"],"type":"MethodDoc","params":[{"identifier":"gl","optional":false,"description":"

                        the current WebGL rendering context

                        ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"vertex","optional":false,"description":"

                        a string containing the GLSL source code to set

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fragment","optional":false,"description":"

                        a string containing the GLSL source code to set

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"precision","optional":true,"default":"auto detected","description":"

                        float precision ('lowp', 'mediump' or 'highp').

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"vwtEzlEkUS0ApT3NRIYYR","name":"destroy","brief":"

                        destroy this shader objects resources (program, attributes, uniforms)

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ltSbu7aeYTDwfOXrWsAo6","name":"getAttribLocation","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the location of an attribute variable in this shader program

                        ","params":[{"identifier":"name","optional":false,"description":"

                        the name of the attribute variable whose location to get.

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        number indicating the location of the variable name if found. Returns -1 otherwise

                        ","dataType":{"tokens":[{"value":"GLint","kind":"canonical"},{"value":"GLint","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JV_MZAaPllsz9K8HLryJp","name":"setUniform","brief":"","examples":[{"caption":"","code":"myShader.setUniform(\"uProjectionMatrix\", this.projectionMatrix);"}],"scope":"instance","type":"MethodDoc","description":"

                        Set the uniform to the given value

                        ","params":[{"identifier":"name","optional":false,"description":"

                        the uniform name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        the value to assign to that uniform

                        ","dataType":{"tokens":[{"value":"object | Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"object | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vLiO8juhfJehstLmriecE","name":"setVertexAttributes","brief":"","scope":"instance","type":"MethodDoc","description":"

                        activate the given vertex attribute for this shader

                        ","params":[{"identifier":"gl","optional":false,"description":"

                        the current WebGL rendering context

                        ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

                        an array of vertex attributes

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"vertexByteSize","optional":false,"description":"

                        the size of a single vertex in bytes

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"PKwcV_nAfTfeqfrWIETbC","name":"GUI_Object","brief":"","deprecated":"since 14.0.0","see":["UISpriteElement"],"type":"ClassDoc","description":"

                        A very basic object to manage GUI elements

                        ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"YdXWDTsIq3st2eUUz_R-g","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8DPRjLlNg-f8-BctmB6dW","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BQW8lnRc-ywjLkh-tT5LU","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iffrabSjEDWGOsuEs2CA7","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qQbibK7MXVfHbT335q56d","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MvrBpDEwOusGA5Cn-tYQE","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5qlqswVsVdCmAxtqDa5gK","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YAugsbG4HgLdYWHUb0Kil","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vi6J9xeNHHiCMJMTuknML","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f9DvWCKhJEjV7Ulsy_l52","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5YNTdgsHkMyAfkV5u8Y6U","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NgREesJn8i-HYBCNKO1z6","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g7o30cscZLlErs5w0HpPl","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NnyddJjVKCsQ1MgFlKLJj","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FtPHBAPhijF9rE-FQKprb","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WqDksiTyNDU7NgYGaX7GR","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Shn1iybHjThXxndQs7HnE","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OMVAR3kdLC3DdwNm5BBBy","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b-kmmonKwU8tMPK9nxG-l","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dgjHjcqXk74sQjxHUGUSW","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ggzpV2Gn1jJc0gydke42w","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ut6_T-wggoWZpqh3p06Cp","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZqwYZ9bUFgine_758c5qy","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AgtUNyOuZL7kNmbEMVKxG","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nFOXAcsw1FwGHmd5X0xW6","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cVp4lNfkFEGqjYm15L4J8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OqrP0Lpvrqg-mFGT3monT","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NuoePbfOcwhdaVB3zYpVY","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2awEd91-Iqfz5nZrLmBy8","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                        global offset for the position to draw from on the source image.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tuPVWmJmAjWtVWqjBnXCn","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XDlqztIhvYeQHI9nBTBZ3","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ApTcXOaK5c6HRalKEYQDQ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LFFNPdCyAFc8t8Bl2Q842","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S1x2F-8mP5soiErNtdarh","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u3IQbARZOFKUWcRFOHQKb","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"48QcBpe0cb4VdczmT9eAB","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q3nwuEpEv0KvhKqVI1Zkg","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mYFN2Oo4vsqzXQNdeVsI7","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J4Jm-APLpU1z_hKyLU5mN","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NSBENcsoNfMiw8cUStPy4","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GJ4DAyaSp3w2eJ5vgldk4","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U33erMBeFXlxKox2Rr0en","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        add an animation
                        \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                        list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                        ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                        cycling speed for animation in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        frame amount of frame added to the animation (delay between each frame).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lMj2cm3JSAJEgQUPsLqsu","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vcn2YMbPRChkmMnxObN2-","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hum6YKh4AZpBwyKs5D9ay","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-8CgvvmS1z5VHWKKA3G5K","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate of the GUI Object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate of the GUI Object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        See {@link Sprite}

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"QjhZXl3eY10sHm--PgwoM","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rPudXNaLKvC8vMXU_HxyV","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J67GcFespVT9WWF-VM8q6","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g_1C0XbPhSAr3c-oCSAKZ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dUtIy6lMCHoppFd-eJ3ys","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                        make the object flicker

                        ","params":[{"identifier":"duration","optional":false,"description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                        Function to call when flickering ends

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dylAe3U0vfDNfM9-5H0zI","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_I5Oj0CCfkllqGxxDfTdm","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pbg8PjyxyGclfHeMwEpp3","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G8hZaFOCIlm4BJVZix8DJ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fxckegpGyqs9_f_INCCSg","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current animation frame index.

                        ","params":[],"returns":[{"description":"

                        current animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c2GDCclSzagFWOv5PVhM2","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"8VQ3-w5ABL1v0zNsyfMv3","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BRedCWTNNwyuvNEWc_OYb","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dW9SQO7bArCW3xowczsqc","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        return true if the specified animation is the current one.

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"D6cGvW8e1oLBS_nBa4YYw","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J_DsodL0PnTK05900JRs1","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the flickering state of the object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sx7ic0nEicU4U8KAyeyXI","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z2X8Drz-DUCPz1clL6WNP","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YNofAmAWbVDPduH3pn85e","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lDOY3FXDPIUKnVJLMxpEO","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WRK45Mug3WhwrcDry8rPY","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mNVFBbWEu1WvjCFK_fChy","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1s32tRyHKKEazSuArP5E8","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZexAdrh_QveHINpdSLdhO","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_Twt4donQUWgvFwZsWCC5","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"24_JTm39o6MHWBmLIkTmy","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gM3QOil3JmjKAEjQAUoin","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        reverse the given or current animation if none is specified

                        ","params":[{"identifier":"name","optional":true,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6ajsWTgaH-bWPDYEatGXA","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WHt660sdMO_8EsIl_umhI","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vAQImuy0g-5ZnaIhkrtyv","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3O4QzkJqRyEgRSMpz3t7w","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                        force the current animation frame index.

                        ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                        animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EMh_CWsTTc9jIhBJSdedn","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                        set the current animation\nthis will always change the animation & set the frame to zero

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                        animation id to switch to when complete, or callback

                        ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                        if false will reset the elapsed time counter since last frame

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xq_C2-wNEwRkhCaoMhzgM","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h5eThZ8L08oUoPD2OPKql","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                        change the current texture atlas region for this sprite

                        ","params":[{"identifier":"region","optional":false,"description":"

                        typically returned through me.Texture.getRegion()

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UXBIg-vhGX62tSoOSb-O1","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bC7BP8PRxBRJZOMy93oGb","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sy3UFq0AkpujL1iaFVNs_","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-3lT3PIR377gFKOghy7Jr","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PGal-yFwfeUUzp9WXvfwh","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7zKC6Li7gBZcFZtpQ7Q_U","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G_zr8xBSZR-qr0fPepfMX","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TBZ0uIpDzQia-2flHc5xS","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oYQ0yu8JXZd5gFqFsgwcX","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sd_MCDfrbOgcfJgoFBqUw","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z5rr4hpN7wOOEouiseEec","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this srite (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"u3J7SAvwc6imcWras07-W","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        update function.
                        \nautomatically called by the game manager {@link game}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Sprite is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fQvaZo3i_88B6sHPbVYgd","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"znTsjZKYdcsXxRtcLatNv","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

                        a generic Image Layer Object

                        ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"LrbRhYWRWOwJ5AGxg8N7m","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WRtI_hbnzhKqsS8VKGNFO","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZWRIv_Oj7RDAER7MI8E-X","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gf0EuW8zoBy79-9LwYAQC","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dnB7SVcmqGDOEnqpz0joo","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1qHTXZtsNil5hjd8TKIHG","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r-ToWa9RMuc5CGKbkRvZw","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lS0dA7r1wBdf--eefmVSt","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vUgc4C4oTyQ75Xe0B9CV2","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Uxh5goCbA7pnUOM8tcKhb","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fBt7pdXvM3RRt2VbKflgq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yab2qRE2EC52Ee4IIWpnq","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lg87y9sxl5SPGAtV6qIyA","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EeU0qPbFBmPJqNTe5OK1X","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p25hvIGcMLP_B_u53EV_H","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mdb3PoWBL5e-fgdzCHsV-","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t7U0uCbHuUveN1J3XohGO","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2lC_KOEhw6ftq1-6EnwqS","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iw7GbVPG9NnDtch9i5tXB","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvDHtphqymZNn9-Jg4ick","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JlFAu6vMRAnHRlbBRZrRP","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qoXEcNQaf37wrTmyJbhkj","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mu4FUiV5k9xnWZQgbpW-K","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-GRJlICLpYau4GjT6UwcX","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PQfwNzrPcILqyQ7erovdf","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SXY7D4ZBlfyFQ4_YsSRrx","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vReCBkxA8uiuVA2NzqMjT","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FgwW3vgokyXErGlzM9SED","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xhhp35s_XFichHSoxSitZ","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                        global offset for the position to draw from on the source image.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PG7DMFky0nBo8uRpKSzND","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pEf_4s07QgUTMGTRBk-Jl","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lWGYf5Oy_KXfbN9B4cp4W","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"opJrJQTosnNB0NWxapfQG","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sWhVr1w3KfpHBixA-NYph","name":"ratio","brief":"","defaultValue":"<1.0,1.0>","scope":"instance","type":"PropertyDoc","description":"

                        Define the image scrolling ratio
                        \nScrolling speed is defined by multiplying the viewport delta position by the specifie...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbjcsUC9KsX5tFptGaHz7","name":"repeat","brief":"","defaultValue":"'repeat'","scope":"instance","type":"PropertyDoc","description":"

                        Define if and how an Image Layer should be repeated.
                        \nBy default, an Image Layer is repeated both vertically and horizo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kMnYRwXgcpkDiO2zHVfDv","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GT0o8L1jw1Sef6wZLtmyo","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M7vESUMUIYc1AawXacl9S","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zF9Csb-JsCuLlYR1sGkED","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dFBLI-qfPkNE1zPWC7hmJ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xUrngDTxJvfIrf_jXgsO_","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bOVWDzxESfDYmLAtyrNqO","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qQGJ4cVRv7ddFpSvbKlCr","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ACYhKcxAD9qPZtvI8JDnj","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        add an animation
                        \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                        list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                        ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                        cycling speed for animation in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        frame amount of frame added to the animation (delay between each frame).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H8BZGzz-uUNOSgKta9r0I","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qVeKhqxPiczs7xH5q4u-M","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PoKBx7APAi28cAbgy53SV","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2EHBVC5DD0xOY5LheFT8S","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a repetitive background pattern on the X axis using the citycloud image asset\nme.game.world.addChild(new me.ImageLayer(0, 0, {\n image:\"citycloud\",\n repeat :\"repeat-x\"\n}), 1);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        x coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        ImageLayer properties

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

                        Image reference. See {@link loader.getImage}

                        ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2 | string"}},{"identifier":"settings.name","optional":true,"default":"\"me.ImageLayer\"","description":"

                        layer name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.z","optional":true,"default":"0","description":"

                        z-index position

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.ratio","optional":true,"default":"1.0","description":"

                        Scrolling ratio to be applied. See {@link ImageLayer#ratio}

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"settings.repeat","optional":true,"default":"\"repeat\"","description":"

                        define if and how an Image Layer should be repeated. See {@link ImageLayer#repeat}

                        ","dataType":{"tokens":[{"value":"\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"no-repeat\"","kind":"canonical"},{"value":"\"repeat\"","kind":"canonical"},{"value":"\"repeat-x\"","kind":"canonical"},{"value":"\"repeat-y\"","kind":"canonical"},{"value":"\"no-repeat\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"settings.anchorPoint","optional":true,"default":"<0.0,0.0>","description":"

                        Define how the image is anchored to the viewport bound. By default, its upper-left corner is anchored to the viewport boun...","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"pbMlrQHw7Rsn5PIwUyESt","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k9G36epRI9_oHBsfx1Kq1","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Qe3caWlgeHWX58FKqyMWY","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8oqSsOix6FRq5fFbawh3M","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"isTIw3MQOOyBdPtDeTH2X","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                        make the object flicker

                        ","params":[{"identifier":"duration","optional":false,"description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                        Function to call when flickering ends

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FB4_11vgSbBqUolxmHYgx","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-joL01HhqfFFI2PxCXaCO","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KgqmE3H1xNijyzR414Ykl","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XVWNZDe41U7LSa-uZ5BtY","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o4Afi9XvZT7jPO1HoTybq","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current animation frame index.

                        ","params":[],"returns":[{"description":"

                        current animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CR9cQlCZgomGHnDdRNKcN","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"1mNZL_5gWLrZiTq5ji1jg","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y70uy6txncYN5vVVA3Nr7","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wJw4mrctpW1mcvwAN1woZ","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        return true if the specified animation is the current one.

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uQfHnuuRpWi5rveDRAYa0","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PTOecUt2trAEgxOMXVCEk","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the flickering state of the object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Il7XVRutNcb1ZjWYUETNd","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C-7NHZcvFnUBA2l9Krv1u","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Oe9ofkVQ-wDyqvnDbBZFo","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6L2sglP0u8u_s5LL9I8IW","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MbETj-gZ2dz09mcq87rjJ","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_ixKiyrR7KyA2oF0CCGix","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_6rxP6QFxGtsGkdvsHyk","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"X-jcSU95DkK0E35V-FTv-","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"HYHzwDVtvam2bqiWQ75Q_","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"79P8bcvxl9Sj6ULBQrN_R","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the Image Layer to match the given size

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qwbqWmzmo3Vjs_Vp_l0_D","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        reverse the given or current animation if none is specified

                        ","params":[{"identifier":"name","optional":true,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vvJonMuFJGL6PGRUNOJcK","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WW4G4CL3kCwheivut3f8y","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xZ_yPHQzZ1Sgq4-uA3XQn","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1-s-sHwNJ76YJ6x_fTQhO","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                        force the current animation frame index.

                        ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                        animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kN6lFDVOTfAlSoKaXmHAO","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                        set the current animation\nthis will always change the animation & set the frame to zero

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                        animation id to switch to when complete, or callback

                        ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                        if false will reset the elapsed time counter since last frame

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZgYX3lR4JCx81Pyprhe8i","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"69q4Nox09RyF7JBrSWJK2","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                        change the current texture atlas region for this sprite

                        ","params":[{"identifier":"region","optional":false,"description":"

                        typically returned through me.Texture.getRegion()

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OV2d-2bvvGneeYcVLKH1z","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dIMZq9N5pTf81W19L3QRC","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z9H4DTwjUXD6MNLMQ_HBY","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"H_Mtfw2p1sO1MiKi670kA","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vGVetvIXA2fpfrLvZ5Ngk","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ofoj3slVqoGtsUNmZjAtX","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8kMQ7USVQmZyzOxwUVGP6","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p-C21plfcx38OOAk3sIv5","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6YkvTh9taQbtcRGT1aSER","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8seT4S178GliDiX7DoyZC","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P_-uY_LYvEZwMmf_eSjV_","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this ImageLayer (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9jMXeRCpXCRMQOJAbbld6","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        update function.
                        \nautomatically called by the game manager {@link game}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Sprite is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3mSlYAfOms3MRJP4zSr9U","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"YglxW-pUabfKAiGLgHssX","name":"Light2d","brief":"","see":["stage.lights"],"type":"ClassDoc","description":"

                        A 2D point light.\nNote: this is a very experimental and work in progress feature, that provides a simple spot light effect...","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"aSaC1WjMuT7tRqZbUw-Rz","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IhalYubkrRXZyOfkHcBCo","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gqQZ5H7IVWHupJRf34R2d","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f5IDrmvL54zqbhvjWZvYC","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hF56bUAfR5Azjoyk7irrJ","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oyz7nbaTlLdEH8FrHomcc","name":"blendMode","brief":"","defaultValue":"\"lighter\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the default blend mode to be applied when rendering this light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"93IK0jRb90vjqnqb3AaBZ","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iHq0hqWT9vYEaid90weO9","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"65C-Lbstkl2i3q3QL90iZ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aQ5MfkC4PDWAg5S0GGj72","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GjPuOHknBGfH2vKugCNxT","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

                        the color of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ephNJIV9PrzCJjxdIoDW2","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nqj2bmgCFdasIpyRRRvB8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h5RLi_b5XeT_v5PVy2vM9","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-TIFSe0TFLtdZX5i7eeMY","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xfpEOETkxoQNgFk0R26mJ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uBp3y6AzOVgGi4f41o_PQ","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

                        The intensity of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E4QibsW0uF1bEHhEyz7eX","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UhSNqSNL3cfhnMQ6_vA8s","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6fBjdq0-acklHhwx_EIBq","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1yIS-d1oyGWjG5KMGXIpr","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mwdJ57HaONZ3jmVwRZNAK","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mUGHV_wrhh5Hi5gKd_r35","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fkzdwfzGR5j8MpWMbQCdR","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qlxxKuhOgljg1YBj1i4N0","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oQmW-wXigaZGyfjE1YKx1","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WwC7HoWhU_FftmEi2BwgE","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KewvFLPfujNNMoN3EnLy9","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LPMPsWE7ZnvtfTHIrDSqy","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tYvZQYF46iAEagwyM_BtY","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E23mj_LC2OCX8AnDCw4_8","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"18x3l8adSOsEGiUIjUSgb","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The horizontal radius of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P4JOEQZ2WRnroxpCTEj5A","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The vertical radius of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4PAPOhZiM3HQusbkOtbu7","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5VsNA7-v8SXlP0j_ErbPa","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qQeE-hs1EwUk-5FG8GkfW","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"On9kiob6Xp4fEijfusR2e","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-TCYT9JzNiTeZ1Cmw55-n","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"of4-TQ32r8hiISyjH3lQd","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JvHojUnfFfl0EaKF6BGAt","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EV7n3-Hfju84K1EzKtGto","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jtbygc115eYTsRwiVAEQy","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"php6b4nrXrVCe7-HOy9QK","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0hEDayKtZjLasliWp3UzX","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        The horizontal position of the light.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        The vertical position of the light.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

                        The horizontal radius of the light.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":true,"default":"radiusX","description":"

                        The vertical radius of the light.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"color","optional":true,"default":"\"#FFF\"","description":"

                        the color of the light

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"intensity","optional":true,"default":"0.7","description":"

                        The intensity of the light.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"70dnPKehJa-GchNWDJblu","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"jUVekmbBvc_GOUaHsuvKk","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YAIL_-c0pMqQKURxW8KL-","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aiG7DvrI7w1IXOaNvBTW8","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"s8qA1puAJ0JebPuCN4OWt","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"42jy-bFPIEu71s7oXXLvw","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FtNEbj_NoCclywdzhkZgq","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HELMV0xB0l6fl0o7SDK2X","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JAejIm1xI_sXA5hguwlvT","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2x866zMaB7hTl83YtEmTi","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0nNUam28kahYLKkiRNuHE","name":"getVisibleArea","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a geometry representing the visible area of this light

                        ","params":[],"returns":[{"description":"

                        the light visible mask

                        ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xtVuBu9dyTF0BZy6EtTpg","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZLjaQmxzsxQZ-4pbQzsZM","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MpvsmbeTOwhRSVX6Y3-l9","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vE1wPJtkn2m-f40-l1ShJ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pcQ7ycdypX_1r2_FVeUwr","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b60yy9s2Zlet2hMvmjWAQ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mefZDR1YHJi6iNvq1PbuK","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"st4S9HnokzaOzv98yre6L","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"WUt3pW7yShfQf1kCEfpDF","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nPcG14my_oFgHs3m1Yc58","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aBeIoK-osjrqnj8gQzzR8","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TMt0g8oJTa061hMndRf5t","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"waCRBFLZmLDX3eKBY8TZq","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I0ivgOoEo5rjURM87nHzP","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"v195jLT45yt0WQQise695","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lRN6OGPaOJFmhTUIsnWLK","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"24rdBohbFRFNsyPE-sGBp","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"N9qWIayc8CaUFpEM1toF9","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"slRQemV93RhdscoU3NkoN","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pfsTW3portd8FujQt7SPz","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kkANEl9LC2d4ZQOQv1yQG","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oGbw1OCpjrivurWQVzWhN","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a23eqFaQs3wVZMxt2jxmA","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P8ycN4WtnyhSNdsSxdj3-","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Z4ODivBSr1qIQr42bF0-b","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z_cC_0HXwOL7Itgw1eNe_","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this Light2d (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9AlO1ze196DB_5orfiplP","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"WOSRjET9H1EkdSdkHrCrK","name":"Line","type":"ClassDoc","description":"

                        a line segment Object

                        ","params":[{"identifier":"x","description":"

                        origin point of the Line

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

                        origin point of the Line

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

                        array of vectors defining the Line

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"dvyLF12wNGYiF8rM6UPcY","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PtgFhTWvfnpcyCbYssFzd","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sUdfakikvyBGJNSyvrFi0","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rOQIDUp_h5F4rGUTbmTJQ","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this line segment

                        ","params":[],"returns":[{"description":"

                        new Line

                        ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IXSdJsCTBx4rgeW8NYnJv","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","description":"

                        origin point of the Line

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

                        origin point of the Line

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

                        array of vectors defining the Line

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[]},{"id":"WCFqTo4HzNw6sTFu2ncUu","name":"contains","brief":"","examples":[{"caption":"","code":"if (line.contains(10, 10)) {\n // do something\n}\n// or\nif (line.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the Line contains the given point

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to check

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if contains

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NmOYGErRMcMmpTio5N7by","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S1pFnzvr_t64ynUW3AlPO","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2dqX4i0xpQuLOurB95MvK","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nYEWEtj5TahiF2FA0G6MQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision edges and normals.\nThis must be called if the points array...","params":[],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R0lr6Kwqn0jgQZ3Id2caB","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FRlwH8ZmFzjR4_vhQ8yYa","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given scalar.

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v6kk4puRkog17NBGqWWYl","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RYnLBeHdya_wh2qAp9IXj","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the Polygon

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4VsfTKCKb3uwT6_w0at8A","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QOHnAk5gp7vqCWtO-gHNz","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"uaoOnul5G6UGfws3DtkF6","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xc64rOMoQGBMtPyVVJNzd","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LHJJDleMM4qhNYbj5pFvE","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the given transformation matrix to this Polygon

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FhUCcW_bQ98q5Ip1W2BMF","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1wKg30As19L2UXaO3jSXy","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ADoxMy8TwrRD9MNP6GZJI","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

                        a Matrix2d Object.
                        \nthe identity matrix and parameters position :
                        \n

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"OMC8bdonHVbKX9mhoKE7U","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                        tx component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aEC5eOv9DVG2ptx3S3D-2","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oSCbWv4RY4wuF9aGyN_7p","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the current transform to the given 2d or 3d vector

                        ","params":[{"identifier":"v","optional":false,"description":"

                        the vector object to be transformed

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        result vector object.

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"ErbfAWen_J7J8Ml7_S0_u","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the inverted current transform to the given 2d vector

                        ","params":[{"identifier":"v","optional":false,"description":"

                        the vector object to be transformed

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        result vector object.

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CnzxeLJ1jahxpLxHYOxyt","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clone the Matrix

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"joNQAQoSUxJYn8BvB7LjI","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

                        an instance of me.Matrix2d or me.Matrix3d to copy from, or individual matrix components (See {@link Matrix2d.setTransform}...","dataType":{"tokens":[{"value":"Matrix2d | Matrix3d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2 | %3"}}],"returns":[],"extends":[],"implements":[]},{"id":"77_YKq5RoEcL2V_L8TKOY","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copies over the values from another me.Matrix2d.

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the matrix object to copy from

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JHJ5lbRbdL0eoOcpfHvea","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the two matrices are identical

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the other matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if both are equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Z6NVC4yf7upgahHxzRcEm","name":"fromMat3d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copies over the upper-left 3x3 values from the given me.Matrix3d

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the matrix object to copy from

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r_GS3xt6nG7rmU89asaQe","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        reset the transformation matrix to the identity matrix (no transformation).
                        \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kgtISC2GN5dWaWdtanXE8","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

                        invert this matrix, causing it to apply the opposite transformation.

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zQlpJypmskInmtQd255Wn","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns true if the matrix is an identity matrix.

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RYpjj8h0wXU440IRtC4hN","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

                        multiply both matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the other matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WIKby4DRZltdRBtfrLNfs","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        rotate the matrix (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        Rotation angle in radians.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IxIJJf7_M8AdxAnW_w0-B","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the matrix

                        ","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HhG86nBtzG-OuT_lFd7s2","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds a 2D scaling transformation.

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cge7rZB4HVjoUbykuoMTQ","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

                        specifies a 2D scale operation using the [sx, 1] scaling vector

                        ","params":[{"identifier":"x","optional":false,"description":"

                        x scaling vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TdoAwuBMcYEWgr5f9A2DN","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

                        specifies a 2D scale operation using the [1,sy] scaling vector

                        ","params":[{"identifier":"y","optional":false,"description":"

                        y scaling vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CtnsUCpBWG_3ndgynVsCg","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the matrix to the specified value

                        ","params":[{"identifier":"a","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"i","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l6gsWaYGq6d74O22KR7Rt","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return an array representation of this Matrix

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6f9AJbVOA41qtrSHMaAbl","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                        convert the object to a string representation

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"YP9tELsnMHlRfD-hQ9i9U","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Multiplies the current transformation with the matrix described by the arguments of this method

                        ","params":[{"identifier":"a","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9SiXr0j5t-Rh_fuH0p6gu","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        translate the matrix position on the horizontal and vertical axis

                        ","params":[{"identifier":"x","description":"

                        the x coordindates or a vector to translate the matrix by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        the y coordindates to translate the matrix by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kJZV2fAAtuWNJpM8H6RbZ","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Transpose the value of this matrix.

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"s6mdN3yduwRcGCfaBV2l0","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

                        a 4x4 Matrix3d Object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Z5-U0NCvfQiz_j2uaqDKW","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        tx component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3igC1XHYbb4JS0J8udzF5","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YvmTPZQMLS8o_BlxqdNgQ","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6CeoEoTIblF3CQEILkGV8","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the current transform to the given 2d or 3d vector

                        ","params":[{"identifier":"v","optional":false,"description":"

                        the vector object to be transformed

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        result vector object.

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"bYMlaMCV6n9SVgNjR5QOW","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the inverted current transform to the given 2d or 3d vector

                        ","params":[{"identifier":"v","optional":false,"description":"

                        the vector object to be transformed

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        result vector object.

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"gRr13q7qioxcJw_CYvEPy","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clone the Matrix

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"trIyTG-acXNaA8tGErpJR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

                        An instance of me.Matrix3d to copy from, or individual Matrix components (See {@link Matrix3d.setTransform}). If not argum...","dataType":{"tokens":[{"value":"Matrix3d | number","kind":"canonical"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Sks-eF6DIA0Zn_NiQWhhY","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copies over the values from another me.Matrix3d.

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the matrix object to copy from

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CBZ9OKNEoc7GsCZuhqliv","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the two matrices are identical

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the other matrix

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if both are equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"34VGvl8lBjwmytAUZbhVW","name":"fromMat2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copies over the upper-left 2x2 values from the given me.Matrix2d

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the matrix object to copy from

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KKJtK8GecvQ8R2tiaAakL","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        reset the transformation matrix to the identity matrix (no transformation).
                        \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6MeiNhIkRue-XE_eYBkDa","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

                        invert this matrix, causing it to apply the opposite transformation.

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PZZ3OJu_UFze8GsyjSApg","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns true if the matrix is an identity matrix.

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7jttmeoIW9-Qd4wAqyfxR","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

                        multiply both matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        Other matrix

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JMOE3sVPMnfIvZjdLmXVg","name":"ortho","brief":"","scope":"instance","type":"MethodDoc","description":"

                        generate an orthogonal projection matrix, with the result replacing the current matrix\n
                        ...","params":[{"identifier":"left","optional":false,"description":"

                        farthest left on the x-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"right","optional":false,"description":"

                        farthest right on the x-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"bottom","optional":false,"description":"

                        farthest down on the y-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"top","optional":false,"description":"

                        farthest up on the y-axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"near","optional":false,"description":"

                        distance to the near clipping plane along the -Z axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"far","optional":false,"description":"

                        distance to the far clipping plane along the -Z axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lgh0vccM3YpQGwXcBycuG","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        rotate this matrix (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        Rotation angle in radians.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

                        the axis to rotate around

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pih_fuxmNd9I8uVTFWMz8","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the matrix

                        ","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                        a number representing the depth vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"va0YYo6yYh-rxETlc8_K2","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds a 2D scaling transformation.

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E1u0duxSmuvWaD2YY-Xjy","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

                        specifies a 2D scale operation using the [sx, 1] scaling vector

                        ","params":[{"identifier":"x","optional":false,"description":"

                        x scaling vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U0rRYXkuMMXpWfZsFxP-5","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

                        specifies a 2D scale operation using the [1,sy] scaling vector

                        ","params":[{"identifier":"y","optional":false,"description":"

                        y scaling vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1f_3R8gewe_oL17KqMz0c","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the matrix to the specified value

                        ","params":[{"identifier":"m00","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m01","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m02","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m03","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m10","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m11","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m12","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m13","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m20","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m21","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m22","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m23","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m30","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m31","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m32","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m33","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z43esQJ-lSzy9dI4PG4Xo","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return an array representation of this Matrix

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ovV__xSfPtum9oJimJDii","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                        convert the object to a string representation

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"e09W8SAgtvZttpBKhx1Dh","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        translate the matrix position using the given vector

                        ","params":[{"identifier":"x","description":"

                        a number representing the abscissa of the vector, or a vector object

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        a number representing the ordinate of the vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                        a number representing the depth of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_pugBDT8Wkm87aZ4YL449","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Transpose the value of this matrix.

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"mn2ocj2egNLifAcPsJ67e","name":"NineSliceSprite","brief":"","see":["https://en.wikipedia.org/wiki/9-slice_scaling"],"type":"ClassDoc","description":"

                        A NineSliceSprite is similar to a Sprite, but it uses 9-slice scaling to strech its inner area to fit the size of the Rend...","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"IA9E6kqXz8A7NVq48dg3F","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uSb810BZeNG3BUXCZDGUU","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5M2AM85COuF419HmxeJ6I","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D9YZJ1FwgIAhnmNGRufdP","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hRV8euDmB8dygxyrdLIeS","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y7Hx-66TtS8u7oEOCc1Ou","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XrFQuFXK56svH1Q9PRK2v","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y96H0dliWkQhcaZM5_5as","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dw-gIReimejl8Hp1iDDdi","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tJJVuC64WRJ7YQyXuQlRF","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5mPRsIbgac_1Oh__dZSNF","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9JNDORa3-PMt4GGNzR8pn","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dylWIyPsrOYJRuFfh0h2r","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mfcntC5oIcFDpBKGufbLb","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n5F7clwx0nHkxsnacp4Tu","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Xsh-AtPCQfz1mAvoHOcK","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"atk1QoYtigIdXmjTKiu8u","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the NineSliceSprite

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"djo96mB_Fs7rrJ8ZAgQ7G","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ItfXN_WHqodAEoTK1BAXJ","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w0RVseBkf2sWem9PL62Ot","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0J_wg8brZ0f3UsfzY6YSW","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aPixM8q6FRYpaFssriIWY","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"awk3advACerCX3-9PTTP2","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wiOyxtQMy11SD8RIGr4lj","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9wExNZ3F70A9NH8m7M86I","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9L9jzEpSJVR2cCA0g5P0m","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u_6NABtEm-Ut47bJvYtzz","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RktlCi8qIkOzgQFgDS0Uq","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DNAp6l4OXgiyvsyjVcDNM","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                        global offset for the position to draw from on the source image.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9rGGoFundNQX7V4Nn9GBr","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uXxxkHywNtgJpAludOHOy","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7K-Uot3JIOgnfpR5gri8j","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h7aMxKbvj_-LbdL-dRlJE","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nG_HzjfEannfQDgvznwbx","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"90s0gXQlFc6qSww2M89iX","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wYAz2O1ouYWTxmv99ODsO","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0shPsEjQh-7xhLUIscVQE","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B_HAlQE_FgKmhV3dpkyuE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FMXU7yrdHa5iNJx7bqODM","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ejhEPhzsWjHyAHoE_T5v","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QI-Ub4tp2V-vTqiJ-TZZZ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the NineSliceSprite

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DenkdyME-KK4jMm-JIEiw","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        add an animation
                        \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                        list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                        ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                        cycling speed for animation in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        frame amount of frame added to the animation (delay between each frame).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UxZpsw9KYWpyBwJbuR6fG","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eyxWbIYwAYOg4Js8v9n1l","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z8cePKEOCwHg_o0I2-JdS","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0_i-y7_BkUhgQ1U5QVzud","name":"constructor","brief":"","examples":[{"caption":"","code":"this.panelSprite = new me.NineSliceSprite(0, 0, {\n image : game.texture,\n region : \"grey_panel\",\n width : this.width,\n height : this.height\n});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the sprite object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the sprite object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        Configuration parameters for the Sprite object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.width","description":"

                        the width of the Renderable over which the sprite needs to be stretched

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

                        the height of the Renderable over which the sprite needs to be stretched

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insetx","optional":true,"description":"

                        the width of a corner over which the sprite is unscaled (default is a quarter of the sprite width)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insety","optional":true,"description":"

                        the height of a corner over which the sprite is unscaled (default is a quarter of the sprite height)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.image","description":"

                        reference to spritesheet image, a texture atlas or to a texture atlas

                        ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

                        name of this object

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

                        region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

                        Width of a single frame within the spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

                        Height of a single frame within the spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

                        a tint to be applied to this sprite

                        ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

                        flip the sprite on the horizontal axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

                        flip the sprite on the vertical axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

                        Anchor point to draw the frame at (defaults to the center of the frame).

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7VoWOEsABhPk-pTMHplGs","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"s2EJxyFP7WDR-o-RhjB2e","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KWR65FlTyVZg7_l2nUTqH","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GJDxRfA6Pb21YvVMLtLHz","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3wOYFqNc_RaAO4caWLwhx","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                        make the object flicker

                        ","params":[{"identifier":"duration","optional":false,"description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                        Function to call when flickering ends

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JDj2j7LS0_818ej84-TQY","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HJ6-6hVCu94xYZpPGl0xE","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dVi50d_3r6lP3jqvvJygs","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Y8poPKOmw7jzQ1-g8Zuh","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1Fx4HuOtYgXHPy0nxSzFx","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current animation frame index.

                        ","params":[],"returns":[{"description":"

                        current animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uzFEEQkBb7jLnfskaEoHB","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"a2Htg4cmpC25EvQbwWXHl","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gaD659WE5dkf-pBGkmfwY","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"upLGpgwZRv0IJBhi3Pezk","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        return true if the specified animation is the current one.

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OwI5XJ88sFEPtlMmnQw5l","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"N2x-RmFnZMBxckSsb2kVL","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the flickering state of the object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6Xuu_zwUz2TD5MlcsdoKH","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3sQB25mx8Z6QuyzYhG7ck","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fLr8tahIc1u7Gk3Ye1K3W","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C-c2Hm4ADV9VDzcRpcv8J","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4ROAzFCOfyPsMlEBU3s31","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w3dfwJxNJxmA6s5qocrED","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ENQi0hYsVxQjmvq2ns1gr","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"eXptcPlHcf4XX9QREac09","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GX--hJQ-RyZzAJi7H2aaA","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ab4MVWaOtviI-5hx74L81","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dtWmoBQ-6X5MsNllwsbrZ","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        reverse the given or current animation if none is specified

                        ","params":[{"identifier":"name","optional":true,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S4Jl1vEU9EPR1PduXuIbe","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"raGQ0wjFIipJhbTOLnBqF","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QXJtiWiBtMi6szHo5j599","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"doXyuTBaQskNR5JhVDjnI","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                        force the current animation frame index.

                        ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                        animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WWd-6OnDNbs4WdxR9w8ru","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                        set the current animation\nthis will always change the animation & set the frame to zero

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                        animation id to switch to when complete, or callback

                        ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                        if false will reset the elapsed time counter since last frame

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2NNI5mnnBatEV1URdLAKM","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q90vOTQIZSqdRme4F_vaB","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                        change the current texture atlas region for this sprite

                        ","params":[{"identifier":"region","optional":false,"description":"

                        typically returned through me.Texture.getRegion()

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OCD8Jvhoze4wqVpvY3_SO","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n-GXT33W4PR_aFAZgsEMy","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RqHi-lu-TEJfyiNODJYNt","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ev5DIrWvc-LYnPXaur9K2","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0jgMMCJDhslL6w1c0gbqu","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wo6S7_CZcxJkmgtkxCRss","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0hpvcqhbWFDfmloN7GHsM","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ms2e0jEXI6P1cszdBVJVm","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LslYtawpV_f_6wTk9QaDh","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dXMWgMRIcy0dflgw8d9Ri","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fkqvYksX57gPne1yVUOym","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this srite (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nbuXPLBVYdapZGQw3esgu","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        update function.
                        \nautomatically called by the game manager {@link game}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Sprite is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xyzXIBMRD3Yifrn-sl_XF","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"pk2bUviTSEZuJGeGBsZ-V","name":"ObjectPool","brief":"","see":["{@link pool} the default global instance of ObjectPool"],"type":"ClassDoc","description":"

                        Object pooling - a technique that might speed up your game if used properly.
                        \nIf some of your classes will be instantia...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"YZnfkSnwmwYm-_guJuRGW","name":"exists","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Check if an object with the provided name is registered

                        ","params":[{"identifier":"name","optional":false,"description":"

                        of the registered object class

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        true if the classname is registered

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"r5rLtpOD_rp9zUk5lhanD","name":"getInstanceCount","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the amount of object instance currently in the pool

                        ","params":[],"returns":[{"description":"

                        amount of object instance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dltu4xv3xIApou96bZM-x","name":"poolable","brief":"","examples":[{"caption":"","code":"if (!me.pool.poolable(myCherryEntity)) {\n // object was not properly registered\n}"}],"scope":"instance","see":["register"],"type":"MethodDoc","description":"

                        Check if an object is poolable\n(was properly registered with the recycling feature enable)

                        ","params":[{"identifier":"obj","optional":false,"description":"

                        object to be checked

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        true if the object is poolable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Tkjibn3O7aDfyGIOWpJSu","name":"pull","brief":"","examples":[{"caption":"","code":"me.pool.register(\"bullet\", BulletEntity, true);\nme.pool.register(\"enemy\", EnemyEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = me.pool.pull(\"bullet\", x, y, direction);\n// ...\n// params aren't a fixed number\n// when we need new enemy we can add more params, that the object construct requires:\nlet enemy = me.pool.pull(\"enemy\", x, y, direction, speed, power, life);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\nme.game.world.removeChild(enemy);\nme.game.world.removeChild(bullet);"}],"scope":"instance","type":"MethodDoc","description":"

                        Pull a new instance of the requested object (if added into the object pool)

                        ","params":[{"identifier":"name","optional":false,"description":"

                        as used in {@link pool.register}

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"args","optional":true,"variadic":true,"description":"

                        arguments to be passed when instantiating/reinitializing the object

                        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                        the instance of the requested object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"qAV-wRFPSl4yPRk1rK54f","name":"purge","brief":"","scope":"instance","type":"MethodDoc","description":"

                        purge the object pool from any inactive object
                        \nObject pooling must be enabled for this function to work
                        \nnote: thi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6DFUW0oKifpkY6NnI9CLK","name":"push","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Push back an object instance into the object pool
                        \nObject pooling for the object class must be enabled,\nand object mus...","params":[{"identifier":"obj","optional":false,"description":"

                        instance to be recycled

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"throwOnError","optional":true,"default":"true","description":"

                        throw an exception if the object cannot be recycled

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        true if the object was successfully recycled in the object pool

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dsAPBtp8CK9KRh9YH95xi","name":"register","brief":"","examples":[{"caption":"","code":"// implement CherryEntity\nclass Cherry extends Sprite {\n onResetEvent() {\n // reset object mutable properties\n this.lifeBar = 100;\n }\n};\n// add our users defined entities in the object pool and enable object recycling\nme.pool.register(\"cherrysprite\", Cherry, true);"}],"scope":"instance","type":"MethodDoc","description":"

                        register an object to the pool.
                        \nPooling must be set to true if more than one such objects will be created.
                        \n(Note...","params":[{"identifier":"className","optional":false,"description":"

                        as defined in the Name field of the Object Properties (in Tiled)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"classObj","optional":false,"description":"

                        corresponding Class to be instantiated

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recycling","optional":true,"default":"false","description":"

                        enables object recycling for the specified class

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"PPaOEUU9w7PHj0r45yTLo","name":"ObservableVector2d","brief":"","type":"ClassDoc","description":"

                        A Vector2d object that provide notification by executing the given callback when the vector is changed.

                        ","params":[],"returns":[],"extends":["Vector2d"],"implements":[],"members":[{"id":"NK4w0_tT_P0puSRO0NLVW","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TcShCdDWlE6R1zpScleqK","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        y value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h-xFQo70rpL5IzYjWNNSC","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector values to absolute values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oFxRSd8ESyv9q4PFMULQ4","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add the passed vector to this vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3ECesbT5AIYIT3JSoM8n0","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle between this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NHRX1DkfXLjGY1auDZtxh","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Ceil the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector2d

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X12kTFBS-RrN-4eajXYq9","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Ceil this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vjo0Sr7zm0IrULE3GhXXr","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clamp the vector value within the specified value range

                        ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        new me.ObservableVector2d

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EvgPsYb29zsCKQEwPoHow","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clamp this vector value within the specified value range

                        ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Rma7ZTApMsvA9o2Za4NR","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a clone copy of this vector

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector2d

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PgsHyP9xF1HkOGdBhyoPi","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

                        x value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                        y value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        additional required parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

                        the callback to be executed when the vector is changed

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

                        the value to use as this when calling onUpdate

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"iV0HQE0O1kzvM-Vt1e0kE","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copy the x,y values of the passed vector to this one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UiT2B7VGGZhQMMTOGMbT0","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the cross product of this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        The cross product.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v9IqtodNA27ZmxQPhSKPj","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance between this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KHxw0Sv9qhSMLB4KsUiHf","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Divide this vector values by the passed value

                        ","params":[{"identifier":"n","optional":false,"description":"

                        the value to divide the vector by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vS7aNX1tAul1HVJdfHKCy","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the dot product of this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        The dot product.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ocGZDxyyqkb_XR-2vmWGa","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the two vectors are the same

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Y2_nb1EDw_8bqCJSa9U2c","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Floor the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector2d

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_1aUy96Rrs7pDsL_Ez_sq","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Floor this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xd46yREZsdFIykrwTjJ2h","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the length (magnitude) of this vector

                        ","params":[],"returns":[{"description":"

                        the length of this vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GlAW9HZv-iQ7q2ofoVB5d","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the square length of this vector

                        ","params":[],"returns":[{"description":"

                        The length^2 of this vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hBLb2TJbPSZGUoX-Cq_4C","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Linearly interpolate between this vector and the given one.

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

                        distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XsQKsjLAO6NtYmIVWNOU-","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector with the maximum value between this and the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mSgGZWcEV30-zxtNe9YUK","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector with the minimum value between this and the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jlXeJHrN5pswE-yCargWY","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                        interpolate the position of this vector towards the given one while nsure that the distance never exceeds the given step.

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

                        the maximum step per iteration (Negative values will push the vector away from the target)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o-UhMDdlg8A8uTmwcgsh9","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Negate the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector2d

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ReFCpnY9v6wh9PkoEf5jK","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Negate this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TBKKFkzzH4flvx6ZD7oAD","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        normalize this vector (scale the vector so that its magnitude is 1)

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4zwOpylUgb1c_O_Gaz7Uo","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        change this vector to be perpendicular to what it was before.
                        \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GK7jKIx6fZ9M2fvxayQH-","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                        project this vector on to another vector.

                        ","params":[{"identifier":"v","optional":false,"description":"

                        The vector to project onto.

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ipZ-2U0f-1dDzayH83YbJ","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Project this vector onto a vector of unit length.
                        \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                        The unit vector to project onto.

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z8-aDAO_gc27f7wFE-7mm","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this vector (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b8QRK7cvgjaUCLgFYpwnI","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Multiply this vector values by the given scalar

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vNXqXd4KoLugE5wT6Vnfs","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Multiply this vector values by the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EYSTSIMY9tgnE7x5vRKnA","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties to the given values

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5HBOvSTsoKcPprQHauJ7s","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the callback to be executed when the vector is changed

                        ","params":[{"identifier":"fn","optional":false,"description":"

                        callback

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

                        scope

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xzID0834tqK-PWmVcacH0","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vector value without triggering the callback

                        ","params":[{"identifier":"x","optional":false,"description":"

                        x value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        y value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t9565YVf453RUP7XhRCqK","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties using the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y2Ik77QNPozlrLRP7z5hW","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties to 0

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_k36gErekxjkhalaCAwOC","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Substract the passed vector to this vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bW9X4c2644mLkBiZZTsO4","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Convert this vector into 2d coordinate space

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5ByNM9x8Ez7wK8kHWDP1n","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Convert this vector into isometric coordinate space

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fKARCx8X-NZJzCPQbxWwk","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                        convert the object to a string representation

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"TOt6YEv5IuUu0fGmBEUdI","name":"toVector2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a me.Vector2d copy of this me.ObservableVector2d object

                        ","params":[],"returns":[{"description":"

                        new me.Vector2d

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"DoxX4AIhO5TZo0gqCg63W","name":"ObservableVector3d","brief":"","type":"ClassDoc","description":"

                        A Vector3d object that provide notification by executing the given callback when the vector is changed.

                        ","params":[],"returns":[],"extends":["Vector3d"],"implements":[],"members":[{"id":"PiCtNNiu6XwBKefdBobYx","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5sNRmXjms2JRjKKCJ6emE","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        y value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"51UWkTjpduPbhHRKH--R3","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        z value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ETORxUegCBFT_SI-Ysz7O","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector values to absolute values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-JAjcZNcDP40pi40YnKzJ","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add the passed vector to this vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p0YvaZT6JHaCt6o1vyYZR","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle between this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OfDJ_7xbZjZtbb7blvB7j","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Ceil the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector3d

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mZqeoSqTFZY0AWeweSaSt","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Ceil this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SrA6kTsNqGAplA6Oi1WJk","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clamp the vector value within the specified value range

                        ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        new me.ObservableVector3d

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UyNnzLhkn-cKf-H1DlWWq","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Clamp this vector value within the specified value range

                        ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D982Q19dM5jN_X7OdPnry","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a clone copy of this vector

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector3d

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iekveB1C6X75OfoP1oQeJ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

                        x value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                        y value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"default":"0","description":"

                        z value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        additional required parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

                        the callback to be executed when the vector is changed

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

                        the value to use as this when calling onUpdate

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"lVis6acxgTPckWwWMa7J4","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Copy the components of the given vector into this one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4hT-j2qs3bSUm8-SvXVe8","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                        calculate the cross product of this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pK17XoSsO60Anli3bfZWD","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance between this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_lj-y_hJVsQvcWa5e-pw1","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Divide this vector values by the passed value

                        ","params":[{"identifier":"n","optional":false,"description":"

                        the value to divide the vector by

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OhkoLKxAEKJ4j4Iuq8w_z","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the dot product of this vector and the passed one

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        The dot product.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XmIPxIkwGQ8-NQ8-6bQSG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the two vectors are the same

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SoBtu7el_Zu-4k2h7fktX","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Floor the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector3d

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"07gVYQcrchxhE8AgOoFHo","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Floor this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FOF8NrVnwnXKyLSx0P3k0","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the length (magnitude) of this vector

                        ","params":[],"returns":[{"description":"

                        the length of this vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pO4YCDrdqb7KrQihu8DAm","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the square length of this vector

                        ","params":[],"returns":[{"description":"

                        The length^2 of this vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eAJMZaHorOAXClCF9EytQ","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Linearly interpolate between this vector and the given one.

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

                        distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8bXBS8_md6udVsCqQJUON","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector with the maximum value between this and the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mljKc0pniUspIMZE-W_Zh","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Update this vector with the minimum value between this and the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cgu3YSwdoYPuuwlfi7pX-","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                        interpolate the position of this vector on the x and y axis towards the given one while ensure that the distance never exc...","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"step","optional":false,"description":"

                        the maximum step per iteration (Negative values will push the vector away from the target)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L5OhjmBDZ-7qm8AyJiDzo","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Negate the vector values

                        ","params":[],"returns":[{"description":"

                        new me.ObservableVector3d

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OOIO6PFWPFyH2yRmM0wIB","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Negate this vector values

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ql0RcGh8cD9PJu7Pi_GZO","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        normalize this vector (scale the vector so that its magnitude is 1)

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"49r7FhP1IJbusFihVxUQU","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        change this vector to be perpendicular to what it was before.
                        \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iBqGFuo0lfA3nCnvwGqck","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                        project this vector on to another vector.

                        ","params":[{"identifier":"v","optional":false,"description":"

                        The vector to project onto.

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rXbDqTf1AhWQq6X7fjHh3","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Project this vector onto a vector of unit length.
                        \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                        The unit vector to project onto.

                        ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bP8IegrbcFwMJ9rA_dUgw","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this vector (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around (on the same z axis)

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"czFtVnlyDaqgdd1JN0ugP","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Multiply this vector values by the given scalar

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mQ2-Mm-oHRnnh-i5pgnnW","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Multiply this vector values by the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E2N7CMT_pyH6YEXAsff_b","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties to the given values

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ycCzEJXIjcROlODliSGj0","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the callback to be executed when the vector is changed

                        ","params":[{"identifier":"fn","optional":false,"description":"

                        callback

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

                        scope

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gx_BJLD9JprJF9_ZwnTE2","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vector value without triggering the callback

                        ","params":[{"identifier":"x","optional":false,"description":"

                        x value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        y value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                        z value of the vector

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IbIjn-FtyMYgYUlrqXz6a","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties using the passed vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uamWeW2UJe3AJeFtIT2la","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Vector x and y properties to 0

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z3f0Y1iJIg2dyIkElvo-B","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Substract the passed vector to this vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dHFLMY0MVl5Bzb7-q6fY_","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Convert this vector into 2d coordinate space

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LYBY_LEHrRX13R5FSTHtw","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Convert this vector into isometric coordinate space

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ahDPP7C7fP8vP8w8VsOrJ","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                        convert the object to a string representation

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"uR20LmUVk3_R_G6uiJq7z","name":"toVector3d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a me.Vector3d copy of this me.ObservableVector3d object

                        ","params":[],"returns":[{"description":"

                        new me.Vector3d

                        ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"Q-tC9_NUjKMwKzt-HTFOg","name":"Particle","brief":"","type":"ClassDoc","description":"

                        Single Particle Object.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"hPUeiJTTxaTeVRAFmvmmi","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KvHOPS4I4QBzt68ninMDU","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xo6z1fuD4yLDlCIJKS8OA","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Kj1TwxED9m7LLWozPHejS","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SBuZXqB0-Z1aSSMX0pZZ_","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KX-UCGli80bDh10BgSRZ1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o3EFpHRlbxEszWVTKo-g7","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9UO89QqIVYOcEjBoAC2eR","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NM5Y14V8HJTwU3I2nvO62","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M9DCq2imxBJqZ_QNTD9rY","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jnutb9V-2rkEg0jU8oOJF","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MQwUnCui-Zi14W2O0eLYI","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N99tWAx_pUWQK1SFF_cm8","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dv3X9OpJyocBEvXDEFLO5","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0-7mvrFguxCV9AUNZKPHo","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIQmQPHZOh-nbb4Nzxlqh","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RgS--YQ3BJ81kMFLEwnwd","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kTmLOHWBm2VqskK3w8Mpy","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ghpka3hMUgRFWvF2gfHBf","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0FWRz5v7Rra5JhBb6wVOS","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dkjFpMM2f2DC5w_7fzRdW","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0P8kjuSwpIr4DJm5RRIzD","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6f9DuJakZDMp0MgLSMPat","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P0BZRcJ-uVbErIrU5Lcbi","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s_WGq6AkT8nK5Ok6n3RrG","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KXDriI8Gpor-U44JN6FSa","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"heHVoJvP94QLHsEV5C5_n","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xmSb1zDdHw20OUz98ZnXl","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X7X7PPS7R4Z_WSv05ovCj","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jvfrOm4e_oejnjy-GTR2Z","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3diTzgwn3mlG89u5Dfs2n","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"or8GrkEYQb90DrRkoJvJj","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SZKUPkbG2bfXCIsFUJqWi","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zkqqTC59cOBoZjL9ewzsl","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nfk41eDlELHeVeoI5Im-w","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DTWvg6Dwotu1XJs1hwIQi","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HMwAPPZbs0EdSnZ1HGyN3","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fUlZ1KS2Jqoi_tpHGF6KI","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ySoFBxRShqAFmsoiBhUQ2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"frV1YNfD83Ilh6AjdPz4T","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"emitter","optional":false,"description":"

                        the particle emitter

                        ","dataType":{"tokens":[{"value":"ParticleEmitter","kind":"canonical"},{"value":"ParticleEmitter","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pEcYMOhT91zwdiPiVlcJY","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9c_b1r1B-MBVhQpypWJ4P","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RFoITBNPS22iCq8qjFSYT","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NKyfq80IZpBeGALhqvzQy","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AFbboTg8PU2iTIsSJ-LVi","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CE6Mu_rSZRLtW-BfZ3jiX","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9Gteu8ezAhBsDxX9G_Mvb","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HP6st8YCure9OOuKDGHWT","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f3rovCDlhtEBU3bViIfhf","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zMJIRIyW_yIHusvKgeAoa","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-vdlED1agGR3pXFDo8XKH","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0pDor_sIBdmpbTlEVkBlc","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mZ-KBxAsiy7eqxx_IxK6x","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2knbLSqes1wjEh5hTbwzA","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"McUD9QCjsL9vYiDeSatck","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3wP5Xd8mrKJ94hdIJ1TzG","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G_iMcdFQy3qT77y95-QkB","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"olOjaYsNw-mOuBpKbEHtU","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"3YEBrTTC6XtMq7JPfdvgG","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"sy5mxCuZ08TOQq13LhEP1","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XYQw7njCtltb7unBpPo_-","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rxc4-h7-5YWMaEw_XjVeu","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4lIheiHRjflg5PDWmFOPw","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ffFtBsGKcURucFAQ0ar9u","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WoKWI2tDTySaoaFT8JUvW","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TAaU0R9qgx-QJtN1dtPeS","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X7zk6MskHKNhfJczC-yX6","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AxJ41zUa1fCyrIHgBCT_S","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xwiV7vqJr8-miF9EIPcz5","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yhCZiYL6i7OX67i45lASl","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kwQBd5i5b74ZprQv6WKmv","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kqbHwuUSpUjQpZj5XcivN","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"re0WxWQbMc2w7h8rjgskI","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zu48j2YLSFnRNaJaGI0mJ","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XWmTSbXV4xCSjQhGE_8xI","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eMZaoWGA6vOFFka62TNCp","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tbtXLOD2GWQ9GCzMJmy_k","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"2myZZMHMstTNZ1Cw6rx0x","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

                        Particle Emitter Object.

                        ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"Q52p6ZvmzEqLMnma9fmrb","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1hywTEPUGgaRMSg54Q4N4","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e1by4eRzfBgaozdG0LOdn","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K3l_P69O4RHJwvYK-ftgt","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5uLS5VQXZHE6n0hl4P81F","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the children z index should automatically be managed by the parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tC5Bkggp5O9YdtqUsIl5n","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the children list should be automatically sorted when adding a new child

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wl7guQ4B8HLaH6h6hYnMS","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R6HfKkOs-D6mDCwdvGN59","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a background color for this container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZDMX5W_svVNqz8GN8TQH3","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eGbC0im45w-5L5IlejYJv","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ct6PnKrKMf1u6686Qv-Jc","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OaNJvd23nGBGehdDFIE0u","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wby7T4UpDrXqrL5aMRlmc","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KaAqj8rs2LxrXPU2n7bPA","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the container draw operation should clip his children to its own bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cp0NMjhJgu0OyO_sTGnmU","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uJbS4lMh5mISKQbS5tW1g","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"15OZ5YmQZQrWRiZFiBgBQ","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fGdy1NWXELx79X-0EgEl9","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HkS1tkPBefKjJTMCa29Ae","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJLsIjxRm6LcMSCDYVr0X","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5vpHdckT33OrUyojFqHK_","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZbiRd44kgbH_fhzWObXCi","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XEdhSO21Fw0XoRwvQQrSY","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ryZQjDy4DZNkJ7-T-a6-","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uty_hFsTftInvGGgguiOa","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VXW5v096HBtFG06oa1hob","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hyCE5qEakT6Lh6xUCO5g2","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4zCe_YBXGFQ-Q54znVMnf","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Ecak1nfHaX8b_eOrHd8_","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WtykR9GBju_HjZNS-lz8h","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OMrkFilawf5givyhoPQql","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AzE7aDHhk1QXeKup-cypF","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-47mAvuQs3lZtSnmwa-Pk","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LkhSQXW4uwBkdfudbihMH","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vOIW940YYBV6MNrtcl-tH","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vo9Y9OcvR7qRNnsOLCU0r","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        whether the container is the root of the scene

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xjxqVye6PTTXAAL2ONCCK","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the current (active) emitter settings

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dr3PGIpYQQo8X4WgMBVoQ","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QXQEJSJpCmEItZhFj9Ivu","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                        The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YsNDpGYBjTDz53Z9cUnIB","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_AuPRgARhKyJO1mKNCjRd","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5-bJF89KHi73AAfAcVVZz","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gdO3p68Ry7toQdjAlXKXC","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l2Ycp2Crx-Ecxq3me_ghi","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zY7fAy6BJwrJd0s_8RXAQ","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add a child to the container
                        \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                        forces the z index of the child to the specified value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the added child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PALO_N8TfXfTe9Y4OjVpK","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add a child to the container at the specified index
                        \n(the list won't be sorted after insertion)

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                        The index at which to insert the child

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the added child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VrkJ-yyJIUNx_8SVQTElS","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WYcZ6wv-xNEAV3Oh7Lwsd","name":"burstParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Launch all particles from emitter and stop (e.g. for explosion)

                        ","params":[{"identifier":"total","optional":true,"description":"

                        number of particles to launch

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NlRJTWUq2eM4UTxAeznn6","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1gboAYc3AQtyXD3c1lZgd","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z7k4U84OjdIG2GTuotLdp","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a particle emitter at position 100, 100\n let emitter = new ParticleEmitter(100, 100, {\n width: 16,\n height : 16,\n tint: \"#f00\",\n totalParticles: 32,\n angle: 0,\n angleVariation: 6.283185307179586,\n maxLife: 5,\n speed: 3\n });\n\n // Add the emitter to the game world\n me.game.world.addChild(emitter);\n\n // Launch all particles one time and stop, like a explosion\n emitter.burstParticles();\n\n // Launch constantly the particles, like a fountain\n emitter.streamParticles();\n\n // At the end, remove emitter from the game world\n // call this in onDestroyEvent function\n me.game.world.removeChild(emitter);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        x position of the particle emitter

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        y position of the particle emitter

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":true,"default":"ParticleEmitterSettings","description":"

                        the settings for the particle emitter.

                        ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"u7Z5rb9dSUxgrUXpw_380","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hdelA6dkDI2oTi2pLvPSr","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Hfl7It_bm03QBNJsLyd8m","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k0IwU-0f4gcOqLTy9p91C","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"i_Vn2dwKq7YxO_1Mt5jQk","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lqkNojWrJVDR_iZCA3wjq","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"chaIyHGxcjglvLb0lYOKv","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                        The forEach() method executes a provided function once per child element.
                        \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                        fnction to execute on each element

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                        value to use as this(i.e reference Object) when executing callback.

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"5iyTKQC7xoaqAx4aevjzZ","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y8fPYyS7ZdOZIubFJcaNL","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UZkVvAQBR84gOSyWS_3DW","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the Child at the specified index

                        ","params":[{"identifier":"index","optional":false,"description":"

                        The index of the child

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the child at the specified index

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pX8xJxERYiXTjdodBnKah","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the child corresponding to the specified GUID
                        \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                        child GUID

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        corresponding child or null

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yoF9AOQcwtffylY85EHW3","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the list of childs with the specified name
                        \nas defined in Tiled (Name field of the Object Properties)
                        \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                        child name

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        Array of children

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"FTXFflpiSojHwTFTtnjq9","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                        return the child corresponding to the given property and value.
                        \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                        Property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        Value of the property

                        ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                        Array of childs

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"3snnCAl9IzUXEDbAd6VCd","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the list of childs with the specified class type

                        ","params":[{"identifier":"classType","optional":false,"description":"

                        Class type

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Array of children

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"uNPAI3KdaG5zRpO36AM9T","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the index of the given Child

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                        index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N32PQW6h0B5UTCAMm6HRd","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return all child in this container

                        ","params":[],"returns":[{"description":"

                        an array of renderable object

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ErcOicIAdoebGcFdCN1Xl","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"movJ984KNLf-yGjnTOENx","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the next child within the container or undefined if none

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                        child

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RtneMmikIRIT89xVC0NxH","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GQAHucFvrmP-1Kz8myeB4","name":"getRandomPointX","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a random point on the x axis within the bounds of this emitter

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lsjctd12B5EwwWOyDfNgx","name":"getRandomPointY","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a random point on the y axis within the bounds this emitter

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ES5O-1AOlx4_sUjJal6n2","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the instance of the root container (i.e. the current application World container).

                        ","params":[],"returns":[{"description":"

                        root container

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u5vnJCnrMMYDzvhPknzwg","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if contains the specified Child

                        ","params":[{"identifier":"child","optional":false,"description":"

                        The child object

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VfPIidNY1pv0q2Lusf-Gr","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Checks if this container is root or if it's attached to the root container.

                        ","params":[],"returns":[{"description":"

                        true if this container is root or if it's attached to the root container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L2tBfAc-VtpNuE8bazbm3","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZBasAd_S_D7OgFkID9-Zx","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"x0Fj_9d-xuJGEXMkVphUH","name":"isRunning","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Emitter is of type stream and is launching particles

                        ","params":[],"returns":[{"description":"

                        Emitter is Stream and is launching particles

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uw3aTjR31g4LqEbqHcblV","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"THr6VQ1Yy1UGRZz-firii","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the child in the group one step backward (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"9nW9_VSq0TZS8diwmN2QX","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the specified child the bottom (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"wxdS_s0tf_CwKxCNxYxTI","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the specified child to the top(z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"8UbkVYoT803v4NhrEImHC","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Move the child in the group one step forward (z depth).

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be moved

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"asSQJs_CPOCOO40JeA-Iv","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                        a callback to be extended, triggered after a child has been added or removed

                        ","params":[{"identifier":"index","optional":false,"description":"

                        added or removed child index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"A-fHC7CK2twuRXsAMBVBL","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0QIHrQST89_kPe4uW6oRa","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sWdETw9wWF1JRmrprw9JJ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ApjJ6tYavlXUZSIb66e91","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"8I81eMphSlry30b_iqgUz","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"CXhfigQ343FyKRDGL-jZd","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lzHdudpmsz3Q2D0P5dXgY","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be removed

                        ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                        true to prevent calling child.destroy()

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"x8XuHctnZel868Lv_--Pt","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Removes (and optionally destroys) a child from the container.
                        \n(removal is immediate and unconditional)
                        \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                        Child to be removed

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                        True to prevent calling child.destroy()

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"bk42Z6NhKWdMoHAbvcl9z","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Reset the emitter with particle emitter settings.

                        ","params":[{"identifier":"settings","optional":false,"description":"

                        [optional] object with emitter settings. See {@link ParticleEmitterSettings}

                        ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X-8npJkxqfCAuf0U81HGO","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0pBD2tupEBNPg_KR5g-d3","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M2l5A74sD9MYXdX5nuwGL","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DjPDMVu01eeybY3iV1ac5","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"117lkDLr8PEhUXGkauEGh","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Automatically set the specified property of all childs to the given value

                        ","params":[{"identifier":"prop","optional":false,"description":"

                        property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        property value

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                        recursively apply the value to child containers if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VMA9Z0uOmTjkNoDkn717J","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CCZjkVSGRx7Gs0-h1bM0O","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WYqCnLdbD4y00HpRvnUk-","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L_aKVtQt0H14JMtC05aT0","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NT6RB_V8VNz-5VPyvIbS4","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Manually trigger the sort of all the childs in the container

                        ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                        recursively sort all containers if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"vgguyOOobCwqxqYYRAF-6","name":"stopStream","brief":"

                        Stop the emitter from generating new particles (used only if emitter is Stream)

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_b8kOs-rZi1aae4Be1OnA","name":"streamParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Launch particles from emitter constantly (e.g. for stream)

                        ","params":[{"identifier":"duration","optional":true,"description":"

                        time that the emitter releases particles in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gWcxjJqNb9yQhcZD2PCXE","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Swaps the position (z-index) of 2 children

                        ","params":[{"identifier":"child","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                        Child to be added

                        ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"TfOygSfBPPrS45D-UjKTI","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"68GVXjvfNNoUjIJwhyOd_","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V_LH7jW6rPKS02WxwrfX7","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ByPWBopfgObhibYGKxHs-","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v6FiL-A21r7DpNbY0SRhy","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4J9p_S5IbaVaUTIIBHLVZ","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PgAb9WZZ0kAlBGK8qlQVA","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this container.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this container bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_uvExiEqqVkwU5eDHBhD8","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this renderable (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Boo9FYgIRVwjUmvabMSQq","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        container update function.
                        \nautomatically called by the application update loop {@link Application}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Container is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XsHiXSaH1vyAc80f7w9PK","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"zuEH_Hb4LDFClA61Jh3Dv","name":"Path2D","brief":"","type":"ClassDoc","description":"

                        a simplified path2d implementation, supporting only one path

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"44mYF2Whx_ERGXrsrb0Ra","name":"arcResolution","brief":"","defaultValue":"5","scope":"instance","type":"PropertyDoc","description":"

                        space between interpolated points for quadratic and bezier curve approx. in pixels.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XPAFIE9TEj0rxDioAGETZ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the points defining the current path

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9bTvqnojnt1c-VZ7nXaEh","name":"arc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds an arc to the current path which is centered at (x, y) position with the given radius,\nstarting at startAngle and end...","params":[{"identifier":"x","optional":false,"description":"

                        the horizontal coordinate of the arc's center.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the vertical coordinate of the arc's center.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                        the arc's radius. Must be positive.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

                        the angle at which the arc starts in radians, measured from the positive x-axis.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

                        the angle at which the arc ends in radians, measured from the positive x-axis.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

                        an optional boolean value. If true, draws the arc counter-clockwise between the start and end angles.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"FxVF_XXNN3TCWDos55Rpf","name":"arcTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight li...","params":[{"identifier":"x1","optional":false,"description":"

                        the x-axis coordinate of the first control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                        the y-axis coordinate of the first control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x2","optional":false,"description":"

                        the x-axis coordinate of the second control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y2","optional":false,"description":"

                        the y-axis coordinate of the second control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                        the arc's radius. Must be positive.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zho8aMUfjico0sRHhyQGh","name":"beginPath","brief":"

                        begin a new path

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S_wSg_AmxAIHRZu4wzNbt","name":"bezierCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Adds a cubic Bézier curve to the path.

                        ","params":[{"identifier":"cp1X","optional":false,"description":"

                        The x-coordinate of the first control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp1Y","optional":false,"description":"

                        The y-coordinate of the first control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2X","optional":false,"description":"

                        The x-coordinate of the second control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2Y","optional":false,"description":"

                        The y-coordinate of the second control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                        The x-coordinate of the end point of the curve.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        The y-coordinate of the end point of the curve.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Lun1A8-9z-viaxzrVDZfO","name":"closePath","brief":"","scope":"instance","type":"MethodDoc","description":"

                        causes the point of the pen to move back to the start of the current path.\nIt tries to draw a straight line from the curre...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"No8cRSfqUr3Bjkdy5ymPK","name":"ellipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusX and radiusY\nstarting at sta...","params":[{"identifier":"x","optional":false,"description":"

                        the x-axis (horizontal) coordinate of the ellipse's center.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y-axis (vertical) coordinate of the ellipse's center.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

                        the ellipse's major-axis radius. Must be non-negative.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":false,"description":"

                        the ellipse's minor-axis radius. Must be non-negative.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rotation","optional":false,"description":"

                        the rotation of the ellipse, expressed in radians.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

                        the angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

                        the angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

                        an optional boolean value which, if true, draws the ellipse counterclockwise (anticlockwise).

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"maMavWoxXqPmMJg0fs976","name":"lineTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        connects the last point in the current path to the (x, y) coordinates with a straight line.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x-axis coordinate of the line's end point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y-axis coordinate of the line's end point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VvXYt-AOOtPCnifEAlXx6","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        moves the starting point of the current path to the (x, y) coordinates.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x-axis (horizontal) coordinate of the point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y-axis (vertical) coordinate of the point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ecAYlfu_Y8ZOJg4nQlfNm","name":"parseSVGPath","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Parses an SVG path string and adds the points to the current path.

                        ","params":[{"identifier":"svgPath","optional":false,"description":"

                        The SVG path string to parse.

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"0kSTV2_TMLZZvxG8r96_L","name":"quadraticCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Adds a quadratic Bézier curve to the path.

                        ","params":[{"identifier":"cpX","optional":false,"description":"

                        The x-coordinate of the control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cpY","optional":false,"description":"

                        The y-coordinate of the control point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                        The x-coordinate of the end point of the curve.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        The y-coordinate of the end point of the curve.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"b6r0B2O30I92rW3ca2mIC","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                        creates a path for a rectangle at position (x, y) with a size that is determined by width and height.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x-axis coordinate of the rectangle's starting point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y-axis coordinate of the rectangle's starting point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        the rectangle's width. Positive values are to the right, and negative to the left.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the rectangle's height. Positive values are down, and negative are up.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MYrD6d_vrDj8NePH6yfx8","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                        adds an rounded rectangle to the current path.

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x-axis coordinate of the rectangle's starting point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y-axis coordinate of the rectangle's starting point.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        the rectangle's width. Positive values are to the right, and negative to the left.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the rectangle's height. Positive values are down, and negative are up.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                        the arc's radius to draw the borders. Must be positive.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ne3rhfTo9Mo-Yy-6I3Y_x","name":"triangulatePath","brief":"","scope":"instance","type":"MethodDoc","description":"

                        triangulate the shape defined by this path into an array of triangles

                        ","params":[],"returns":[{"description":"

                        an array of vertices representing the triangulated path or shape

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"73iHihZAJG7tKGdYrEn7h","name":"Point","brief":"","type":"ClassDoc","description":"

                        represents a point in a 2d space

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"v9ZVEfgHeCsU358MY6Uf2","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mf_gLXQwD26816Cakn2oB","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        the position of the point on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sl_zPAGuG38cfPyIHZplC","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        the position of the point on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s_FM_k8uO5mrOQ5X7GmNR","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this Point

                        ","params":[],"returns":[{"description":"

                        new Point

                        ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cXG_DXCdxaqEE13B927QG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if this point is equal to the given point

                        ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Point | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"B8oXAPjn0wJFSkhfl1QAQ","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the Point x and y properties to the given values

                        ","params":[{"identifier":"x","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"9sWbRCeQxrRPsbR2HuZEQ","name":"Pointer","brief":"","type":"ClassDoc","description":"

                        a pointer object, representing a single finger on a touch enabled device.

                        ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"NnFYJ65Tf6ZDBUOFZYK_2","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vVvqlvzUqk3YMn76g_pYM","name":"button","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button"],"type":"PropertyDoc","description":"

                        the button property indicates which button was pressed on the mouse to trigger the event.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NeRTpT_R3HdC99tv9-v1G","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the center position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bhD3-ssLcdnoIaEpRvoC7","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the x axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3WV9XpQW2Sgpars9wK_6b","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the y axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6OExlouKDIwSqf8JYFGrw","name":"clientX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX"],"type":"PropertyDoc","description":"

                        the horizontal coordinate within the application's client area at which the event occurred

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6UxJfd1GdV00tgvmCopHj","name":"clientY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY"],"type":"PropertyDoc","description":"

                        the vertical coordinate within the application's client area at which the event occurred

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZYlo5RykltQqZIGulJfQA","name":"deltaMode","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode"],"type":"PropertyDoc","description":"

                        an unsigned long representing the unit of the delta values scroll amount

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0a1k3qsTDviSzV1r2EfGa","name":"deltaX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX"],"type":"PropertyDoc","description":"

                        a double representing the horizontal scroll amount in the Wheel Event deltaMode unit.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YHdUsCrwQpPMQIGs3Yw9y","name":"deltaY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY"],"type":"PropertyDoc","description":"

                        a double representing the vertical scroll amount in the Wheel Event deltaMode unit.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JWCsoOzWi1MldruGdGXyy","name":"deltaZ","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ"],"type":"PropertyDoc","description":"

                        a double representing the scroll amount in the z-axis, in the Wheel Event deltaMode unit.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nXvsehDVwwhGFBVYCe2lO","name":"event","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent","https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent","https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent"],"type":"PropertyDoc","description":"

                        the originating Event Object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wSSVmNOqybqkd3m1K75k1","name":"gameLocalX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event X coordinate relative to the holding container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fJPqj3yx8DvHASX60ad51","name":"gameLocalY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event Y coordinate relative to the holding container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tDiR7ujYbYGGlXTge3Tfh","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event X coordinate relative to the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ifvXOaGpUwyWWAZ5jxZSP","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event Y coordinate relative to the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dzs_TuovDAjU0iqPwnOOk","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event X coordinate relative to the map

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GWTxGYa6ANssCE6TdG_iG","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event Y coordinate relative to the map

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bJa9HQNhpBazvOTUW4aA_","name":"gameX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event normalized X coordinate within the game canvas itself
                        \n

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RkGTeTDxj87fgR0zlsPbT","name":"gameY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event normalized Y coordinate within the game canvas itself
                        \n

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ByRp1gRAtps2spa0JDIH1","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jg_wOiYbK7ZOX-7pCtytD","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if not originally a pointer event

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WjtQGscyOPZvmUQ9IBp1M","name":"isPrimary","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary"],"type":"PropertyDoc","description":"

                        indicates whether or not the pointer device that created the event is the primary pointer.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rpu7PGjS3K_ZfkJ9_Zedf","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Amr_kWG09XU5wUCOhcXvp","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        constant for left button

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z_FLFGJEhjHzLJ9Y8IatY","name":"locked","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if the pointer is currently locked

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ySZl4JlH-ESSKxPtVbxj","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                        constant for middle button

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wziVlxu-mZSOM79jxg_kl","name":"movementX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX"],"type":"PropertyDoc","description":"

                        the difference in the X coordinate of the pointer since the previous move event

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H-aEa62WtZoR96rDQ7soQ","name":"movementY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY"],"type":"PropertyDoc","description":"

                        the difference in the Y coordinate of the pointer since the previous move event

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RrcQk7uIv_Du-9M9eiYD8","name":"pageX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX"],"type":"PropertyDoc","description":"

                        the horizontal coordinate at which the event occurred, relative to the left edge of the entire document.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Db7Sh01gZzVI8joa4UbSe","name":"pageY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY"],"type":"PropertyDoc","description":"

                        the vertical coordinate at which the event occurred, relative to the left edge of the entire document.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5aclAbUo2cJKVSIB6IKCa","name":"pointerId","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId"],"type":"PropertyDoc","description":"

                        The unique identifier of the contact for a touch, mouse or pen

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wFKR5MDWxNFhyzfSYzbeF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bdLyi7mEL_Oa344AwTjP5","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

                        constant for right button

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lIZzTmFtyVCjcv_u4E0Vo","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m9TIAuw3sa1ExKq8BtN7E","name":"type","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/Event/type"],"type":"PropertyDoc","description":"

                        a string containing the event's type.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ET2xLvOhPtmQJv-8WQWpY","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hXmAMalF-MkcZkrDlkKIm","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        x position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ScyzCuk784HUZec1FSQPr","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        y position of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aNlWOdgk1ztBnOz7s5O-l","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given vertices to the bounds definition.

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        an array of Vector2d or Point

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                        either to reset the bounds before adding the new vertices

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"yerV2quh7EClNhY77gkPK","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given bounds to the bounds definition.

                        ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                        either to reset the bounds before adding the new vertices

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"B3Gyg00EDmiquv0LjzDau","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given quad coordinates to this bound definition, multiplied by the given matrix

                        ","params":[{"identifier":"x0","optional":false,"description":"

                        left X coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                        top Y coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                        right X coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                        bottom y coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                        an optional transform to apply to the given frame coordinates

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5R5fv1h5Bp8B3ZuATp8tO","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given point to the bounds definition.

                        ","params":[{"identifier":"point","optional":false,"description":"

                        the vector or point to be added to the bounds

                        ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                        an optional transform to apply to the given point (if the given point is a Vector2d)

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xnCj5EXxKcMLB_-HxaFD1","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the bounds position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this bounds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this bounds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"e7FcdhV1BYcXslv6K5vYF","name":"clear","brief":"

                        reset the bound

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9v0xWmx264Onkr5Ozxb0L","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this bounds

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oEEirCB4TnVFBfmTdvZEa","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the bounds contains the given point.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to check

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the bounds contain the point, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WYlNzo_KMuBSoZCD2SQdx","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this bounds are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a-qbE6cBCaYCaBdQjycqP","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the two bounds intersect.

                        ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        True if the bounds overlap, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"F60lvLr7XRVMSErFnhj6k","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                        sets the bounds to the given min and max value

                        ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rRjUV6B_MXUaAnbRholt6","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the bounds to the given x, y position.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Xva3nd2GIOyDYKmx2EedU","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this bounds.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this bounds.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dOQ7giGOE7ZZKYw5vWlR9","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Translates the bounds by the given point

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nOLl-m61zBNvnw--F9Uub","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Updates bounds using the given vertices

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        an array of Vector2d or Point

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"ulueb6HRMywasUBUAs24h","name":"set","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        initialize the Pointer object using the given Event Object

                        ","params":[{"identifier":"event","optional":false,"description":"

                        the original Event object

                        ","dataType":{"tokens":[{"value":"Event","kind":"canonical"},{"value":"Event","kind":"canonical"}],"template":"%1"}},{"identifier":"pageX","optional":true,"default":"0","description":"

                        the horizontal coordinate at which the event occurred, relative to the left edge of the entire document

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pageY","optional":true,"default":"0","description":"

                        the vertical coordinate at which the event occurred, relative to the left edge of the entire document

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientX","optional":true,"default":"0","description":"

                        the horizontal coordinate within the application's client area at which the event occurred

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientY","optional":true,"default":"0","description":"

                        the vertical coordinate within the application's client area at which the event occurred

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pointerId","optional":true,"default":"1","description":"

                        the Pointer, Touch or Mouse event Id (1)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"aB7IDf4civZX9gzB6iijW","name":"Polygon","brief":"","type":"ClassDoc","description":"

                        a polygon Object.
                        \nPlease do note that melonJS implements a simple Axis-Aligned Boxes collision algorithm, which requir...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"yLTBhJq7mKFBL7WxKXLgg","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kzlXpixXdRwYM3DDoN-TA","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pdBLceedOaKPMyJQ3ynlY","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPhpiJOMfqFkwSFhE_ZAR","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this Polygon

                        ","params":[],"returns":[{"description":"

                        new Polygon

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PdiKC6U77Ei6q7SdCtEya","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                        origin point of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                        origin point of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                        array of vector defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"H5QRudxIYj_Cz-Jp7UneG","name":"contains","brief":"","examples":[{"caption":"","code":"if (polygon.contains(10, 10)) {\n // do something\n}\n// or\nif (polygon.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the polygon contains the given point.
                        \n(Note: it is highly recommended to first do a hit test on the c...","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                        x coordinate or a vector point to check

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the polygon contain the point, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xPX7iR5DW0gaK3QJK8Nbj","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mu_X-wFfcEncft4yaoG9O","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"nyH_vwXz1afznC-XiIFLL","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7cdTabUsFgwp8cpDeMaAt","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aURvsn6l2b3AlW-xPzPId","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-bNJ_KjwJZAkcRyzNUL5r","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given scalar.

                        ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8tY1M1GLBp1ngFOE_0gVY","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bHsmPGKAY0pw1yc2PPGyu","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the Polygon

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Polygon

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tv3c86PtWL7dCROkAUq0k","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UneVZZ6OdQ60ZgWgcl5Pf","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hnIt2Wn-ff0jjnrau2-ta","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7D9NqcyWcsSsxdzu5y2Ei","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rFG3FT29oLxYhP0DBRzpI","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the given transformation matrix to this Polygon

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gytZRBo7kzEj_CbOQ0Sxt","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wKeOtwAmdPXSiJg9TVb6Y","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"jb56gBKkCDjq2NxVcObVr","name":"PrimitiveCompositor","type":"ClassDoc","description":"

                        A WebGL Compositor object. This class handles all of the WebGL state
                        \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"hIUEOUsfmsDKdiaoJ5eru","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K2oKRBOmP0K-RP_n4XPB4","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7MUSL3s8s1he9z3sMuQoE","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pz0GQ7_XPhbi7Na-VECSD","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                        primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YAVQKqx8jlrK1O9JZVm0D","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ltQ9Yalzf7xaQ5d4cWQa8","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lFIj1dVc9mUK4YkprMNT_","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MWwe54yDGYft_v6y6TSSf","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add vertex attribute property definition to the compositor

                        ","params":[{"identifier":"name","optional":false,"description":"

                        name of the attribute in the vertex shader

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                        number of components per vertex attribute. Must be 1, 2, 3, or 4.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                        data type of each component in the array

                        ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                        whether integer data values should be normalized into a certain range when being cast to a float

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                        offset in bytes of the first component in the vertex attribute array

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"efckQAJqFYnE3kbvUg7Qi","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xuoq8pR7-r1U--2gXUZMh","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"46r0XcE8sMkIshzBw4gzx","name":"drawVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Draw an array of vertices

                        ","params":[{"identifier":"mode","optional":false,"description":"

                        primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"verts","optional":false,"description":"

                        an array of vertices

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}},{"identifier":"vertexCount","optional":true,"default":"verts.length","description":"

                        amount of points defined in the points array

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7ke27J-33v-_dllY0w8nx","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Flush batched vertex data to the GPU

                        ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                        the GL drawing mode

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kM1Wmh1jJIv_H-UslM05p","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set/change the current projection matrix

                        ","params":[{"identifier":"matrix","optional":false,"description":"

                        the new projection matrix

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NAJ8SVKbL76sAVOY595yP","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                        Select the shader to use for compositing

                        ","params":[{"identifier":"shader","optional":false,"description":"

                        a reference to a GLShader instance

                        ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"QhrXm31cuPti1MmBsE9Jg","name":"QuadCompositor","type":"ClassDoc","description":"

                        A WebGL Compositor object. This class handles all of the WebGL state
                        \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"7kc5nxPBYdkDWm55_CaAu","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X7yzmxj4OCV9VVNv3ZNPM","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1HldbNhR8S6DDaaslavd0","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-46Ks75ISB6XgmEyjgjdk","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                        primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RLdjQbF5PMEp8uZC7Il4U","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bYtwIGXQ6F4n9ZJw0NMVz","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UaepHOTfmgvwBrTgLmnKZ","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HJqYebxb4RjYt7MEJvcGT","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add vertex attribute property definition to the compositor

                        ","params":[{"identifier":"name","optional":false,"description":"

                        name of the attribute in the vertex shader

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                        number of components per vertex attribute. Must be 1, 2, 3, or 4.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                        data type of each component in the array

                        ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                        whether integer data values should be normalized into a certain range when being cast to a float

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                        offset in bytes of the first component in the vertex attribute array

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JoTEpJUPk5Lhmro26U7sZ","name":"addQuad","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Add a textured quad

                        ","params":[{"identifier":"texture","optional":false,"description":"

                        Source texture atlas

                        ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                        Destination x-coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        Destination y-coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        Destination width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        Destination height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u0","optional":false,"description":"

                        Texture UV (u0) value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v0","optional":false,"description":"

                        Texture UV (v0) value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u1","optional":false,"description":"

                        Texture UV (u1) value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v1","optional":false,"description":"

                        Texture UV (v1) value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tint","optional":false,"description":"

                        tint color to be applied to the texture in UINT32 (argb) format

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"reupload","optional":false,"default":"false","description":"

                        Force the texture to be reuploaded even if already bound

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"uD-yY4UMKV1UsgEgeIZ3O","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ezbAgkVIc99VtSmBB0IXM","name":"bindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                        assign the given WebGL texture to the current batch

                        ","params":[{"identifier":"texture","optional":false,"description":"

                        a WebGL texture

                        ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":false,"description":"

                        Texture unit to which the given texture is bound

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"j9-dzgEmTSwNAGHVHsQcr","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"NAvcd3_iTORGjdv-sVdxP","name":"createTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Create a WebGL texture from an image

                        ","params":[{"identifier":"unit","optional":false,"description":"

                        Destination texture unit

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pixels","optional":true,"default":"null","description":"

                        Source image

                        ","dataType":{"tokens":[{"value":"Image | HTMLCanvasElement | ImageData | Array | Array","kind":"canonical"},{"value":"Image","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageData","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Uint8Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1 | %2 | %3 | %4<%5> | %6<%7>"}},{"identifier":"filter","optional":false,"description":"

                        gl.LINEAR or gl.NEAREST

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"repeat","optional":true,"default":"\"no-repeat\"","description":"

                        Image repeat behavior (see {@link ImageLayer#repeat})

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"w","optional":true,"default":"pixels.width","description":"

                        Source image width (Only use with UInt8Array[] or Float32Array[] source image)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"pixels.height","description":"

                        Source image height (Only use with UInt8Array[] or Float32Array[] source image)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"premultipliedAlpha","optional":true,"default":"true","description":"

                        Multiplies the alpha channel into the other color channels

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mipmap","optional":true,"default":"true","description":"

                        Whether mipmap levels should be generated for this texture

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        a WebGL texture

                        ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"twHv6iXFLuQRfHdpwUMOZ","name":"deleteTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                        delete the given WebGL texture

                        ","params":[{"identifier":"texture","optional":true,"description":"

                        a WebGL texture to delete

                        ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hRiCKwpNGqNCUwNMo79-a","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Flush batched vertex data to the GPU

                        ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                        the GL drawing mode

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X0isQtCQUAfExZjtV4sxf","name":"getTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the WebGL texture associated to the given texture unit

                        ","params":[{"identifier":"unit","optional":false,"description":"

                        Texture unit to which a texture is bound

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        texture a WebGL texture

                        ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MVzrV1aiYhFs-7B7lPuAK","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set/change the current projection matrix

                        ","params":[{"identifier":"matrix","optional":false,"description":"

                        the new projection matrix

                        ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JrZcCji-6v4Gyzdi5li0O","name":"unbindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                        unbind the given WebGL texture, forcing it to be reuploaded

                        ","params":[{"identifier":"texture","optional":true,"description":"

                        a WebGL texture

                        ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":true,"description":"

                        a WebGL texture

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        unit the unit number that was associated with the given texture

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iZfQNKwRGc9v4jfn3rRxr","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                        Select the shader to use for compositing

                        ","params":[{"identifier":"shader","optional":false,"description":"

                        a reference to a GLShader instance

                        ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"c6gmS7HbzRjhBIuexCR7b","name":"QuadTree","brief":"","see":["game.world.broadphase"],"type":"ClassDoc","description":"

                        a QuadTree implementation in JavaScript, a 2d spatial subdivision algorithm.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"MJAk_QKk2B6y7YkziG8ws","name":"clear","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clear the quadtree

                        ","params":[{"identifier":"bounds","optional":true,"default":"this.bounds","description":"

                        the bounds to be cleared

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8xlUATTnXaAfWea6bqx_-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

                        the physic world this QuadTree belongs to

                        ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}},{"identifier":"bounds","optional":false,"description":"

                        bounds of the node

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"max_objects","optional":true,"default":"4","description":"

                        max objects a node can hold before splitting into 4 subnodes

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max_levels","optional":true,"default":"4","description":"

                        total max levels inside root Quadtree

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"level","optional":true,"default":"0","description":"

                        deepth level, required for subnodes

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"78EKBhXqZyudidBumUeUs","name":"hasChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the node has any children

                        ","params":[],"returns":[{"description":"

                        true if the node has any children

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pzK2VXtR-PdW988HCUER9","name":"insert","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Insert the given object into the node. If the node\nexceeds the capacity, it will split and add all\nobjects to their corres...","params":[{"identifier":"item","optional":false,"description":"

                        object to be added

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"2fvtdboXzHUPyzEFbv30J","name":"insertContainer","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Insert the given object container into the node.

                        ","params":[{"identifier":"container","optional":false,"description":"

                        group of objects to be added

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OTGxNorh2HC8lI6gN7jA-","name":"isPrunable","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return true if the node is prunable

                        ","params":[],"returns":[{"description":"

                        true if the node is prunable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gv_vO_J7CuyoYlBV6XKDQ","name":"remove","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Remove the given item from the quadtree.\n(this function won't recalculate the impacted node)

                        ","params":[{"identifier":"item","optional":false,"description":"

                        object to be removed

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        true if the item was found and removed.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Sv4GApEa5PxkRzBw9Tvno","name":"retrieve","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Return all objects that could collide with the given object

                        ","params":[{"identifier":"item","optional":false,"description":"

                        object to be checked against

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"fn","optional":true,"description":"

                        a sorting function for the returned array

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        array with all detected objects

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"nYwIO1xTr0y3xmtXNCySj","name":"Rect","brief":"","type":"ClassDoc","description":"

                        a rectangle Object

                        ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"ncX1Jnta15gFeeSsTXAv2","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4E0BEitcjGbQDRW3jb0Qe","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EIVROhvH9pq-o0fHEV525","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5a69sX0YVANH4qmd8B_Uw","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mWtZTPskkkNBKaBaiCUk4","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p08As1zgzFIF30Q8WNot6","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iO0kCAzPUDK3bS16bNDjN","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fYwz2_nEcsPd1xgiizzx_","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X019pVxgwpXeubhhdaAJU","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"16LSsk4c_7p0fJL4WRuI1","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"atN8hKuD20oAtS9XjaZgE","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B-PSXAEW2BaeNYzINPeEJ","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mR6vCjPC_KVrWR4eLlr0a","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LlM6CJypLgo_k1ASaz8Yk","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6g7PtqlLp3_jnNXdx_VFn","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iGGwpc8s1nntrH118QkKc","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i8hGNCzAETgtwmNexWu8o","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I0_cfseVhiikPDg8cmwm2","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aCPAVWCz16Mq6JmNp9JK2","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"R7iueZRp80Jq2nO7rX6AE","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7mLksCqDkbFzHC7Y8frts","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L0eZByLJYObXb68cFedHi","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ixUqnjUUnclQqeP9JZUkF","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bD-suD81-E3uM0IV00EQQ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mn8ej-IV6LVtTryv0WAUD","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mtjZqXCnq8tvyutBKbp92","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the rectangle

                        ","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Thg8IxzG9w27357ox1_dE","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"frSzygBWhi5rJ5E0rE-NW","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y-54zKVd2CVWPZrq-Ee6e","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aTH9ja68d9mbVmTFJP9FF","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JslbtRg1qmSzfqjZKNdzv","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RMtGXaaBW-AjPsJIflly_","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gvdTMooQh7VvNzbHN1URI","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4FU0xz6OhCKDt7OpWp_ok","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the given transformation matrix to this Polygon

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AbVz8hdu1ZEORAt0vNEUZ","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Grkd_dP56gVDjQl2WjF60","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QL3Ul29t--2QLEhc2cY9Z","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"VjTWePAqUNdMqH5Ueva7k","name":"Renderable","brief":"","type":"ClassDoc","description":"

                        A base class for renderable objects.

                        ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"sjd7EGfhBfJXhNKiDAhGF","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Stdys3y795pk3gQ_k-qy8","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7F5FDPMLw6lRHcRqKNjoT","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sa4k9CRBs9P7t9g31kGD5","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fiC3I8wx-DBegZ0IuQ1Zo","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qSiLJGYSgFsz-A4nvnepx","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7BTfrYyZEUJk0QMxhVnsR","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y3ICR_VqVDZQOPZinJNVF","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R-Spil67zaSuvSVO-Eiq9","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iDJ6CToAYPz5LYSBJnrPp","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X-0Oji3J9ZVfOCFidC0QR","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_oBw9hSPpQh7F9I9cAaM_","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Uf5cOYf8ozIwGpDMorm8N","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3WLp3_VRjRHJEK6034_Hk","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5SyO585oUjZnmm4KlLBjg","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w6k3HB6-pAclY-0tSTDuZ","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uvkQ3Qxnk7Tcct8R5KGDC","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DPtB5oClYfZzuPyh9EJeM","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0wos2C34TY6tPzJldbBgW","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1_pXO_6U-VgLxxadzefS3","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MzZlgAucA404EgytErOdA","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iKlJL0OJT-zSg_op6P6Rt","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mAyuGnCSNeEPMFwKc6xH4","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2m67-I7gQ9b9945rLmzEU","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"51SMZlRneHseN_A9WuC5e","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZUb9CHMyKrWQ1uiIkogWc","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"41nNBG78SN7eoVOjGmlS4","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7dc06S4HG11DSoYtqAu-8","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OUKMNCTcmWnIlbfyCT4CX","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m8H8eL0XMK7MxXUbUUmEk","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JTNWPJCiajeHOvEfImIvh","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DliA_TGnjwXx5IRD3FMGR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pgh0TJOQA30JJ16b7_XN7","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ERhxo1HObUlcEhtqh3YK2","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lXQ9uK_zLIauLDaODRfnK","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G_L0LZNHQgWa4mm08bRJv","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m0HeveM9BsrAX5wXefv18","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FRjWnLWzKcVmRtT5H0Rhl","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K_-8dbXUoMz8nVWxq2M8j","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6ZL1HKYnrGXqaJWRLoU8J","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        position of the renderable object (accessible through inherited pos.x property)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the renderable object (accessible through inherited pos.y property)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        object width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        object height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MFPB3k7_yhyyFZUXB7qtK","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J0lV8811G0ywpA2cEOUo_","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2O8OzxsmF7qVL6rChm6ws","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k0oSoMSjaVz6wVuoaYcLM","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zqQUVCfavdd6BuI2ZTOgR","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"E_wxbQAq5r3n2gcq0eNL4","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fBaX1_rQPYQ3ElM-500LS","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3oGKTrcU-vjctiaX1h_p8","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9QheyPuhTFwZIOqVcq4eD","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g0JrzGcFSgsBHKSSPY3UY","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ZlHm-gsdQBXmBWZSzFUIn","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ft4o28r344HmOsiT1Rb7s","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iJS7tSFjQzp-5qOTSGRzG","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NjsxYQUi0Ni_lvHJR4--e","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kirILuSs629uONMEKrehI","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UEHQwrVavtgjviG46fa1q","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i0fur22f7mvJHWYtJvPbU","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tt4VAgRuKG-4Y30hKjBU9","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"EdWDGbPwtdI6kPf4Fm_9U","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"c69OG-0s8vMTtbyO25dCY","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mZIf_NXBZlPnCs2SrDljg","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GDCdt7ETSRnpKcifiT-Mg","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n4YtxPh0ew6smzqtsCDpL","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"euJrFnRG0LerG7vMc1SJI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"16eYplnuOXted9H1wo8wd","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"szg1z-wEkcr9gBffx-9VY","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VeOcxPVQK_7E_fnL8oySn","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EJ37XFpayOaeoe1zDEBpT","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZtE03e4vz_TY6O0M7a8vQ","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uxEzCkk_IHLH1eYenrqqA","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3TGrLnulhQi4HtgeMG0lZ","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WUWLstZhGeqGOVEGMh5OV","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"43sHdDqLPNzGaoKpbDyTe","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zMEndv2U9hRr4fnqJieK9","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WT-83Z5TsDhKiAHztGVw7","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fBCnBUDbOZF9VRb73pCl5","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jF_Y_1vs1SNWL2BTyk0Lo","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"GzmYldmjw73gy25eXTJqJ","name":"Renderer","brief":"","type":"ClassDoc","description":"

                        a base renderer object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"fNZn1WnWsNR79xpHUojnh","name":"getWidth","brief":"","access":"public","deprecated":"since 15.12.0","see":["width"],"type":"ClassDoc","description":"

                        return the width of the system Canvas

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Cgb8L31SG_Dbj0g2CXy4K","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"ZBOZstUOdB0Vlvu0oPwxN","name":"Texture","brief":"","access":"public","deprecated":"since 10.4.0","see":["TextureAtlas"],"type":"ClassDoc","description":"

                        Alias of {@link TextureAtlas}

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"5A1UgFcK1PwcSOL-g8vYX","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"nVJdINlY9eJgQAcsOj-ew","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                        the default method to sort object ("sorting", "z-buffer")

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V3UFRDywQQyQhVT_PgnoK","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the requested video size ratio

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"--zzP8fy9I6wCmrugdfR-","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the height of the canvas which this renderer draws to

                        ","params":[],"returns":[{"description":"

                        height of the system Canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"koAJh-kmxSbWFy1XLd2No","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        true if the current rendering context is valid

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ka6FUEHAv-u2B5pDWMYOm","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The Path2D instance used by the renderer to draw primitives

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8hsjrL7uKRAbhO8XPEV-M","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The renderer renderTarget

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-V27V3whx7ox2RCeRvCbn","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                        the scaling ratio to be applied to the main canvas

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5JiYFKLSZd2tMRsyyLH27","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The given constructor options

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9EZZ1Dd99lrjvBQSNC7IX","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                        The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WgJqJbg7XM6TjREMoHT4O","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the width of the canvas which this renderer draws to

                        ","params":[],"returns":[{"description":"

                        width of the system Canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6JhyotY_mByXo8ytP8TeP","name":"clear","brief":"

                        prepare the framebuffer for drawing a new frame

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bh1L_hhM57Jj5oEJ9nlkx","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

                        disable (remove) the rendering mask set through setMask.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BJfKOvi3nHYuy0-W4ekNO","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                        clear the rendering tint set through setTint.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y94LnD3W_JXKq7Ia4fkhg","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                        optional parameters for the renderer

                        ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ar6qyHdnuScKhp_24mE4k","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                        fill the given shape

                        ","params":[{"identifier":"shape","optional":false,"description":"

                        a shape object to fill

                        ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"1Sy5L8KXVNNmEeYyNS4Hk","name":"flush","brief":"

                        render the main framebuffer on screen

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wKzPz0Ka7ySfoEOuWPW0S","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the current blend mode for this renderer

                        ","params":[],"returns":[{"description":"

                        blend mode

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"T8GYnvWgW-cL6HNAtuDDC","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a reference to the current render target corresponding canvas which this renderer draws to

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c7KMB9thAG4Gte5mX7zHZ","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the current fill & stroke style color.

                        ","params":[],"returns":[{"description":"

                        current global color

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XZPm-UDhtBI82rRngnWf9","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return a reference to the current render target corresponding Context

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"CUQcA4cDbsbHS0J_zT7FR","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","scope":"instance","see":["height"],"type":"MethodDoc","description":"

                        return the height of the system Canvas

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"19Dc8fZzc4ACVA0C37Wtq","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                        return a reference to the screen canvas

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Net2bBFarNgQFR8BD6ed2","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                        return a reference to the screen canvas corresponding 2d Context
                        \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v9r0S0f5kZ_F-kVlgyHGK","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current global alpha

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_aEGkdVDL6UaZQUe30MJ5","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if the given rect or bounds overlaps with the renderer screen coordinates

                        ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bkUR10wc0UoYFnJ_5tDMp","name":"reset","brief":"

                        Reset context state

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5udwrwfYmXLxx_K8-lCR6","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resizes the system canvas

                        ","params":[{"identifier":"width","optional":false,"description":"

                        new width of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        new height of the canvas

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6QynMJ48b413owdhrGH3e","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                        enable/disable image smoothing (scaling interpolation) for the current render target

                        ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"18BKMo3uY-H36yLHLDugR","name":"setMask","brief":"","scope":"instance","type":"MethodDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[{"identifier":"mask","optional":true,"description":"

                        the shape defining the mask to be applied

                        ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                        either the given shape should define what is visible (default) or the opposite

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Bywhv94sB8M5emAGR8Qj8","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set/change the current projection matrix (WebGL only)

                        ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X7dN5Gi1bQTcd2X49OdlA","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set a coloring tint for sprite based renderables

                        ","params":[{"identifier":"tint","optional":false,"description":"

                        the tint color

                        ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                        an alpha value to be applied to the tint

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8fc1vVyicpamuvua5XvwJ","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                        stroke the given shape

                        ","params":[{"identifier":"shape","optional":false,"description":"

                        a shape object to stroke

                        ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                        fill the shape with the current color if true

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"qE3fbzl9w075_5y4Kh7lz","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        tint the given image or canvas using the given color

                        ","params":[{"identifier":"src","optional":false,"description":"

                        the source image to be tinted

                        ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                        the color that will be used to tint the image

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                        the composition mode used to tint the image

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        a new canvas or offscreencanvas (if supported) element representing the tinted image

                        ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"RJH8GRX5HV_lewFe01CkX","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates a Blob object representing the last rendered frame

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a Blob object representing the last rendered frame

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L6yleojCheCsegDYq-IsE","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                        returns a data URL containing a representation of the last frame rendered

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning a string containing the requested data URL.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"USFawMflySb0nsaRQVfbd","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                        creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                        ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                        A string indicating the image format

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        A Promise returning an ImageBitmap.

                        ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"PhXE_RiIe1p1fhahrAdLY","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

                        An object representing the result of an intersection.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"mfKMd1wJdGXXmqIg5YjnL","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The first object participating in the intersection

                        "},{"id":"hZxaDOySnNniW-afLFHtk","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Whether the first object is entirely inside the second

                        "},{"id":"6W90XEjaXASxGwEccKJ5d","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The second object participating in the intersection

                        "},{"id":"HLTw3cw8mVEPh5Aji9Eps","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Whether the second object is entirely inside the first

                        "},{"id":"55YsScfWpsA4KEaO7SQ3f","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The index of the colliding shape for the object a body

                        "},{"id":"QMAqVhL9bsijW151omKlR","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The index of the colliding shape for the object b body

                        "},{"id":"nolr96h_bBE3beKNXJ-60","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Magnitude of the overlap on the shortest colliding axis

                        "},{"id":"RhtaxyfyZU2TOaZFsRJxj","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The shortest colliding axis (unit-vector)

                        "},{"id":"_Jv9O0pzQpwBjja6vusLh","name":"overlapV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The overlap vector (i.e. overlapN.scale(overlap, overlap)). If this vector is subtracted from the position of..."},{"id":"X-mX-vCw6H8p6G5sAHs7U","name":"clear","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        Set some values of the response back to their defaults.
                        \nCall this between tests if you are going to reuse a single this object for chaining

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"3rSxiVNE9vkMU1K4JK_ul","name":"RoundRect","brief":"","type":"ClassDoc","description":"

                        a rectangle object with rounded corners

                        ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"pfPYKt7cC5KMStK_y7mq_","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"70-xrdXn8T8taNJ6A3DvG","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BIDIY6gUDh26AKl0BePMd","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3GyZD05mLS0-T9MeQbZ-n","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tqJ_BvtlFSAGQiR7WxR9H","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uo09jIgt-6sPdM9b0LVIm","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h88QaXbFHcHHsK5cBtfe3","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"35YFwNzBC6iTWPnnyZfQG","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

                        the radius of the rounded corner

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cmYfOLh5daBNC_5ZnqhYC","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vFbQTzILeqDO2SA6HPFiG","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XRleNWgS7aA1Awo3tDOo3","name":"type","brief":"","defaultValue":"\"RoundRect\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nZSfyMS--6oY15hMeRia5","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mLDj3BcEGLNlsZX0QrdJu","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bT2LRhPxhKwim8sLy3vcl","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this RoundRect

                        ","params":[],"returns":[{"description":"

                        new RoundRect

                        ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0dfamE36zmlXAXeZCL4OA","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        position of the rounded rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the rounded rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                        the rectangle width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        the rectangle height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":true,"default":"20","description":"

                        the radius of the rounded corner

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JlulRa7VYVBlMz7wmOYkM","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rounded rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a Rect to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rounded rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QwVb4ugZ095xQd9ruVAaH","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position, size and radius of the given rounded rectangle into this one

                        ","params":[{"identifier":"rrect","optional":false,"description":"

                        source rounded rectangle

                        ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4PEnswMK2Ybthp3NFd7-A","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this RoundRect is identical to the specified one

                        ","params":[{"identifier":"rrect","optional":false,"dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I6CskvB0dUOcDQKN_RcIm","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OuSK3Jcev3RFlVBNpLwIW","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"c7YLx0f2mJGBIB_StnRZu","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"d-GzIIFkjWPUOysP3JX30","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1sjKWn2e2xcGLKOrP-7Ur","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ijYwC5i2sQ_cmYKqZ8qTq","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jRcX3XdACfJobDnY5Bs1r","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iWpGHSSOuI8egkXF1inRK","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_0FUrsZKSFbwhrCc5xSn3","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the rectangle

                        ","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PUigu7QQLncMTQiCoqgqY","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Scale this Polygon by the given vector

                        ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"peV9oztA2oyV3kfQe0gsr","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GiSt9AMoDvGvk2R-mUGEf","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"inEUlur9oIJqekjDt7-sA","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kAa14r4xdevzbZznUnClA","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"StbyuzLwT5NbC9t82_jmy","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vPGHnfu_MYxcFWVS7-Hjp","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZqFxQPbax8PiD1B31UI6k","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply the given transformation matrix to this Polygon

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6sY4SI7AwrE1tWC9tFbgd","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ldsnwcr2NIeT1SXBxnAyo","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DzgKUXmnXFtgTSgk0GOVm","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"pFXKNnl8pSzuxd22yVY7p","name":"Sprite","brief":"","type":"ClassDoc","description":"

                        An object to display a fixed or animated sprite on screen.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"4Mz5qpz4dknhMEbgi8uk2","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2sWSBp4SPYPMOD8xfQPuN","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SvOo-dRnUlARhX4yh5csS","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J8AGbvsbryZDf7qd5e_35","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YeNzVTp9igSeLo7FoGsyR","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AmUuUim8BcSt5atKzAbQm","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s4p88faeWANmQRz-2lfr1","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l86Rt8Td_nzNB9SWEqHJ1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AABCOXatlXv0O_Jp29LDg","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JPhC7g0Wq9evXadt8KSEi","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LSgecQaHKNdmxL44A5ueC","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G0kLJBKDVVnvUluHNdPKO","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_hmg7w5s1hIMKU6-m3WNN","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JCA4LxVyEUJB_Tge8qJso","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DpnCmZhq2usXvqIr5nzj4","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KIl6Utq3KePLoCHkM6U6x","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tGgjwoX7vwQ0X9m_hd2BB","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fcugRoP9Zinw2zqsCaiYN","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WMVeNh9lvfg41fTLPJWfN","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5EE3CbegZ0uc3tpPFnKtu","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ztkn9pNss7ZZtiFVg5FnC","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HuhFSqLX9aXpfD5DlrXWX","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_xfy9_dYNadOSEmx8OFyU","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ks_j8aMv_Lf8bUMZF0-cp","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VhOKghakH0iXl8hn8lwvg","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jOxfW4FjB2YK5L7bdn2Ci","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jcPt1tws0gMva068daB9Z","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ahoxb97MCB7arS_kMYGfI","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qTFhsjYhHaJbTCvREL-yG","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                        global offset for the position to draw from on the source image.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q-tSxMR3pY8j66-psynsb","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qkSRMzbaMci-dUsltbMdx","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oTjK_2-P9OLer-RD403hL","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BFyVdWwZi_7Q1AyewXS-R","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FHIT83nm_MgK9fg4y4Hqi","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0X9WnkdBW0GsEtdeuXJ3o","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rNMAU4qQXmsEHCivIMROl","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TtzSpK1bUFfPyZqonLYyo","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3gu9zc1clpbvXwLc3zIww","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-S5P0dRW_WluDSLtl1SvK","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVRKfH_lUJ3Ev9N_lJxHV","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e62SJtpJJyqLr27NJ4rDs","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_0psyJ2Q7n2WeFaqn78ia","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        add an animation
                        \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                        list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                        ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                        cycling speed for animation in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        frame amount of frame added to the animation (delay between each frame).

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y6Q_J_8cVoA49BENJtk60","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dEQ6qHE2vh37_VNP6YKyP","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PCswVoYfAftvr2hM6nw7-","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kQzd6l5-VGy8rMTWjShcW","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a single sprite from a standalone image, with anchor in the center\n let sprite = new me.Sprite(0, 0, {\n image : \"PlayerTexture\",\n framewidth : 64,\n frameheight : 64,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n\n // create a single sprite from a packed texture\n mytexture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n let sprite = new me.Sprite(0, 0, {\n image : mytexture,\n region : \"npc2.png\",\n });\n\n // create a video sprite\n let videoSprite = new me.Sprite(0, 0, {\n image : me.loader.getVideo(\"bigbunny\"),\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n // scale the video sprite\n videoSprite.currentTransform.scale(2);\n // start playing the video (if video is preloaded with `autoplay` set to false)\n videoSprite.play();"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinates of the sprite object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinates of the sprite object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        Configuration parameters for the Sprite object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

                        reference to spritesheet image, a texture atlas, a video element, or to a texture atlas

                        ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | %4 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

                        name of this object

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

                        region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

                        Width of a single frame within the spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

                        Height of a single frame within the spritesheet

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

                        a tint to be applied to this sprite

                        ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

                        flip the sprite on the horizontal axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

                        flip the sprite on the vertical axis

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

                        Anchor point to draw the frame at (defaults to the center of the frame).

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CLkCdZtWZFfsamLvL-kiX","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"S5sTbZHPPgH2UpwJ_6EfF","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WzPBc67_dWG59uUPxl649","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7ioP7wZWx7PDaEuhh7RVj","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lEdw7C4lt_P1Vyx9vmHxx","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                        make the object flicker

                        ","params":[{"identifier":"duration","optional":false,"description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                        Function to call when flickering ends

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EYVfgDW99q97rKI_ZkNC7","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7sp_l8lvhazYtDWglKgd1","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rc6S99H9BQSX6SkvW6IT2","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UkSdorw4pIEa_-CDRE9fc","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"94QXIMSd7lBx3bPIJzxPn","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the current animation frame index.

                        ","params":[],"returns":[{"description":"

                        current animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5bu5d6AiwIqMIYyIYRLxs","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"pM4bPMRsJmhgKvMX9TC4H","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sPwffmzPtTLPGJ0BbFhQj","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RVyu8qJy6DFSI8XLvVm_5","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        return true if the specified animation is the current one.

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UEeP-0z2uamWv-Cwl1RU0","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"R4ZcgipAH_p9Ego1t_1Px","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the flickering state of the object

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Wo_Gkd-pduw4N_226-T7W","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MN4pj5rHAsBzBNZIYOK46","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aMBo5cjuMoDKbBX_LtuCW","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0kvGrmYgptHOb9CAwFkNJ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zA6W7gGJLARqbD2R9WC17","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rtwcdEjQ7nlk8V03c9_XM","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RNdz98H7sx124t0vsxS63","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"QwA2ADxRXn8D7BNSj8Sij","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"S_RIuE8OJqRmz9KFLSOEA","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C37PNmfE7CFaZjY7IjZvQ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iGi0JCFo3AkWWSNZhdg23","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                        reverse the given or current animation if none is specified

                        ","params":[{"identifier":"name","optional":true,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m1uJ_ru3AwanXiIFmNL0L","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zPIS5RCYx0JsJHjP42Tsx","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8z9TdtONzoY4uUN7iChy7","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XxI8LpXVI0Hc9NS6V4OdF","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                        force the current animation frame index.

                        ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                        animation frame index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5hpg5ZUshwvQmafWa9Isz","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                        set the current animation\nthis will always change the animation & set the frame to zero

                        ","params":[{"identifier":"name","optional":false,"description":"

                        animation id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                        animation id to switch to when complete, or callback

                        ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                        if false will reset the elapsed time counter since last frame

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sFIUqDLs_6qmli0kyjG5J","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MojZxqM8OSkSdP59CneZz","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                        change the current texture atlas region for this sprite

                        ","params":[{"identifier":"region","optional":false,"description":"

                        typically returned through me.Texture.getRegion()

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SooEAGnqUA8sLrM0-3-nx","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d3nsWl7D5J6RuqO_KS_3N","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"69rGyzb8bKDmFGww-mblz","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"t3FWBNe5rVamIfbXQS88F","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w4OX-KUikdQPO2_4sxxFp","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y-2HNIOLStG7cS_5AfQpl","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i5YXgUL3S9ZJiN4AuCeC0","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tSlgvB5uzZyjrHq_-kgzH","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JRYHUbtcxTSMo0PUacYzo","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TQ79NKJ_tkKfNO452p0kN","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1pBSzKV7X8zorqTHM1YpW","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        draw this srite (automatically called by melonJS)

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                        the viewport to (re)draw

                        ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"daCAv4yVzwipm_VVDA_sQ","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                        update function.
                        \nautomatically called by the game manager {@link game}

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the Sprite is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"svSrOe2SNPnIv5UN7U3Pc","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ltYU_5Q39kFl_xGtMFAcr","name":"Stage","brief":"","see":["state"],"type":"ClassDoc","description":"

                        a default "Stage" object.\nevery "stage" object (title screen, credits, ingame, etc...) to be managed\nt...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"R1By_gDEbFssPAFndC5jd","name":"ambientLight","brief":"","access":"public","defaultValue":"\"#000000\"","scope":"instance","see":["Light2d"],"type":"PropertyDoc","description":"

                        an ambient light that will be added to the stage rendering

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WaposDo86zkaNcU7WEE-s","name":"cameras","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The list of active cameras in this stage.\nCameras will be renderered based on this order defined in this list.\nOnly the &q...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Xg-2OR2zAB3x6Q8E73ty","name":"lights","brief":"","access":"public","examples":[{"caption":"","code":"// create a white spot light\nlet whiteLight = new me.Light2d(0, 0, 140, \"#fff\", 0.7);\n// and add the light to this current stage\nthis.lights.set(\"whiteLight\", whiteLight);\n// set a dark ambient light\nthis.ambientLight.parseCSS(\"#1117\");\n// make the light follow the mouse\nme.input.registerPointerEvent(\"pointermove\", me.game.viewport, (event) => {\n whiteLight.centerOn(event.gameX, event.gameY);\n});"}],"scope":"instance","see":["Light2d","Stage.ambientLight"],"type":"PropertyDoc","description":"

                        The list of active lights in this stage.\n(Note: Canvas Renderering mode will only properly support one light per stage)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Qe2FBzgtBuhyYTSuYeP_","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The given constructor options

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R35Jb9VyWapYOo8cvE51c","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"settings","optional":true,"description":"

                        The stage` parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.cameras","optional":true,"default":"[new me.Camera2d()]","description":"

                        a list of cameras (experimental)

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"settings.onResetEvent","optional":true,"description":"

                        called by the state manager when reseting the object

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.onDestroyEvent","optional":true,"description":"

                        called by the state manager before switching to another state

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z3jBMCyxQ960PJZhO1h7x","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        onDestroyEvent function
                        \ncalled by the state manager before switching to another state

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4y0Ft_nYlTrkQu-swRRy","name":"onResetEvent","brief":"","scope":"instance","see":["state#change"],"type":"MethodDoc","description":"

                        onResetEvent function
                        \ncalled by the state manager when reseting the object\nthis is typically where you will load a lev...","params":[{"identifier":"args","optional":true,"description":"

                        optional arguments passed when switching state

                        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"3oQhJUsa89ngr0PzM95KK","name":"Text","brief":"","type":"ClassDoc","description":"

                        a generic system font object.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"BV9UNgoG9PeyX0gmmu8h6","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                        Define the renderable opacity
                        \nSet to zero if you do not wish an object to be drawn

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nxnm58MhFDeg9hSAhT9E6","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object will always update, even when outside of the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7CKolMcD7E8LWqg5ypNUd","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g8DRXGMjtMiBUfoOPOLsc","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                        The anchor point is used for attachment behavior, and/or when applying transformations.
                        \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"chOf2_Fi4XxAMfqvHai9K","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                        When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l3-7KOVPwGsGs_yn7TLrC","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"flxjs5WH1sDVWNHD8A8Le","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                        the renderable physic body

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UQUcVFM-_jQAXcYjD-uKe","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D3mZ75bgsabUNsbRQzCJi","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JiQFhUSDDhrdekw9twihx","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w9nZaGR7xOcd1Ec4qLbpg","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KeUUP7v6cVBg4Luh3YH1I","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k_ZMpnbRGORX3p-jYU0sU","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                        defines the color used to draw the font.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yNFRwH23tpMHiQTiSGhMR","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ku-cdOqFgyyAdDzgmnM_N","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

                        the font size (in px)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n8PPwACkqhR0P3a2_gbpb","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        (G)ame (U)nique (Id)entifier"
                        \na GUID will be allocated for any renderable object added
                        \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AwxIBAhbJlH0GJAUjNKfk","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FkVq2dhiFrr6-j1nZDeYU","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether the renderable object is visible and within the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TpWDHG7jCeIMn94dC0ATW","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        when true the renderable will be redrawn during the next update cycle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXpyUdQaV4f5WjeeOSu2G","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PT2UJfl7NuhxHWJUi0C7a","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                        returns true if this renderable is flipped on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LfL643eFFZY_TgRxJp7C-","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                        Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"axHb_D1YMnjW_E_k1Cpwx","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        If true then physic collision and input events will not impact this renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MAcDSSBWH-e8gCyOQabOe","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dn6tN0C_3bPpEHsa0y6Mc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LQflIqin5ZOfvQ7P-j8Dp","name":"lineHeight","brief":"","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                        Set the line spacing height (when displaying multi-line strings).
                        \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_uxwuM5hM6uGNb8JcYqKJ","name":"lineWidth","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        sets the current line width, in pixels, when drawing stroke

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mDEEUpgjsIRtdGOoD9TWN","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                        A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iRudswxLlsEqKv-pUAvU_","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N3uM3RPd3cS8rHcMk1i37","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                        an event handler that is called when the renderable leave or enter a camera viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"78cbzKH5C0dKmoACRFosU","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        returns the parent application (or game) to which this renderable is attached to

                        ","params":[],"returns":[{"description":"

                        the parent application or undefined if not attached to any container/app

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rJnIOOVF4NE9phe8Vufrr","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Array of points defining the Polygon
                        \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UjjVUpCuTkZVGgENDUAaT","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6QTevAD_Cd0HKNgJIH0wT","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"caeSJ0VsXbYYGz7BKjFBF","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4xUDZA1uAZ3pUkkZoit0h","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                        defines the color used to draw the font stroke.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G7i3tlYDr4ASS_rrei-bW","name":"textAlign","brief":"","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

                        Set the default text alignment (or justification),
                        \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tUStnfWlmlQzf28Ov9_LI","name":"textBaseline","brief":"","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

                        Set the text baseline (e.g. the Y-coordinate for the draw operation),
                        \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8EiggtWmHeToDKGeic-6m","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                        define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iLGgTTxBSSYu2atN5BNMZ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uhgQMzxAcby8dfijangA4","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DUqB65xmIN3WroH3Fvm0W","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        Whether to update this object when the game is paused.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"orVQyiXHJnDm4UHpCqI_v","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uNxO_RXSVNSlnzmiXssQe","name":"wordWrapWidth","brief":"","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

                        the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O2fKn_WXVMPUiW9uWmJ0L","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                        the text to be displayed

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LJIkfFZvdEmvcerJXxLF4","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the angle to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iH8IYIrjEb1lyMqaG-XHA","name":"bold","brief":"","scope":"instance","type":"MethodDoc","description":"

                        make the font bold

                        ","params":[],"returns":[{"description":"

                        this object for chaining

                        ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2dfwMZ4c-u4Zjwf37ADu7","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the rectangle position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ngWsSQj6jYAa2FZf6V77B","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this rectangle

                        ","params":[],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mVcEuCP3Ev3UDY1oWlA7l","name":"constructor","brief":"","examples":[{"caption":"","code":"let font = new me.Text(0, 0, {font: \"Arial\", size: 8, fillStyle: this.color});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                        position of the text object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the text object

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                        the text configuration

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

                        a CSS family font name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","description":"

                        size, or size + suffix (px, em, pt)

                        ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.fillStyle","optional":true,"default":"\"#000000\"","description":"

                        a CSS color value

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.strokeStyle","optional":true,"default":"\"#000000\"","description":"

                        a CSS color value

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"0","description":"

                        line width, in pixels, when drawing stroke

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

                        horizontal text alignment

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

                        the text baseline

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

                        line spacing height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

                        anchor point to draw the text at

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

                        the maximum length in CSS pixel for a single segment of text

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"default":"\"\"","description":"

                        a string, or an array of strings

                        ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4YjuSjTmXVOmqMIFwEaYz","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the rectangle contains the given point or rectangle

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point, or a rectangle to test

                        ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the rectangle contain the given point or rectangle, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PzEr0MW6MeJ6OOgzOGpmv","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                        copy the position and size of the given rectangle into this one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        Source rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        new rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A7pkjcgWc3A4X2GsZUQTd","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the distance to the specified target

                        ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        distance

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZQNb7eVgWNU7cb0dEEbWd","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

                        draw a text at the specified coord

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        Reference to the destination renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6SuSdCnx4asUktGr-Ey6F","name":"drawStroke","brief":"","deprecated":"since 15.0.0","scope":"instance","type":"MethodDoc","description":"

                        draw a stroke text at the specified coord, as defined by the lineWidth and fillStroke properties...","params":[{"identifier":"renderer","optional":false,"description":"

                        Reference to the destination renderer instance

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CFjPRZeg5pXqNDerJH__n","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is identical to the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if equals

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"i-ia0MGZPvU-Mx3OONqGJ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                        flip the renderable on the horizontal axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mJZxzl-aZUNEBaVwIQMC2","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                        flip the renderable on the vertical axis (around the center of the renderable)

                        ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                        true to flip this renderable.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zyjS0tEdF4sOas9QqZM6i","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                        return the renderable absolute position in the game world

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wslYwcFT4uVwk_COwybm5","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns the bounding box for this renderable

                        ","params":[],"returns":[{"description":"

                        bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6MZ-CU55-QaVsz3CXXd3J","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        returns a list of indices for all triangles defined in this polygon

                        ","params":[],"returns":[{"description":"

                        an array of vertex indices for all triangles forming this polygon.

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"uJOcn8SX7jcrJOUl2Gc5y","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        get the renderable alpha channel value

                        ","params":[],"returns":[{"description":"

                        current opacity value between 0 and 1

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U0VyOLfqVEUtg621okIM-","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                        ","params":[],"returns":[{"description":"

                        true if the vertices are convex, false if not, null if not computable

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3q7IfWIVEnPrf2gb7FSUs","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this rectangle are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WZieWEAnqf552DQwlC3L0","name":"italic","brief":"","scope":"instance","type":"MethodDoc","description":"

                        make the font italic

                        ","params":[],"returns":[{"description":"

                        this object for chaining

                        ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PezYyaU9l59o1mQHzpUok","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable towards the given target.

                        ","params":[{"identifier":"target","optional":false,"description":"

                        the renderable or position to look at

                        ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Go24EEvvR-7tHGNX6IDZa","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                        measure the given text size in pixels

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        reference to the active renderer

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"description":"

                        the text to be measured

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        a TextMetrics object defining the dimensions of the given piece of text

                        ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4wD68Nb6NmHpT6Ztu-hcR","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                        onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                        ","params":[{"identifier":"response","optional":false,"description":"

                        the collision response object

                        ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                        the other renderable touching this one (a reference to response.a or response.b)

                        ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                        true if the object should respond to the collision (its position and velocity will be corrected)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pxTA2L6ujd1mpR4L_subP","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GL6KUhT2m0vZpg4Vh1cuN","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        check if this rectangle is intersecting with the specified one

                        ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if overlaps

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"p7SKa047JI2rn4V74fGWx","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                        restore the rendering context after drawing (automatically called by melonJS).

                        ","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"rdT1abJyHre3BthfS8_vc","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                        Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                        a renderer object

                        ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ip01jl_5JyAa4iXbqS-RY","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u-tt-xgXivPMx0JA1ijBh","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                        resize the rectangle

                        ","params":[{"identifier":"w","optional":false,"description":"

                        new width of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                        new height of the rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PW-OEm4mJ-F9eXmk04yYF","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Rotate this renderable by the specified angle (in radians).

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        The angle to rotate (in radians)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                        an optional point to rotate around

                        ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nWGTg0rGtmZZrJ-CTeH1s","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                        a number representing the abscissa of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                        a number representing the ordinate of the scaling vector.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8ZfY8HHngo0JnbOsGAy3k","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                        scale the renderable around his anchor point

                        ","params":[{"identifier":"v","optional":false,"description":"

                        scaling vector

                        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K2Gj-NMX7sjvokXqLWA3d","name":"setFont","brief":"","examples":[{"caption":"","code":"font.setFont(\"Arial\", 20);\nfont.setFont(\"Arial\", \"1.5em\");"}],"scope":"instance","type":"MethodDoc","description":"

                        set the font family and size

                        ","params":[{"identifier":"font","optional":false,"description":"

                        a CSS font name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":true,"default":"10","description":"

                        size in px, or size + suffix (px, em, pt)

                        ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}}],"returns":[{"description":"

                        this object for chaining

                        ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U4t9E37W4e4eQPA4gf6pT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the renderable alpha channel value

                        ","params":[{"identifier":"alpha","optional":false,"description":"

                        opacity value between 0.0 and 1.0

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HTlpE68A2ccZJuuLJeZHU","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set new value to the rectangle shape

                        ","params":[{"identifier":"x","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        position of the Rectangle

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                        width of the rectangle, or an array of vector defining the rectangle

                        ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                        height of the rectangle, if a numeral width parameter is specified

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T0EgImvtELyfDeg9kAv0i","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

                        change the text to be displayed

                        ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

                        a string, or an array of strings

                        ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

                        this object for chaining

                        ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V_N-1j7N_l6QnpllJ247h","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                        set the vertices defining this Polygon

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        array of vector or vertice defining the Polygon

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                        this instance for objecf chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2iLHVAMtdwoGMvSFhopwb","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the Polygon to the given position vector.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QAJrSb5XQwVZz_poEEvJf","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply a 2d projection to this shapen

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VvY847zWCtfDbImlQnTuF","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                        apply an isometric projection to this shape

                        ","params":[],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3e87m_Hagze6dZlGxyUYd","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this box.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this rectangle.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XbDw99ujLcqD10I0ZPZyP","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                        multiply the renderable currentTransform with the given matrix

                        ","params":[{"identifier":"m","optional":false,"description":"

                        the transformation matrix

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dNf8hvioPHRCRw3MPfNcy","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        translate the Polygon by the specified offset

                        ","params":[{"identifier":"x","description":"

                        x offset or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y offset

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Reference to this object for method chaining

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bji-MrC5zGT2YQ2u_RuuI","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                        merge this rectangle with another one

                        ","params":[{"identifier":"rect","optional":false,"description":"

                        other rectangle to union with

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        the union(ed) rectangle

                        ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A80i5Pyvk-pK3C3wMSR6V","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update function (automatically called by melonJS).

                        ","params":[{"identifier":"dt","optional":false,"description":"

                        time since the last update in milliseconds.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the renderable is dirty

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aLvdPBKtFyGKq6AkqSDvx","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        update the bounding box for this shape.

                        ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                        update the bounds size and position in (world) absolute coordinates

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        this shape bounding box Rectangle object

                        ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ch8VagUUAMvRYfd8vFXHc","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                        called when the anchor point value is changed

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the new X value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the new Y value to be set for the anchor

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"mdwhREJIAadRVBlXGLo3B","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

                        a Text Metrics object that contains helper for text manipulation

                        ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"8ohVVIz1xqDe3xqa-hHX0","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the parent object that contains this TextMetrics object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CMTQvzUUPEn1WzLObYfRs","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T-qOMpz3yt67lS7PY8ZE8","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the center position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bne9Lwok5atk0O0Qmurus","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the x axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WIhxyYX1TSAOofjbKyvNa","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the y axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rp1FB0tGpTbg0rvqToUip","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZqxTLEvMQ3_WWd1AZrmGP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w1URxquMD4Zi5xPEeI11I","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygfFb1AFwCxtb54haGaF4","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qP5g5FlOBtyuHDwmn7TBf","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                        the object type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3cklpOZhxbscp-tdZYra0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rTin42F344zctnFplZpP2","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        x position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Eofhyd8IDxpVZDEL2L6wY","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        y position of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mLUWLDh4Asjt9v7_olhlP","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given vertices to the bounds definition.

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        an array of Vector2d or Point

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                        either to reset the bounds before adding the new vertices

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"mSUfydcfl_vSU086vzAk4","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given bounds to the bounds definition.

                        ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                        either to reset the bounds before adding the new vertices

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"emK_Brp3-hF3-pAD-SpmI","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given quad coordinates to this bound definition, multiplied by the given matrix

                        ","params":[{"identifier":"x0","optional":false,"description":"

                        left X coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                        top Y coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                        right X coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                        bottom y coordinates of the quad

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                        an optional transform to apply to the given frame coordinates

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"I4z9ehNCTd72OLJEm4hNc","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                        add the given point to the bounds definition.

                        ","params":[{"identifier":"point","optional":false,"description":"

                        the vector or point to be added to the bounds

                        ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                        an optional transform to apply to the given point (if the given point is a Vector2d)

                        ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DVvse7-WmnOVip9aBCUi5","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                        center the bounds position around the given coordinates

                        ","params":[{"identifier":"x","optional":false,"description":"

                        the x coordinate around which to center this bounds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                        the y coordinate around which to center this bounds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cdbTlKQ1mSUvNJdVeC2qH","name":"clear","brief":"

                        reset the bound

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pisaIMVF64D1KnrW62Y-1","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                        clone this bounds

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dMrbud50ADCt7BKP8eJpl","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

                        the parent object that contains this TextMetrics object

                        ","dataType":{"tokens":[{"value":"Text | BitmapText","kind":"canonical"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ErFQZWHQ1s8i4x4eV-urI","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                        Returns true if the bounds contains the given point.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to check

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                        y coordinate

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        True if the bounds contain the point, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"jkstqQFwWYqdqxsaUcFOW","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                        determines whether all coordinates of this bounds are finite numbers.

                        ","params":[],"returns":[{"description":"

                        false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YhgG7h6p63aDeZgO44SxL","name":"lineHeight","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the height of a segment of inline text in CSS pixels.

                        ","params":[],"returns":[{"description":"

                        the height of a segment of inline text in CSS pixels.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H3nHvsaecVakUJ_KTFcbk","name":"lineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns the width of the given segment of inline text in CSS pixels.

                        ","params":[{"identifier":"text","optional":false,"description":"

                        the text to be measured

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

                        reference to an active 2d context for canvas rendering

                        ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the width of the given segment of inline text in CSS pixels.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y5oQCs9WJF0Dkf1A432BU","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                        measure the given text size in CSS pixels

                        ","params":[{"identifier":"text","optional":false,"description":"

                        the text to be measured

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

                        reference to an active 2d context for canvas rendering

                        ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        this

                        ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O9H5JPtdY98aT_EUqOh_m","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns true if the two bounds intersect.

                        ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                        True if the bounds overlap, otherwise false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oxLTVeikcFILmD0E6JV4i","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                        sets the bounds to the given min and max value

                        ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0TINwFNhb3PyXP0wGNgm_","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Shifts the bounds to the given x, y position.

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to shift to

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"H0wFK-STLcVv0VFid9xdp","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Returns a polygon whose edges are the same as this bounds.

                        ","params":[],"returns":[{"description":"

                        a new Polygon that represents this bounds.

                        ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qCj6BO2Mfs_QjCkOdXpZp","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                        Translates the bounds by the given point

                        ","params":[{"identifier":"x","description":"

                        x coordinate or a vector point to translate by

                        ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lZvkkFMPSx6wkZkZOiMUF","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                        Updates bounds using the given vertices

                        ","params":[{"identifier":"vertices","optional":false,"description":"

                        an array of Vector2d or Point

                        ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"but9tKHdFGIT1CkRSmA48","name":"wordWrap","brief":"","scope":"instance","type":"MethodDoc","description":"

                        wrap the given text based on the given width

                        ","params":[{"identifier":"text","optional":false,"description":"

                        the text to be wrapped

                        ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}},{"identifier":"width","optional":false,"description":"

                        maximum width of one segment of text in css pixel

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"context","optional":true,"description":"

                        reference to an active 2d context for canvas rendering

                        ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        an array of string representing wrapped text

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"8fQKmxFS_k9NdLWRmHhWf","name":"TextureAtlas","brief":"","type":"ClassDoc","description":"

                        A Texture atlas class, currently supports :

                        \n
                          \n
                        • [TexturePacker]{@link http://www.codeandweb.com/texturepacke...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"D36HOU7OnwMQutIVElY0S","name":"addRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add a region to the atlas

                          ","params":[{"identifier":"name","optional":false,"description":"

                          region mame

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

                          x origin of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y origin of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          height of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the created region

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"Isi2TjTCqLSwgrlWLQ1jg","name":"addUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add uvs mapping for the given region

                          ","params":[{"identifier":"atlas","optional":false,"description":"

                          the atlas dictionnary where the region is define

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

                          region (or frame) name

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"w","optional":false,"description":"

                          the width of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          the height of the region

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the created region UVs

                          ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UvJy6e9pIF7Jr2wGju8of","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a texture atlas from a JSON Object\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\")\n );\n\n // create a texture atlas from a multipack JSON Object\n game.texture = new me.TextureAtlas([\n me.loader.getJSON(\"texture-0\"),\n me.loader.getJSON(\"texture-1\"),\n me.loader.getJSON(\"texture-2\")\n ]);\n\n // create a texture atlas for a spritesheet with an anchorPoint in the center of each frame\n game.texture = new me.TextureAtlas(\n {\n framewidth : 32,\n frameheight : 32,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n },\n me.loader.getImage(\"spritesheet\")"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"atlases","optional":false,"description":"

                          atlas information. See {@link loader.getJSON}

                          ","dataType":{"tokens":[{"value":"object | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"object | %1"}},{"identifier":"src","optional":true,"default":"atlas.meta.image","description":"

                          Image source

                          ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string | Array | Array | Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | %2 | string | %3<%4> | %5<%6> | %7"}},{"identifier":"cache","optional":true,"default":"false","description":"

                          Use true to skip caching this Texture

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"UOyppHbQSUbwb4OypwQAR","name":"createAnimationFromName","brief":"","examples":[{"caption":"","code":" // create a new texture object under the `game` namespace\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n\n // create a new Animated Sprite\n let sprite = game.texture.createAnimationFromName([\n \"walk0001.png\", \"walk0002.png\", \"walk0003.png\",\n \"walk0004.png\", \"walk0005.png\", \"walk0006.png\",\n \"walk0007.png\", \"walk0008.png\", \"walk0009.png\",\n \"walk0010.png\", \"walk0011.png\"\n ]);\n\n // define an additional basic walking animation\n sprite.addAnimation (\"simple_walk\", [0,2,1]);\n // you can also use frame name to define your animation\n sprite.addAnimation (\"speed_walk\", [\"walk0007.png\", \"walk0008.png\", \"walk0009.png\", \"walk0010.png\"]);\n // set the default animation\n sprite.setCurrentAnimation(\"simple_walk\");\n // set the renderable position to bottom center\n sprite.anchorPoint.set(0.5, 1.0);"}],"scope":"instance","type":"MethodDoc","description":"

                          Create an animation object using the first region found using all specified names

                          ","params":[{"identifier":"names","optional":true,"description":"

                          list of names for each sprite (if not specified all defined names/entries in the atlas will be added)\n(when manually creat...","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}},{"identifier":"settings","optional":true,"description":"

                          Additional settings passed to the {@link Sprite} contructor

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"guPVQZDJVEKb5uK736AX5","name":"createSpriteFromName","brief":"","examples":[{"caption":"","code":"// create a new texture object under the `game` namespace\ngame.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n);\n...\n...\n// create a new \"coin\" sprite\nlet sprite = game.texture.createSpriteFromName(\"coin.png\");\n// set the renderable position to bottom center\nsprite.anchorPoint.set(0.5, 1.0);\n...\n...\n// create a 9-slice sprite\nlet dialogPanel = game.texture.createSpriteFromName(\n \"rpg_dialo.png\",\n // width & height are mandatory for 9-slice sprites\n { width: this.width, height: this.height },\n true\n);"}],"scope":"instance","type":"MethodDoc","description":"

                          Create a sprite object using the first region found using the specified name

                          ","params":[{"identifier":"name","optional":false,"description":"

                          name of the sprite

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings","optional":true,"description":"

                          Additional settings passed to the {@link Sprite} contructor

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"nineSlice","optional":true,"default":"false","description":"

                          if true returns a 9-slice sprite

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite | NineSliceSprite","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"OcmJZLwTtzuBXj3b525DM","name":"getAtlas","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the default or specified atlas dictionnary

                          ","params":[{"identifier":"name","optional":true,"description":"

                          atlas name in case of multipack textures

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"pAX2VeKuxH5ALtYGUGCCn","name":"getFormat","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the format of the atlas dictionnary

                          ","params":[],"returns":[{"description":"

                          will return "texturepacker", or "ShoeBox", or "melonJS", or "Spritesheet (fixed cell si...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"nWQXA2NwFYV5F8AOfAM_V","name":"getRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a normalized region (or frame) information for the specified sprite name

                          ","params":[{"identifier":"name","optional":false,"description":"

                          name of the sprite

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"atlas","optional":true,"description":"

                          name of a specific atlas where to search for the region

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"l5hI2xGR5b79wfkWVBDIY","name":"getTexture","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the source texture for the given region (or default one if none specified)

                          ","params":[{"identifier":"region","optional":true,"description":"

                          region name in case of multipack textures

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"zvR5GmzQAB8Fhr3s7IFXV","name":"getUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the uvs mapping for the given region

                          ","params":[{"identifier":"name","optional":false,"description":"

                          region (or frame) name

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                          region Uvs

                          ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ZaDbwQ1iO4PA0ZQ60UJXL","name":"Tile","brief":"","type":"ClassDoc","description":"

                          a basic tile object

                          ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"jaboAchvnW77ZaopoptNm","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AXn5xKmY_HmChmO5io3hW","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the center position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XrGggN3RQhULzBMONkLCf","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the x axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bDiusfAKoesrcBiXOqp4x","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the y axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UK2I-JfVRVdbqdFY3ehGb","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Global flag that indicates if the tile is flipped

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vUg1QZ1qlSi_bpOeMKKNE","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped anti-diagonally

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HoeIJMmGzkiar3yNOCvy7","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped horizontally

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2QulvrOSv3V3MZIoAbSVh","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped vertically

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6-4DKd_tzfLsm26N2tspj","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1HKP5mssPGcDH7sFx49Sa","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kmmUOepsrEYRXNTHBeZQG","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sik5KtZVM090UdLbGPGhj","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          tileId

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lecnPk-pfaBhtalMTpWG1","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          tileset

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8F8YX5JPA6Tcswp2C0u_W","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VLNgKpmivU5EtXTqqibbm","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                          the object type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeMdEZlErZH3aIpWqd_ba","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"to8Y2JESPE8VjdYA0S2Nx","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VTjET8qclmKJknZu08UvK","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y position of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HUJBq0DG-tJUlRe76evV_","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given vertices to the bounds definition.

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of Vector2d or Point

                          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                          either to reset the bounds before adding the new vertices

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"zJDVrBZQkw8wGgLTxJ6Xv","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given bounds to the bounds definition.

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                          either to reset the bounds before adding the new vertices

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"LUXXBYFXNoq5Eg68hRYKu","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given quad coordinates to this bound definition, multiplied by the given matrix

                          ","params":[{"identifier":"x0","optional":false,"description":"

                          left X coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                          top Y coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                          right X coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                          bottom y coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                          an optional transform to apply to the given frame coordinates

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"93zhlxiF9_cACFoPoEVhC","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given point to the bounds definition.

                          ","params":[{"identifier":"point","optional":false,"description":"

                          the vector or point to be added to the bounds

                          ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                          an optional transform to apply to the given point (if the given point is a Vector2d)

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"e1DxWXqDSY4rRVw6HvElG","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the bounds position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this bounds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this bounds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fdYaxoezmw2rJLopyz2H8","name":"clear","brief":"

                          reset the bound

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dKAANg9xTA-iWtmSsIlv3","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this bounds

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jC1xTLchFFmTX5Vk2o7_D","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                          x index of the Tile in the map

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y index of the Tile in the map

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"gid","optional":false,"description":"

                          tile gid

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileset","optional":false,"description":"

                          the corresponding tileset object

                          ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0VmKjH_sNfd3bh5QbqmHw","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the bounds contains the given point.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to check

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the bounds contain the point, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iEJXMt_rrtZZnKnq4r6sO","name":"getRenderable","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a renderable object for this Tile object

                          ","params":[{"identifier":"settings","optional":true,"description":"

                          see {@link Sprite}

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                          a me.Sprite object

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hwMqhu7q5NdnZoEM-KiLh","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this bounds are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QduIY_h3vpO9zax1mjGu-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the two bounds intersect.

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          True if the bounds overlap, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8MsmUMPcefexDfeUcwCZY","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                          sets the bounds to the given min and max value

                          ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9nbR-PN6L92AYJZMj71r-","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the bounds to the given x, y position.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zahM9BEhlHf2nNJ4KBN7I","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this bounds.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this bounds.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4U70PRY6mBzRg-ZeiHtBm","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Translates the bounds by the given point

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"f_zTOf_cDMa3WfWrzLOcJ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Updates bounds using the given vertices

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of Vector2d or Point

                          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"u3GH4AZunC-hKqXy8zlXT","name":"Timer","brief":"","see":["{@link timer} the default global timer instance"],"type":"ClassDoc","description":"

                          a Timer class to manage timing related function (FPS, Game Tick, Time...)

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"DuIXAZItAmMOlZAnxU50H","name":"fps","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Last measured fps rate.
                          \nThis feature is disabled by default, unless the debugPanel is enabled/visible.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4W5lA7IG3KEPpSOPD4DHT","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                          Enable/disable frame interpolation

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aGfbLzU-EzRiys4pkY2IT","name":"maxfps","brief":"","access":"public","defaultValue":"60","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                          Set the maximum target display frame per second

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PPTgufZuIdyEdLFzRX8x3","name":"tick","brief":"","access":"public","defaultValue":"1","scope":"instance","see":["interpolation"],"type":"PropertyDoc","description":"

                          Last game tick value.
                          \nUse this value to scale velocities during frame drops due to slow hardware or when setting an F...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y_wNGKhmJdG3QFfblMHBp","name":"clearInterval","brief":"","scope":"instance","type":"MethodDoc","description":"

                          cancels the timed, repeating action which was previously established by a call to setInterval().

                          ","params":[{"identifier":"intervalID","optional":false,"description":"

                          ID of the interval to be cleared

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pMxVVJzrpG4vo48Z6thxT","name":"clearTimeout","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Cancels a timeout previously established by calling setTimeout().

                          ","params":[{"identifier":"timeoutID","optional":false,"description":"

                          ID of the timeout to be cancelled

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UJTOgzRGjdjku8aX8nixO","name":"getDelta","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return elapsed time in milliseconds since the last update

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v12L0bpKt7l2tbDAGVdCS","name":"getTime","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the current timestamp in milliseconds
                          \nsince the game has started or since linux epoch (based on browser suppor...","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3Nq_JdVhf-LNsfxwiQXrw","name":"setInterval","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" every 1000ms\nme.timer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setInterval(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                          Calls a function continously at the specified interval. See setTimeout to call function a single time.

                          ","params":[{"identifier":"fn","optional":false,"description":"

                          the function to execute

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                          the number of milliseconds (thousandths of a second) on how often to execute the function

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                          respects the pause state of the engine.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                          optional parameters which are passed through to the function specified by fn once the timer expires.

                          ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                          a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1927JVgEeRLRd5tknkh8A","name":"setTimeout","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\nme.timer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setTimeout(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                          Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.

                          ","params":[{"identifier":"fn","optional":false,"description":"

                          the function you want to execute after delay milliseconds.

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                          the number of milliseconds (thousandths of a second) that the function call should be delayed by.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                          respects the pause state of the engine.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                          optional parameters which are passed through to the function specified by fn once the timer expires.

                          ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                          a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"Hke7uni7s_afISKZa5sL0","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

                          an Hexagonal Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"avS-fLAXRVzK1DDzueGYh","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the renderer can render the specified map or layer

                          ","params":[{"identifier":"component","optional":false,"description":"

                          TMX Map or Layer

                          ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"P1lY4_SXeDRtky4XknqOw","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                          the TMX map

                          ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n13kIArEjI_OzkMKtKcEe","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given tile at the specified layer

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                          X coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                          the tile object to draw

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"USeoAhikK5vxC3uivyUyu","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given TMX Layer for the given area

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                          a TMX Layer object

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                          the area of the layer to draw

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m8ogWOKKEmxfOk0kRPFm1","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the bounding rect for this map renderer

                          ","params":[{"identifier":"layer","optional":true,"description":"

                          calculate the bounding rect for a specific layer (will return a new bounds object)

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EPoVTgoIQS00XZPYRjDNj","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile position corresponding to the specified pixel

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mcKgfVSsnx00dRkFSaJnI","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the pixel position corresponding of the specified tile

                          ","params":[{"identifier":"col","optional":false,"description":"

                          tile horizontal position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                          tile vertical position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"clUVTKA2ILVdciEdrquAU","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

                          an Isometric Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"Eczg1lgwMw26GZ3E-0_yb","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the renderer can render the specified map or layer

                          ","params":[{"identifier":"component","optional":false,"description":"

                          TMX Map or Layer

                          ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"L3LupqQf9UTNIk64cIfqz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                          the TMX map

                          ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"A11wjoAUvLLezmVSbO5zS","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given tile at the specified layer

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                          X coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                          the tile object to draw

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xCfs3JAo9FiHxidk9RPF5","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given TMX Layer for the given area

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                          a TMX Layer object

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                          the area of the layer to draw

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TgLXsBtHfYq51C24NiU5l","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the bounding rect for this map renderer

                          ","params":[{"identifier":"layer","optional":true,"description":"

                          calculate the bounding rect for a specific layer (will return a new bounds object)

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eDZbafdF0b-tn6uQJFDhd","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile position corresponding to the specified pixel

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PYpVicn_2pGbr-VWKsraG","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the pixel position corresponding of the specified tile

                          ","params":[{"identifier":"col","optional":false,"description":"

                          tile horizontal position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                          tile vertical position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"cxKohI5ZjrNN0R7sd0U-6","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Layer Object\nTiled QT 0.7.x format

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"87x7AFvA2GHGJIXl5wTPo","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cxpxG-plBpmnrLC2Ae8IG","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wVLac8xFXMD6AxLjWCHMz","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2mizV2D7gWGH_pBUyaaxO","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tToemO1fc6C8Jq0NAyUDL","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          All animated tilesets in this layer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pZr-6d25GiWmm_pKVV280","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JGp-sD1mc2pGcMiQa3dsK","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S6HAFPJIQu47UovvYJxy1","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B-cNmaeRHaRbqi3DcvB8H","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7mGaEbihjmIu82h6ebyEh","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jIzM4BAak49vjfkmQlSIp","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"34ZOhRutR9IzwGJ7WSaWz","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the layer class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W947tafuRKEvhk2f51dNf","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TkyOLgfrgm84ZnbcqI8AG","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cOz2YOtopXUc7BX4NVeai","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ydl3RwuaEcM1aE5R1WxQp","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yLMeJtVVUd0MkMaOExfnO","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zOB4iE-9BIOM0c-5YPGlV","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DC2_R_2C6X_XUR-kB65He","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Layer contains tileset animations

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8h23yOimPQneCroT3BxL_","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hy6Zkbnn1JJ_oUbi_1In8","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2tKgdtH7-rVmAJZnQI3PM","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"joe6Dxc6fGcXT2dY8761R","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a-T2QwfVKXNFTDGXz4bRx","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZQIVG66bu7OKo84c3BG5B","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P8po-VzTerA2oG9rX2OO7","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YaMehLiK16IgpcxHW4gJa","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1n-VuAef4gMDlNcG_mc7q","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xh2jBllCw4tWrkXF-u_rd","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8NDrH9xBrTDYphiEfkk2W","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yrjx3iOTZbX4V5lqdyQWn","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0j_-ddXTZrREYuo_oMHUj","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JiiTFvyTAKDux0tDHWvUD","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                          the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RSrIev7_BrANCSA01nHyF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HAxaH4kEFQVyQ-2tzUogt","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z-4cBfUnqZLgwpXz_Wd3g","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Layer corresponding Tilesets

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RMkLkJhF1zPBMHtXgWsuj","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tpEOj8Z7DsIzLE8TRexQF","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K8SE70LoCSs7rUxIGRAzL","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o8568uxLVCE8CUyTXcUZX","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fncYeKqgaohnzpPiW5ihW","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ERwb4csArJ62KjfKDZ9Rq","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Horizontal layer offset in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MehyiidgewrItuS1oFSDi","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Vertical layer offset in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dbyv-GNuI3fnCm1YS8_11","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a1Mpaz9mYO1zrQBmvAtcR","name":"cellAt","brief":"","examples":[{"caption":"","code":"// return the first tile at offset 0, 0\nlet tile = layer.cellAt(0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                          Return the Tile object at the specified tile coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x position of the tile (in Tile unit)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          x position of the tile (in Tile unit)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"boundsCheck","optional":true,"default":"true","description":"

                          check first if within the layer bounds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          corresponding tile or null if there is no defined tile at the position or if outside of the layer bounds

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LPzwW44RfwnsVF5eYzrFO","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pMn_aMN8WPN6e8MR1sX2q","name":"clearTile","brief":"","examples":[{"caption":"","code":"me.game.world.getChildByType(me.TMXLayer).forEach(function(layer) {\n // clear all tiles at the given x,y coordinates\n layer.clearTile(x, y);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                          clear the tile at the specified position

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate (in map coordinates: row/column)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate (in map coordinates: row/column)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NwkBjAfTEqrsjL2pPsJTQ","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jipka-OAE1rvv6gbPXBhz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                          layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

                          layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"tilewidth","optional":false,"description":"

                          width of each tile in pixels

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                          height of each tile in pixels

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"orientation","optional":false,"description":"

                          "isometric" or "orthogonal"

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"tilesets","optional":false,"description":"

                          tileset as defined in Tiled

                          ","dataType":{"tokens":[{"value":"TMXTilesetGroup","kind":"canonical"},{"value":"TMXTilesetGroup","kind":"link"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

                          z-index position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ekcixaGLAzPcfwDKR35rT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MEILjJngwz6vnN690s17J","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oVGmtCrlI5vsQI2CFXFPZ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bTl81KC0CZNRhzhTiUnXW","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CmUpb9pICtUbSeNN7xTxj","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cNNiPKWVehU2wCkU5xijO","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LPQTwhI8ixuYsM7Ejtx3B","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v5u6gJAPsF8tUfieQZazR","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_a3jc2EOvz47G_uuexPtX","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IwUeAhSBqDR6sWOBJCMpP","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"7IN47RHmV3JLhqjY7m9lf","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nz3im1q8zNJ2v6ARtjJ7C","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the layer current renderer object

                          ","params":[],"returns":[{"description":"

                          renderer

                          ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zwJ3RCBDPXlxfWr29SuF1","name":"getTile","brief":"","examples":[{"caption":"","code":"// get the TMX Map Layer called \"Front layer\"\nlet layer = me.game.world.getChildByName(\"Front Layer\")[0];\n// get the tile object corresponding to the latest pointer position\nlet tile = layer.getTile(me.input.pointer.x, me.input.pointer.y);"}],"scope":"instance","type":"MethodDoc","description":"

                          Return the Tile object at the specified position

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          corresponding tile or null if there is no defined tile at the coordinate or if outside of the layer bounds

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"chqS6xlDCW_cdJDPMMJ25","name":"getTileById","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a new the Tile object corresponding to the given tile id

                          ","params":[{"identifier":"tileId","optional":false,"description":"

                          tileId

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                          X coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the tile object

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ARU2p3FAGkbQoTenTf0Lu","name":"getTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the TileId of the Tile at the specified position

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          TileId or null if there is no Tile at the given position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8glxRK7SoMG_GvgTq0iuw","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lbTnEURm7Lfy2Z6kNzBbz","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"W41q2PibgyZka7R9QW7NL","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v2s-HmWyd0Uo1sTDsWDka","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TBHEoI_XYT2WaTgNeKPJZ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nGpy0OXerVTiz_PdMdf21","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vjbkOSGJrmfNuh1w78kQg","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"xvDxUPZDAhhSBSG3g01HJ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"3tTgkp6_MRWLt05UrwIG7","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ryyvPaicDPt2V7Xh-qWiy","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the rectangle

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KBmqczsM7bf5EAJlZ-eKb","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8dWGRF-FnY2TuGMyfiWHu","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M61bt9Ej1Khwlrkee45xO","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C5ln6bgqQgyusUJXihN1z","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mpBSDO5STjOco5-UAOHyC","name":"setRenderer","brief":"","examples":[{"caption":"","code":"// use the parent map default renderer\nlet layer = new me.TMXLayer(...);\nlayer.setRenderer(map.getRenderer());"}],"scope":"instance","type":"MethodDoc","description":"

                          Set the TMX renderer for this layer object

                          ","params":[{"identifier":"renderer","optional":false,"dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tOBs53aaPhX-hW003aGro","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qKxlI0D0qdj2Oy81jQvIo","name":"setTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          assign the given Tile object to the specified position

                          ","params":[{"identifier":"tile","optional":false,"description":"

                          the tile object to be assigned

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                          x coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y coordinate (in world/pixels coordinates)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the tile object

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TZtYO8cUqa6-w6ETf7_5S","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h-MixA1NOZs7NzMqm38HW","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rixiPMKOBHBTlk3Cx2foY","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2rRojyDgTHWqspsmyh9px","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vTIAXkVEfitS8jIlsYzT6","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mm3LcpPcAKOB4XV8b4foq","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SUB90CfhrVqPud2QKxZre","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hxEj9dEXlkfiS_BXZuPbC","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HC0ngR6JLJ1rhIW9VhJop","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update function (automatically called by melonJS).

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the renderable is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qFzIqKTS5yF9QWWL9XjJO","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this shape.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this shape bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hD4Q4PxYk-R5hxJW2hBQm","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"4IR-04RZIgKEYwwfW434B","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

                          an Orthogonal Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"33tyyF2wPIv1AzzY4cOpn","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the renderer can render the specified map or layer

                          ","params":[{"identifier":"component","optional":false,"description":"

                          TMX Map or Layer

                          ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xp9tVFPITTn0fwrtvpcJI","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                          the TMX map

                          ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_Xh36vAYuDQ7ij7IFggJM","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given tile at the specified layer

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                          X coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                          the tile object to draw

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5yxSxNy2xI9X2HVRALa-F","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given TMX Layer for the given area

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                          a TMX Layer object

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                          the area of the layer to draw

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qT6FUpFH9xgw_1indyIkt","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the bounding rect for this map renderer

                          ","params":[{"identifier":"layer","optional":true,"description":"

                          calculate the bounding rect for a specific layer (will return a new bounds object)

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dKY3-XHGlCU5X4NXW9AzC","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile position corresponding to the specified pixel

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I2cLFel2gAM37t2fRXH0v","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the pixel position corresponding of the specified tile

                          ","params":[{"identifier":"col","optional":false,"description":"

                          tile horizontal position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                          tile vertical position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"GUwIYfHNhc6bPCkVOOsL5","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

                          The map renderer base class

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Dac0QrIkRx7GTDQu_J8up","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the renderer can render the specified map or layer

                          ","params":[{"identifier":"component","optional":false,"description":"

                          TMX Map or Layer

                          ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oVkunA5YuU9evbbXVRv3t","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"cols","optional":false,"description":"

                          width of the tilemap in tiles

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rows","optional":false,"description":"

                          height of the tilemap in tiles

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tilewidth","optional":false,"description":"

                          width of each tile in pixels

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                          height of each tile in pixels

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"686-IW-A8mcKfxFwOP2yZ","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given tile at the specified layer

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                          X coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                          the tile object to draw

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VVU3L0XvzXRIg-Pfwlp1-","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given TMX Layer for the given area

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                          a TMX Layer object

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                          the area of the layer to draw

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5I1iUCSKCOKGZPgjYYfj9","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the bounding rect for this map renderer

                          ","params":[{"identifier":"layer","optional":true,"description":"

                          calculate the bounding rect for a specific layer (will return a new bounds object)

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4JwqcdvpUuXw3wb2naY35","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile position corresponding to the specified pixel

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i06o2QDq58XjiXEoaDEo-","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the pixel position corresponding of the specified tile

                          ","params":[{"identifier":"col","optional":false,"description":"

                          tile horizontal position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                          tile vertical position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"bOOCsIT3iVoBMegcnSd3F","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

                          a Staggered Map Renderder

                          ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"lY-vxtJWY4hmJ_ElPxbby","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the renderer can render the specified map or layer

                          ","params":[{"identifier":"component","optional":false,"description":"

                          TMX Map or Layer

                          ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ze2tZRPYqN8AxBUIhh2Tn","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"a82N2s-10l_4kf6zOwxRj","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given tile at the specified layer

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                          X coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate where to draw the tile

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                          the tile object to draw

                          ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5dXQd5FJu1fdp1QqMErC0","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the given TMX Layer for the given area

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                          a TMX Layer object

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                          the area of the layer to draw

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"o9eMSQLRG5_wOBamyjn6W","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the bounding rect for this map renderer

                          ","params":[{"identifier":"layer","optional":true,"description":"

                          calculate the bounding rect for a specific layer (will return a new bounds object)

                          ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FxDnqtAdg0IKp3vu02eb4","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile position corresponding to the specified pixel

                          ","params":[{"identifier":"x","optional":false,"description":"

                          X coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FeTmwL6ZEjraQd97JvGdi","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the pixel position corresponding of the specified tile

                          ","params":[{"identifier":"col","optional":false,"description":"

                          tile horizontal position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                          tile vertical position

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to put the return values

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"xz56MHWyNfeNHHD4RrkBh","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Map Object\nTiled QT +0.7.x format

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"wDf0N-W8HeLuQDOciWm_a","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The map class.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tG-S3Lmytg3la_FiJxje1","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          width of the tilemap in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1-9Cx9tdY5cXTLwFqu2Yp","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          is the map an infinite map

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ODn6YuXojmlaM5mvOrqS-","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          name of the tilemap

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gLbDqVoKS48oU4gQYSevZ","name":"orientation","brief":"","defaultValue":"\"orthogonal\"","scope":"instance","type":"PropertyDoc","description":"

                          the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “hexagonal”.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GnK9dy4O300I_raUfC5q1","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                          the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"htibJ6lYhji6xdhd2BaxB","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          height of the tilemap in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v-_Zw2dzlvomZosIDfe1z","name":"tiledversion","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Tiled version used to save the file (since Tiled 1.0.1).

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6WjoiKkSsvY5pKdoa0Yhy","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          Tile height

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l3WVkIqc2Af0qMGhxfhYf","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          Tile width

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lZNiuh_yrfhq3F8C_8s6g","name":"version","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the TMX format version

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ob8G_1v3qt4PZ1uKfryCD","name":"addTo","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true, true);"}],"scope":"instance","type":"MethodDoc","description":"

                          add all the map layers and objects to the given container.\nnote : this will not automatically update the camera viewport

                          ","params":[{"identifier":"container","optional":false,"description":"

                          target container

                          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"flatten","optional":true,"default":"true","description":"

                          if true, flatten all objects into the given container, else a me.Container object will be created for each co...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"setViewportBounds","optional":true,"default":"false","description":"

                          if true, set the viewport bounds to the map size, this should be set to true especially if adding a level to the game worl...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ak6cJzY0SwEhL64MwlEGN","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"levelId","optional":false,"description":"

                          name of TMX map

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"data","optional":false,"description":"

                          TMX map in JSON format

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"M58FkCuE5YmbfNyh5D0sJ","name":"destroy","brief":"

                          destroy function, clean all allocated objects

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xpIfkv_-mjBnXtBwzHsrE","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the map bounding rect

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"plZRFfbLWEIaWYk4tIFRr","name":"getLayers","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return all the existing layers

                          ","params":[],"returns":[{"description":"

                          Array of Layers

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"yDnrwwg8NNGHt7JQbgtB1","name":"getObjects","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return an Array of instantiated objects, based on the map object definition

                          ","params":[{"identifier":"flatten","optional":true,"default":"true","description":"

                          if true, flatten all objects into the returned array.\nwhen false, a me.Container object will be created for e...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Array of Objects

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"XHBIRo8VHZBGeGPJrSBuW","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the map default renderer

                          ","params":[],"returns":[{"description":"

                          a TMX renderer

                          ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ujbggP8MQEHEf36oRryRk","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Set Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"3T0DuRbt-mIEAkJvLIKH5","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the tileset class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lVxihAK6Dv4NsOMNUHOjP","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Tileset contains animated tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YtQodt0m4qQe-_MRvkoxd","name":"isCollection","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the tileset is a "Collection of Image" Tileset

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kuDU6vJGMVmFEGzmNroS8","name":"_lastUpdate","brief":"","access":"private","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Remember the last update timestamp to prevent too many animation updates

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nFCNlgeYO5ynZLGBHTVBv","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          Tileset animations

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OhiHDXxzpiQcpRaLxSh2g","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"tileset","optional":false,"description":"

                          tileset data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset})

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"WjWwkaaXPy8L0QgR48W4z","name":"contains","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the gid belongs to the tileset

                          ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nAjzP3eHZSNlx2f4Ue2cM","name":"getTileImage","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tile image from a "Collection of Image" tileset

                          ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          corresponding image or undefined

                          ","dataType":{"tokens":[{"value":"Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5POeiiqkMrvem_z-Xl4W6","name":"getTileProperties","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the properties of the specified tile

                          ","params":[{"identifier":"tileId","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"xRtb8spPxkz6F4pM-yrEk","name":"getViewTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Get the view (local) tile ID from a GID, with animations applied

                          ","params":[{"identifier":"gid","optional":false,"description":"

                          Global tile ID

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          View tile ID

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"jOu-mgBK7kTS_Oferstue","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

                          an object containing all tileset

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"iHd96byw-VmU8H4Ozw8N4","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add a tileset to the tileset group

                          ","params":[{"identifier":"tileset","optional":false,"dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PCmzVP9Sp-5o96x-yTm6o","name":"getTilesetByGid","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tileset corresponding to the specified id
                          \nwill throw an exception if no matching tileset is found

                          ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          corresponding tileset

                          ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"05p3YD65XpRXcehwnDEmh","name":"getTilesetByIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the tileset at the specified index

                          ","params":[{"identifier":"i","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          corresponding tileset

                          ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"d97t9tUcdBaLshNzQuf-O","name":"Trigger","brief":"","type":"ClassDoc","description":"

                          trigger an event when colliding with another object

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"bkBNiAt9jd9jGRoi-dqgi","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k3QD6mIHLJfrAC76rHY1v","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cDnCTlu7eqWiUOQ-PYsbi","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v7gTiOCHJxkt-mM_Udt42","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LsU78GQUDv-vvFchFflpd","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uR2NVYsSG9yJYSo0s6ft3","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JaMTB6VT-q0Kc5NR-Ibs","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9MYTbCPAScwvBGId07c0b","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EhfYsFZzQp6u-PobciGrc","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dw0Dju07sggjdcZe-gw6e","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yogICnT_s2FwY-M6u5vXI","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"osJkpiymwDDIml_IbH38n","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"67UYc1LebRuB7PvTWH6hs","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D2yeWH3ok1LYGgG1qEQzn","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nPrgQ95xaqOoy2GwM1ZSa","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e-GHxDM1URIfht6pCQNWo","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vzezpPBzVK1EUOjrh8NU6","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZOassa99LB1A_qoEYwHBh","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TUcKj8DOt1v4Ont8HbDEW","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zogfwc4fQy6MRURwxtIh1","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nse3b_3hQSKBJrA1kL28J","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WE45F1rVSqTUb-vmLKywc","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xey1lmNr8iAeC1Su7Fjln","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wkW6iiB_72EPSR1Ndnj1_","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Kvj2pto-GE9vql23JE6mE","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j_THHn86RyJqW_0iwrndh","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Uivz9t57xGuiCxGQ1SEYG","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"embTVfAbPoQue83UZPyHk","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jNCUg_lB5mPEbVssRjAQl","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FwL8fqZZezP4ecYagpccu","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OJlTavwTd-713R5Ixk8-D","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B7TstWDZQNIo4AYehu9qR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hntsoNG6ll7K5ucSYIwIe","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FSkMUNguxG_JoZi53Dvtd","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIiamIM0OqkHmVydjMT0H","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xpvy65ru5yM1k9TunptsC","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMouC6V3EoAvFTA40Wo3t","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rcnnsY_JQMBQcp3SjdNGA","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4wb4BFL8Sh4tUp0xrqqPN","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"07IMdHg3gFNH1Azwp5x2_","name":"constructor","brief":"","examples":[{"caption":"","code":"world.addChild(new me.Trigger(\n x, y, {\n shapes: [new me.Rect(0, 0, 100, 100)],\n \"duration\" : 250,\n \"color\" : \"#000\",\n \"to\" : \"mymap2\"\n }\n));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinates of the trigger area

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinates of the trigger area

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.width","optional":true,"description":"

                          width of the trigger area

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","optional":true,"description":"

                          height of the trigger area

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

                          collision shape(s) that will trigger the event

                          ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}},{"identifier":"settings.duration","optional":true,"description":"

                          Fade duration (in ms)

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.color","optional":true,"description":"

                          Fade color

                          ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.event","optional":true,"default":"\"level\"","description":"

                          the type of event to trigger (only "level" supported for now)

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.to","optional":true,"description":"

                          level to load if level trigger

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.container","optional":true,"description":"

                          Target container. See {@link level.load}

                          ","dataType":{"tokens":[{"value":"string | Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.onLoaded","optional":true,"description":"

                          Level loaded callback. See {@link level.load}

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.flatten","optional":true,"description":"

                          Flatten all objects into the target container. See {@link level.load}

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.setViewportBounds","optional":true,"description":"

                          Resize the viewport to match the level. See {@link level.load}

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ftGvQpxZS18Nv2SPFRLYy","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kbF3Akk1tyj3bgnOdQagM","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"USFjUWUbdE2oyJSah5LTy","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gBTfduNwMCAUv28vEHLii","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iL3VINe7NTs0klDnBtat4","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Kw9c190eZmfFGWwNGrbfX","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EGuQQNMW5YhKAX4_6puXK","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3oaIpt92nzCpdu0BPQyny","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KgTCZVqYDQjKBpaqpVvAF","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dItPqZKBQuvV9x3veLsPq","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"9d_8UV4Ou-SQHxrLr7ERK","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7XqSHN28op-GJ4IbT94nw","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qibkaN_F6O4OK4z2kxD1y","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XY1qpvnUxoPH29DVnZIdo","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"joKRnFVYt5kaEORz3hYfU","name":"onCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision with this trigger

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RNnnKTw09z2WWl-oA5oLp","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1ezZnbg2ZYb53AH98HgMR","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"urpk-vnXR5ra951CnSR9x","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"64_2V4dFpVwhKrflMqq9t","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"IYg9Yv_7UIn5UwdHezg3V","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mh8FJmeKH--D3A9kd4OPq","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the rectangle

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D0_laddEmHgsXdF9NU9wg","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R3D997ONsiPyeHnMQfQiA","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZQkPiuGP5Zexm5K3vIGuw","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5KoPhP7Vyn4Qvl4DsqMaG","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RWEWSUJMbuBsMMVALVDPI","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XSBOzDZyVZMbqeVtioakV","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tpr7jBGq6y8yqLAjtd4w8","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q_8Fxxt7xRt7IWujw9UYL","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yt4ZK0_tP1Q3ZiLFFQL-m","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o2VRl4Mnv8KNaTp9B8M6P","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1lckodBvYieFMMJOWqZWH","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0y2X9A0W2VIIhWBPnbPF1","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OXDFc-Hj4yIPZcz1-bhgK","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3Q7-u7yCycWOP1dnJJ7A1","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update function (automatically called by melonJS).

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the renderable is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EYWkoFz0RQ9Mn9tPbnJ-6","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this shape.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this shape bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xFdmofW0MovG-5RcisWDV","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          trigger this event

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0BlY3XuDeTKLEAPRY7E22","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"f5bRpbiESAFrIR3BGH8Ar","name":"Tween","brief":"","type":"ClassDoc","description":"

                          Javascript Tweening Engine

                          \nSuper simple, fast and easy to use tweening engine which incorporates optimised Robert Penne...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"eyGv31pGARJC7nNaTRfFj","name":"Easing","brief":"","access":"public","type":"EnumDoc","description":"

                          Easing Function :

                          \n

                          \n Easing.Linear.None
                          \n Easing.Quadratic.In
                          \n Easing.Quadratic.Out
                          \n Easing.Quadrati...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fpClaMBkkDy0d4AMViq5b","name":"Interpolation","brief":"","access":"public","type":"EnumDoc","description":"

                          Interpolation Function :

                          \n

                          \n Interpolation.Linear
                          \n Interpolation.Bezier
                          \n Interpolation.CatmullRom\n

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JCqNqEH13DfYSJQGoR2Fi","name":"chain","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          chain the tween

                          ","params":[{"identifier":"chainedTween","description":"

                          Tween(s) to be chained

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"izwPL96_FrZQWJJKgqP7p","name":"constructor","brief":"","examples":[{"caption":"","code":"// add a tween to change the object pos.x and pos.y variable to 200 in 3 seconds\ntween = new me.Tween(myObject.pos).to({\n x: 200,\n y: 200,\n }, {\n duration: 3000,\n easing: me.Tween.Easing.Bounce.Out,\n autoStart : true\n}).onComplete(myFunc);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"object","optional":false,"description":"

                          object on which to apply the tween

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"RgO2nH82OuFMBsyPbkDMj","name":"delay","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          delay the tween

                          ","params":[{"identifier":"amount","optional":false,"description":"

                          delay amount expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p3uGsD9M2jSvjFUZd6fyb","name":"easing","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          set the easing function

                          ","params":[{"identifier":"easing","optional":false,"description":"

                          easing function

                          ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KzIiE-Lbj6_EJiAvklm83","name":"interpolation","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          set the interpolation function

                          ","params":[{"identifier":"interpolation","optional":false,"description":"

                          interpolation function

                          ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d0EVC47Ek6zYOTZsDz__j","name":"onComplete","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          onComplete callback

                          ","params":[{"identifier":"onCompleteCallback","optional":false,"description":"

                          callback

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ck_vE3yJNjFM7Jp1IP9He","name":"onStart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          onStart callback

                          ","params":[{"identifier":"onStartCallback","optional":false,"description":"

                          callback

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nYMnL-0v5VBuxsBAV6H0s","name":"onUpdate","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          onUpdate callback

                          ","params":[{"identifier":"onUpdateCallback","optional":false,"description":"

                          callback

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OenLB9c4eKQT7M7QxafBn","name":"repeat","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          Repeat the tween

                          ","params":[{"identifier":"times","optional":false,"description":"

                          amount of times the tween should be repeated

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9Aq8Xzx1yC3kw_331uqrz","name":"start","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          start the tween

                          ","params":[{"identifier":"time","optional":true,"description":"

                          the current time when the tween was started

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I-XQQ9QTFkuk4rJPixl_4","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          stop the tween

                          ","params":[],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hOcVGJ0HdXCIWHMSdGqF7","name":"to","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                          object properties to be updated and duration

                          ","params":[{"identifier":"properties","optional":false,"description":"

                          hash of properties

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options","optional":true,"description":"

                          object of tween properties, or a duration if a numeric value is passed

                          ","dataType":{"tokens":[{"value":"object | number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"object | %1"}},{"identifier":"options.duration","optional":true,"description":"

                          tween duration

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.easing","optional":true,"description":"

                          easing function

                          ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}},{"identifier":"options.delay","optional":true,"description":"

                          delay amount expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.yoyo","optional":true,"description":"

                          allows the tween to bounce back to their original value when finished. To be used together with repeat to create endless l...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.repeat","optional":true,"description":"

                          amount of times the tween should be repeated

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.interpolation","optional":true,"description":"

                          interpolation function

                          ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}},{"identifier":"options.autoStart","optional":true,"description":"

                          allow this tween to start automatically. Otherwise call me.Tween.start().

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ombQPRwmYBqeEFV497rSP","name":"yoyo","brief":"","access":"public","scope":"instance","see":["Tween#repeat"],"type":"MethodDoc","description":"

                          Allows the tween to bounce back to their original value when finished.\nTo be used together with repeat to create endless l...","params":[{"identifier":"yoyo","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this instance for object chaining

                          ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"HPWuCA9PovawhHFetN8WD","name":"UIBaseElement","brief":"","type":"ClassDoc","description":"

                          This is a basic clickable and draggable container which you can use in your game UI.\nUse this for example if you want to d...","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"5QiFXo_fiJc_LgIKttizO","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m8J2PCSQAP-G182kizJ2t","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UlcUD-jHK2fHhSpKnOn1Y","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"deBI-S1b0EA_CoNMhHyLT","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mulDJs8ZsoEsam7L84l5x","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the children z index should automatically be managed by the parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2UY8rcrzVPfA_eS7Rp3U2","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the children list should be automatically sorted when adding a new child

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j7JKSgc1MqTF3GaGWXfWy","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pdlLVwDZWZJ_rJvKjnjW-","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a background color for this container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QFhln_8BoqbB1WrNbs4zW","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nlp1M8Q-imvZGDqoqxEhj","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Z1FwfM-zfn4hRghWVjuT","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CJEfBOZ2lGGTOsvwZ7iUt","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dsKhg5APLInRIRS-57lMw","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i5ndRJOjNnso3sT3xU7BX","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the container draw operation should clip his children to its own bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TbXiT_C19Y--t-Ab2WdeQ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9IZqARZZHmFAYkP81FVhv","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vbSncDB0fR9ihAsQMj7Xm","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HuadA8pliJ6j-h30-OHzk","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                          UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"stBWDAF7IQhwUoYsWMQat","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JzZ0cEHnbzakYdQCdxzlC","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JcyDGRWAO4JwKWgI_hNot","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lnyLR8USde7xN46qoGVjK","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uYOy_pL0DarYRTAVZEvnH","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_AVfL26iJg04MBIwz-Qsh","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PQEwHdR38NVToACnud0NG","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-DwUwf1Q1YPDgY0P8fOZY","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_sfRqVlTy122IhHbOEpyR","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xd2aqMAazmqtyeBlAgxkc","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0279DXU1IAFZtOodrTv2x","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"35V47fzrcDmrZ7xqwcj5_","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YpKzQAQexnL1BoE3y--xH","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9IoaHFyxRs6_efPUlNEe","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nIiGzPtikiELg0OYyJ-Pl","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RqUaKV29zohCLH32K51SM","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PqH3uXh6RsWQo0M0a0MCS","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GCI6jU7OSXPCWFRYiaWvX","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9uHgkfqLFIPyu7r6S91k1","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sgc36L7vXy3HLXQXmrrpa","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CHzzPdLFxNIGEr0yDrDV_","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-J8eRx_EVh67XGrv9caum","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          false if the pointer is down, or true when the pointer status is up

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kRpYFvt58Ozqhf2QsDxj2","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PLAaXXo2GwAPkGQ68a_tj","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          whether the container is the root of the scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qFkF1MBfEU39JvPtwaGGI","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AEZXc_Orwr_4EzcYTsKmG","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                          The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"773jP0YkDCBwY2SAS9a2j","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sXaLbOvxcNM624EYHzyjr","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zv-lwHUNJNukJL3SbUkTx","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fJs4lcmzNQDpoGNW5q4mh","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hZX4ECYx38njYt-j_18us","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"quCe3Pl3kekUjcW_obuMJ","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add a child to the container
                          \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                          forces the z index of the child to the specified value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the added child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QxQOyZ_jtNfvsQ7LY0Ecs","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add a child to the container at the specified index
                          \n(the list won't be sorted after insertion)

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                          The index at which to insert the child

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the added child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3PjTQjJXYTvf52KSc_BJk","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B2HddLLbEqtha3KMqYZoe","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6dNdv3CwRn2aTuhc_17WE","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oNznNV3JICIoV00gk5Nrp","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                          The x position of the container

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y position of the container

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the container

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          height of the container

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EZRwX2IcOkAF46EV9sHr_","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0prO6zjUyWBTHZVSdLgpe","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7FLNDEfREpzLg0s1LE-lh","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gxnUJXS4Gm4eohMllerzE","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ef4oBc1uaigp4VyISh2AC","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tzEJtePoYbUKV4lF0PND6","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CmDnY53RmHjM9i4h0rCTJ","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                          The forEach() method executes a provided function once per child element.
                          \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                          fnction to execute on each element

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                          value to use as this(i.e reference Object) when executing callback.

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"-U32Z8isCDnM7fjhDsf6L","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1el6OAI-X-MwAFVbU_5wQ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V9VW7ufGvlFwyGhsCNEMJ","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the Child at the specified index

                          ","params":[{"identifier":"index","optional":false,"description":"

                          The index of the child

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the child at the specified index

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sSTv3YAZmS4ut4Rs9tBR6","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the child corresponding to the specified GUID
                          \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                          child GUID

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          corresponding child or null

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a9BRCJeU2vECEKn-L8D1I","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the list of childs with the specified name
                          \nas defined in Tiled (Name field of the Object Properties)
                          \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                          child name

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          Array of children

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Lk-a0-HNZ0kHpdGjUBGCZ","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                          return the child corresponding to the given property and value.
                          \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                          Property name

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                          Value of the property

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          Array of childs

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"OKYN2Kjd7SOEidaqKlmik","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the list of childs with the specified class type

                          ","params":[{"identifier":"classType","optional":false,"description":"

                          Class type

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                          Array of children

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"W0drFpnVS1wBRidaWDvIX","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the index of the given Child

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                          index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pjTKDIM4WvPrBijQQhg7I","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return all child in this container

                          ","params":[],"returns":[{"description":"

                          an array of renderable object

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"eJvPchVmL6DESLAQ6vULO","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ugjgy_0-WWqcwptVfOegE","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the next child within the container or undefined if none

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                          child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fe-eQpo5bhMdJAS-q_Bl_","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W9OlAvvEpDJHAKF3gGkim","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the instance of the root container (i.e. the current application World container).

                          ","params":[],"returns":[{"description":"

                          root container

                          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MhnGf6mEOm58rJxI4KiIU","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if contains the specified Child

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_dZjIhKNNNqgN4Aa5p8HV","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Checks if this container is root or if it's attached to the root container.

                          ","params":[],"returns":[{"description":"

                          true if this container is root or if it's attached to the root container

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gwqJIN8HSDZIB3XopsCzp","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fspKtA8h-34kgPD4f4wWq","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_7qJ3XZ0KczsvjU5doxmi","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wbTvAilA0wXYlx5_4jKTM","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the child in the group one step backward (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"H5v53MMbdGwq8kQk9GU0s","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the specified child the bottom (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"HC2HjczCXBcU51OTCzN09","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the specified child to the top(z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"DyeRrs2qu-PaJNflp08fC","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the child in the group one step forward (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"SFBYeLOkCMefC19dK-ZSf","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                          a callback to be extended, triggered after a child has been added or removed

                          ","params":[{"identifier":"index","optional":false,"description":"

                          added or removed child index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2TfCt4VuRn8exNviwsZ4u","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed (to be extended)

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CSqQkLErdIDkwhu7XF5QN","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"10pTZMNstAAjGytcPzZR9","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ol6zzhWqIXBX1fVdaGpmY","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and held
                          \nto be extended

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SKMeUWwAOh79TsLVA_plF","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is moved over the object

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"w9FWjqcQtfTBFFH8trVbC","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is leaving the object area

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"chRVt2efTbB8aeJ6hPngE","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is over the object

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"uBBk1r4Gq1ANM9MzGMChX","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and released (to be extended)

                          ","params":[],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DnWDtNYPnAlDm_pw8ROtr","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RsOoxBzWP6UrA-hx7SeqH","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"LjFwkfoNas1qtPnFKyhWi","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"1xkyspRyH7srzeztHlJGP","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4A63UZf8B3NvNZ-tWnXZF","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be removed

                          ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                          true to prevent calling child.destroy()

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"kZxyQxIkPZRCDmvdkIkCY","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Removes (and optionally destroys) a child from the container.
                          \n(removal is immediate and unconditional)
                          \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be removed

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                          True to prevent calling child.destroy()

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"2ip4YtUyziniKg9F-PwuG","name":"reset","brief":"

                          reset the container, removing all childrens, and reseting transforms.

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mk78gWSau0c8dVVcyTilG","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the rectangle

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BGIowyrNfqvceVDECkQVs","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o2kGH7Qb6hUZkEfAUkd6h","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cfKwaLuv8_DkHILJ3Jwej","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wfr6iOwI6J_ov5W89bNk5","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Automatically set the specified property of all childs to the given value

                          ","params":[{"identifier":"prop","optional":false,"description":"

                          property name

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                          property value

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                          recursively apply the value to child containers if true

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"rB_5xBs5rKTwVZIaC5U5G","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-cZfE3beibYLatVFx0D1R","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7gigJy9w5k4mG8uOMUnoE","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cf9Y-c2LOcFECiArFYLro","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"O_nZtSqLqo_SuiBdPU6Sy","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Manually trigger the sort of all the childs in the container

                          ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                          recursively sort all containers if true

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"nYJoXeFZ79Scde2g2BQWg","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Swaps the position (z-index) of 2 children

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"hO-_Ki8Gv8IbEMtFBy1zy","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OgJW7k7QPkWLcYSUXWA7u","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"08GmnbGlqT8abgsh8EiIY","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vyOQ0YKldLeM6anAtlKUF","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"36lAqtqZCGTCFmK5mT7Ez","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FHhf-0VdudpTr6UgAOI5p","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aA0i0v4j6GAcaTBpdh0Vi","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this container.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this container bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M8EHHjAmfTohrOv_70nWV","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          draw this renderable (automatically called by melonJS)

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c1wqDZyiSHNCn5RboUTAU","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          container update function.
                          \nautomatically called by the application update loop {@link Application}

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the Container is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JMBZm1z06WiU-FzNgmC5i","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"bLGvyP1uikp_K11QrmtRz","name":"UISpriteElement","brief":"","type":"ClassDoc","description":"

                          This is a basic sprite based button which you can use in your Game UI.

                          ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"dynBnLcZTPD74ovfdB2Sp","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vcsqFHHemVYXYFwjAhGYW","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-XSB6rHBaJ-NexwEJyJRv","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e0BQIESItJI0Br9GyK9cW","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FxLInioaCGQjZRct33qs3","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7pS4cBbxGPV2vDZbWaVpd","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                          animation cycling speed (delay between frame in ms)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S5Oh-sVqnQ08vyqNwYC14","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R2-QzqDeQstExTHtq26-i","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UIGDWj1NZ4euqmDO_PgvS","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MrYPYo2GEgN8_ooluCTvF","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygh5uXmDEsNoBBeGH54-l","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V0g5ovfrdKDOSeJ9S1qgf","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMGEOAxFUl6rfgRJRUHSE","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PHGFSNnnKqQP7tuTF4FEW","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a3TZ6Nnj6qCGfxng1GAlN","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                          if this UISpriteElement should use screen coordinates or local coordinates\n(Note: any UISpriteElement elements added to a ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qIMESZ8jhCcqUIRRpw1L_","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NBzk8Od65JwM2bP0SayzY","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7708ajDjTVr8QxWLUHpo3","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"APMkPqI9S2joSOZdPSOZv","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OuBZuKsSUNU5IM3ByfMHC","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O_feAlPmePxsHue3BsVVc","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C4IQUkxyzoCCmN0_0SgFu","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qwQ3-iLeGZ7C34MYInN3g","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1OqYJlnVXrlvLeXePP5Am","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xKwiLb-C-ZgxFF-Q595Q0","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ymyxIi3XYPkiKqcIMFJr","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QVMP8DD-CVQiXy3FuCS7W","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GKEItw5EyWhZhXNvIH6gP","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rw7PPHP0xvPk9lK0tvfjD","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fi8eV1wD-cOYqNV1_6n6R","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tQIGVAmRjhNPKfeEN97vJ","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ym9Aq62CjO_daBH1Z2aGn","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1smr540X6V4DjVOQGsGoA","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                          global offset for the position to draw from on the source image.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9gABnj_Otbkn8wNFgZ6XM","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1dc-0vNqpGYjhR4wS31qy","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZUH4oUHmYLlAYvH0ShQYc","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yUHd2WzzykpwARKpC0uAO","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JyUPpU0OZKf96xfJLfGwh","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"arlZDZ9NUjJPh7vqezN-I","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fbNdCVsEdyuUq_gEd87wq","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          The source texture object this sprite object is using

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BLrcJpl7VekfbuFsDOnes","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ir-sYhgSj-qUMtpBrkb0b","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4btBPCd2uWn1o9UYmuD-d","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6vi-8umCGJ40nDFI0wV-d","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-9Q0iM-ExlGjXMBZopZmm","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D4ixohB951Q1U6QIgZUkD","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                          add an animation
                          \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                          animation id

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                          list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                          ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                          cycling speed for animation in ms

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          frame amount of frame added to the animation (delay between each frame).

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZP3S_z8jTryMwR5vJECY_","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bUOADUy-F6iaLanNeQbpB","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EY-uVc3CP_-aZnMWS3nG0","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aBc6D3-Dtqnutao9FSBp_","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a basic GUI Object\n class myButton extends UISpriteElement {\n constructor(x, y) {\n // call the UISpriteElement parent constructor\n super(x, y, {\n image: \"button\",\n framewidth: 100,\n frameheight: 50\n });\n }\n\n // output something in the console\n // when the object is clicked\n onClick(event) {\n console.log(\"clicked!\");\n // don't propagate the event\n return false;\n }\n });\n\n // add the object at pos (10,10)\n world.addChild(new myButton(10,10));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate of the UISpriteElement Object

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate of the UISpriteElement Object

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                          See {@link Sprite}

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"jNsn0oiysMz4Z1CmIz0gs","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3wtXdVn5yCfPRVInwzE77","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lNrcBynrDm54b0o8nrRT8","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YgW6rIqBBeQn2Rkog6HxE","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"R97KX2LTUqMAIDNBbG9dw","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                          make the object flicker

                          ","params":[{"identifier":"duration","optional":false,"description":"

                          expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                          Function to call when flickering ends

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"224w9dYpMosJjUHP3v_QQ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nqIgpqhaQRofxn-V5QCdQ","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KBStS88RqLin-sTRZFqm9","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PH4QMAfY_hFoAFaDtESBM","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RMNZwwy3bglIS02qZsB37","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the current animation frame index.

                          ","params":[],"returns":[{"description":"

                          current animation frame index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4KBob-FguC2WBav0e8Y9a","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"NahSDOUESS1ZHm6xE_vJl","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jJqPm8hmWXwS779x24_w3","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"b2xlF3K9gOO-sdRbBH4b6","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          return true if the specified animation is the current one.

                          ","params":[{"identifier":"name","optional":false,"description":"

                          animation id

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7zOMjN7joPMms_EizVwNF","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"26pdsLgVYXRKBU4pqE1Az","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the flickering state of the object

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pbf5gGpn4zEE4YsJmha9S","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iFarXr7Jywv0xmjXWnFmG","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed (to be extended)

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zsreu6OREkh-rGWZG7u18","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7JAT41pkOzexL9_cLuWse","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"quCiFzEa-tkm8Z2yRABsS","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and held
                          \nto be extended

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rr0e-JncRiD3PZKO-pOfi","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is leaving the object area

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"v62bqkSHkwj5TfyPFwkMk","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is over the object

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qgcIgE8fKiqrTWMpV5Xrm","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and released (to be extended)

                          ","params":[],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XEJkjAthkR0shm8NQ2rgC","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DhmC8VcLRL-M-7djl3iVL","name":"pause","brief":"

                          play or resume the current animation or video

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K8nT-RchihBDZO78ukDUn","name":"play","brief":"

                          play or resume the current animation or video

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6x2oI6CrOjF_wq6Ov_hCC","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"8_k37oBnLPNtTlmMWCi_K","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"i6b35uS9iwlKMfxxgxDYr","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2gebgaTG10aEIEmaizoEu","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the rectangle

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qLeMexNvhJgDbDmOSPgG9","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                          reverse the given or current animation if none is specified

                          ","params":[{"identifier":"name","optional":true,"description":"

                          animation id

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-u-ZwjBPEW-IBqDxHHU2s","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"alF0ZIZpiyJLG2EqdUzZH","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ULQoaIhdxwN9KNxH_uVIG","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"epdSEynBk1rsUJoTzy62o","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                          force the current animation frame index.

                          ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                          animation frame index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8SHu24PntSeRTQJapPtY7","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                          set the current animation\nthis will always change the animation & set the frame to zero

                          ","params":[{"identifier":"name","optional":false,"description":"

                          animation id

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                          animation id to switch to when complete, or callback

                          ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                          if false will reset the elapsed time counter since last frame

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yxFw3HZNuwl5qDDYxDvpa","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NTxANjQ0_e_6Y6DbSl52B","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                          change the current texture atlas region for this sprite

                          ","params":[{"identifier":"region","optional":false,"description":"

                          typically returned through me.Texture.getRegion()

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7lXnAqL2xhuVpIkifOrlh","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WoOYtaRl8-cAJUmnXDwf_","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fwLJL9TgXZNOBLG5i_9Yt","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RZW75QHGoUEYtRL6TWeu7","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J2IOBLfBobIcoC8oYTScD","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"US4m0a6btoJlL_T8H_Bko","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A3vmHralO75tDnzV868vH","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ewVu-3F5dEDx6hz1JRQUB","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"35l4RHAuoZ7zj15Ot6v73","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dogSlQnVJ2xieugqLzLTQ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this shape.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this shape bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7RfK-G1S5ONJDeP4b2KAB","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          draw this srite (automatically called by melonJS)

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1y5V5LE_OIIf17BMai29q","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          update function.
                          \nautomatically called by the game manager {@link game}

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the Sprite is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VtoNO8YBexRofAuWTLXDT","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"6JR_0M6DkH4R3lV3BSefe","name":"UITextButton","brief":"","type":"ClassDoc","description":"

                          This is a basic base text button which you can use in your Game UI.

                          ","params":[],"returns":[],"extends":["UIBaseElement"],"implements":[],"members":[{"id":"ZVUoSPmJCheZmvP_NJ2e0","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"osAdqYEbWwpWiZnumTRWe","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1totQ6UmSrvxprXw4v4gR","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aOMwqhsU402zkgSuNC5hf","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XysVyU52IzDCVcTGL5ic3","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the children z index should automatically be managed by the parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cg796SLvFXbzBduCjcDhC","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the children list should be automatically sorted when adding a new child

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rw2Gw9jzrW33s1eoZcqjq","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nq9O_GVTRDxVvtpWejckj","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a background color for this container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jxyQ77Fohz87vPtHnp8YZ","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The key to bind the action to

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V3kFGLx4edeOTY0rBlL3C","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the bitmapText used by the UITextButton class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yNjp1vCOPn2yP9yrPw1N1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wa4Fnv0bKaIhU7MHNEx_A","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vJmUaSJ7-0r-VBtvMRtpU","name":"borderStrokeColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The css value of a color to be used to draw the border

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WtpYvXx6gPW2q3HKaR_E4","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tdhemVv9uqOOfvL46eZms","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aA2fOmoxESBB81DolLP2e","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"umtMyrE03cdqySHHozj5g","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the container draw operation should clip his children to its own bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5LHH9D79DawZ5NXQ7Jp2P","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tefrJw92YsIdkABpabYeL","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MtJf75Dll42r97GvYF2B0","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7KDClGI374K5gsiZzFOsO","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                          UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hjpl3Pj8OzD-JKBJNgeth","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4r6cUGDFr40l8HZYQ50nr","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3qxoOsNjbKXLjbNikUAus","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0fG-lmlU7Ei1htRGfEBih","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pDMUNCJtMB3sz4H5zJ1QJ","name":"hoverOffColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The css value of a color to be used if the pointer is nothovering over the button

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tEGS_s8-T7_Yf8j-A0WhF","name":"hoverOnColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The css value of a color to be used if the pointer hovers over the button

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bBuYD8wNie-cArg5OXrYH","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ahs7_NhELSIyXSGk_UNQ1","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AZ_2ab5xzboPQQ_yQpCrF","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ztkszmTX8gCNL2578DGDO","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q0daW7Z96HOi6EC7awb5S","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5MJ0gyUk523bk-KOQsiWi","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4S9OwDQRE464kM__C7Fvg","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hJdFsV6eEbAeGJN10Cz3x","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2U9GbEE1vCp5lqSTAQmq9","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AM4ZoHi702EB0T3sU9MiJ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IdLbCEoHZUDc2dvKlx-5R","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E9WXU9WV88IEhwfKajbSE","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CZ7RSbs4_SVrjM0zT_c1D","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XL_Tf_o8JoK4b1Qk-IlHk","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cB98fAH-7LpQQS2XzeuMN","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KQD1CVH9xqqiL_1h6nCo5","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ShBHPf7iAISYHg7Tz7RO","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g_PKNh-6PfqB76wCKb7Fu","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          false if the pointer is down, or true when the pointer status is up

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b-5RUQS_fd4EijsmYXlQ_","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dq-npaFdPtQZihD39QdKJ","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          whether the container is the root of the scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EQ5_DunLcz9eclPESq7te","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lxPnwElPu1B-9snYcs_19","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                          The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MH3EjkuED4-YTOow_uPUw","name":"textAlign","brief":"","access":"public","defaultValue":"\"center\"","scope":"instance","type":"PropertyDoc","description":"

                          Set the default text alignment (or justification),
                          \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PB70V5h6pJfYW3RlGJ0rk","name":"textBaseline","brief":"","access":"public","defaultValue":"\"middle\"","scope":"instance","type":"PropertyDoc","description":"

                          Set the text baseline (e.g. the Y-coordinate for the draw operation),
                          \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dr3-xXXIq3yVyWM5L2Y8N","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s-HKinbm0H1_BfF1iJVM6","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r4XcdyFzMVgqItpkSi-T_","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_EQUan5d8-vv65xZWA6-v","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"raMZxtjFA044CWLN18Cnw","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CND0EpaV2f8VUcwCJ-5R4","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add a child to the container
                          \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                          forces the z index of the child to the specified value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the added child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sK1Acjju2RnXWjT47VrFx","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add a child to the container at the specified index
                          \n(the list won't be sorted after insertion)

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                          The index at which to insert the child

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the added child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qTFlC5nzkkw50jE8HGOyV","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q_ylfAjTqIcTYuxFHNgJn","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3FBRjnoXqBxGwSNFwa7Z3","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1kBBCO9wtdncHa5wU00aP","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a new Button\n class PlayButton extends UITextButton {\n constructor(x,y) {\n super(x,y, {\n font: 'my-font',\n text: 'Play',\n // if you omit the next two, size is calculated by the size of the text\n borderWidth: 200,\n borderHeight: 20,\n backgroundColor: '#00aa0080',\n hoverColor: '#00ff00ff'\n });\n }\n\n onClick(){\n state.change(state.PLAY);\n }\n }\n\n world.addChild(new PlayButton(15,200));"}],"scope":"instance","type":"MethodDoc","description":"

                          A Bitmap Text Button with an outlined background border, filled with background color.\nIt uses a RoundRect as background a...","params":[{"identifier":"x","optional":false,"description":"

                          x pos of the button

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y pos of the button

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.font","optional":true,"description":"

                          The name of the BitmapText font to use

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"default":"1","description":"

                          The scale factor of the BitmapText

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

                          The text to display

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.bindKey","optional":true,"description":"

                          The key to bind the action to (default: none)

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOffColor","optional":true,"default":"\"#00aa0080\"","description":"

                          The css value of a color to be used if the pointer is not hovering over the button

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOnColor","optional":true,"default":"\"#00ff00ff\"","description":"

                          The css value of a color to be used if the pointer hovers over the button

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderStrokeColor","optional":true,"default":"\"#000000\"","description":"

                          The css value of a color to be used to draw the border

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.fillStyle","optional":true,"description":"

                          The css value of a tint color to be used to tint the BitmapText

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textAlign","optional":true,"default":"\"center\"","description":"

                          horizontal text alignment

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"middle\"","description":"

                          the text baseline

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderWidth","optional":true,"description":"

                          Width of the button

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.borderHeight","optional":true,"description":"

                          Height of the button

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BLrumwrM4prR5jRJN-cmC","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7dsz_VPpdld2tAOoqFd1x","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TB4JVJ8nyhpd9iiBAcIzw","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xuf-MNBDtNX4wShxQ3urE","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zZje1Q-txw3W535C02LZx","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cAAGpZBJj5lk8ou7b08R8","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BNLjyITbWhTgIbNqIf83m","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                          The forEach() method executes a provided function once per child element.
                          \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                          fnction to execute on each element

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                          value to use as this(i.e reference Object) when executing callback.

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"vtpnXviS5TjdBvjRYq3c7","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9NNaH7SflowEmTmKq-3cq","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_03PCCegbEAeA-xwr3rTu","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the Child at the specified index

                          ","params":[{"identifier":"index","optional":false,"description":"

                          The index of the child

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the child at the specified index

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8JeKjwv6sxYHS9kCMMWBG","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the child corresponding to the specified GUID
                          \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                          child GUID

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          corresponding child or null

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0o7m-HEiE-xsRFkoWW2JI","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the list of childs with the specified name
                          \nas defined in Tiled (Name field of the Object Properties)
                          \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                          child name

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          Array of children

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"eksl2IHGrMXjDudeq8rud","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                          return the child corresponding to the given property and value.
                          \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                          Property name

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                          Value of the property

                          ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                          Array of childs

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"9tO2k3tPXEkFmsT3mdk4u","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the list of childs with the specified class type

                          ","params":[{"identifier":"classType","optional":false,"description":"

                          Class type

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                          Array of children

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"23mzHe9Dm7wvuidxQ7GgH","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the index of the given Child

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                          index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aeOBQIpH14dIWonhHD8xX","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return all child in this container

                          ","params":[],"returns":[{"description":"

                          an array of renderable object

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"nhELtUSg-_APc76WUuLU8","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"s_JQsDw8pHe8QVa_5rYG5","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the next child within the container or undefined if none

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                          child

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"puWU3zWJUKyaenWMXTvg3","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BcmRQJTgIRDXbRh6mw_V1","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the instance of the root container (i.e. the current application World container).

                          ","params":[],"returns":[{"description":"

                          root container

                          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1M0oYk19X2mWaZXgbmXYQ","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if contains the specified Child

                          ","params":[{"identifier":"child","optional":false,"description":"

                          The child object

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kvQwKSZXCkXpZ-Ok6ww_D","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Checks if this container is root or if it's attached to the root container.

                          ","params":[],"returns":[{"description":"

                          true if this container is root or if it's attached to the root container

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HbvkuGYSJXtNfamQMY5j1","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Er_U32pTM7Imdan90KzBz","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0Q6dRddRqtKKLCjcBTIA_","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wFrvvhfixPVRTZD-yRbEI","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the child in the group one step backward (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"UihDoBiJlRVKCthNtTT_b","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the specified child the bottom (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"wjkqH2vnSr4e3K6oJkMvM","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the specified child to the top(z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"TbbpDG2Ah8iWRWD6ZlHF-","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Move the child in the group one step forward (z depth).

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be moved

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"U0KIM1MvuibUh8GuMdPcs","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                          a callback to be extended, triggered after a child has been added or removed

                          ","params":[{"identifier":"index","optional":false,"description":"

                          added or removed child index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UHRr_jGc8ucD8APDcN55G","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed (to be extended)

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oGRGDYpIQ0gtnGQdhnSfZ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XPKU_W0vLKYfMFYiUUVlk","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WyYy6b1nDQNrRXXpDwr7O","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and held
                          \nto be extended

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D9130eD4mVb5zr4D7THlX","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is moved over the object

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VHjf8GO6KNC0WVlf3m2MN","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is leaving the object area

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NGXT3dx4t9R-RWplSWq0c","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the pointer is over the object

                          ","params":[{"identifier":"event","optional":false,"description":"

                          the event object

                          ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DsOm02xBKAH2jPg6LmUgl","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                          function called when the object is pressed and released (to be extended)

                          ","params":[],"returns":[{"description":"

                          return false if we need to stop propagating the event

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KYUEBlBdVQEQCkuI-Ns6u","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4pTy2HuOiSVjP1ro7c-jT","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GC9s8TOMHrO9Q6tnC8o5g","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"dzBA6HeletE9rCOa7FFNX","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lcw-jRQptjUJpD5CBeQMd","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be removed

                          ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                          true to prevent calling child.destroy()

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"DhGtm9Zi9y0tyHQmO4Nn_","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Removes (and optionally destroys) a child from the container.
                          \n(removal is immediate and unconditional)
                          \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                          Child to be removed

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                          True to prevent calling child.destroy()

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"3MUehTtt5ovv7arb5pExp","name":"reset","brief":"

                          reset the container, removing all childrens, and reseting transforms.

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H84Q1bpXLJLT2HBeZuuRd","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the rectangle

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ITYzWg07JoJlJIm2vb_QP","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fx9KNHCjt3UXMJfw7HT60","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mNm7hs_M91AcMkJmwwxg0","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ol1SprWnNsPHBkDAFuasD","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Automatically set the specified property of all childs to the given value

                          ","params":[{"identifier":"prop","optional":false,"description":"

                          property name

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                          property value

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                          recursively apply the value to child containers if true

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"1h-H0CxEOoZyItImAsHu9","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KOfr6rgyGssi3gCikR12p","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pq-xNbqxc41G3RlMit4PC","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EvJ-mqJ0zQ1qDhgvs8pjv","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Td1DI63oRsGsgDZW6xxRJ","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Manually trigger the sort of all the childs in the container

                          ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                          recursively sort all containers if true

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"8UHr4H1MCkJyn-ULM-fWq","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Swaps the position (z-index) of 2 children

                          ","params":[{"identifier":"child","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                          Child to be added

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"iiSwfungPQ7Q6WHVHx2RB","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lvV1Xx23zyelEVS24MOz7","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bp2t9kdnd2w4W1_r4CTv8","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HmCsGNSGSObtKnt7FXjYC","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gjhj6fK4bz_HxQ5W0bHpB","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"30fNM32xGdmuIbpe8BjoQ","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fEOFPorIS_evuSM3x4WYo","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this container.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this container bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A3yIahXiL4hdXzGG9ORFQ","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          draw this renderable (automatically called by melonJS)

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OetoyJKRazlwc3fHh3t2e","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          container update function.
                          \nautomatically called by the application update loop {@link Application}

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the Container is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dpAG6bTAwTRat5wUEHoZj","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"aN6nND0xGB_JFD3w3ZY97","name":"Vector2d","brief":"","type":"ClassDoc","description":"

                          a generic 2D Vector Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"eV-GhTYy_TacdUrEbiuST","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v4NlMib3BlYVhJfOUgxgW","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8mVyvt_lihoyQMg-uJepy","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector values to absolute values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OwtYH7zzfdVU4pLC4VJZl","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add the passed vector to this vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cOEKQ-obMx0SRivHxIsn4","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle between this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mf0WETaOstqwYYd5SHuCh","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Ceil the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector2d

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ry435truc4hlWf3LXN-Kb","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Ceil this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dT1Eyiy4guIiKLjncF4PF","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clamp the vector value within the specified value range

                          ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          new me.Vector2d

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pw31OpOTMrpm6CqFQzWby","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clamp this vector value within the specified value range

                          ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bh9xK4-j-mmDaWKZolWh3","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a clone copy of this vector

                          ","params":[],"returns":[{"description":"

                          new me.Vector2d

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rIq9FH9uUqW3A6IK-YD4X","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                          x value of the vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                          y value of the vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZHGJnh5eblcRc1oXbZIbX","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Copy the x,y values of the passed vector to this one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XDWmOutlBAB1KHzr2LPJX","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the cross product of this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          The cross product.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XkEzmbk28F5zgx0A9tohC","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance between this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FcZO4fE2_XZa9Zv2Soam7","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Divide this vector values by the passed value

                          ","params":[{"identifier":"n","optional":false,"description":"

                          the value to divide the vector by

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TA6xaH_DX57Oedv_6ATrR","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the dot product of this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          The dot product.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I3GYndBOHOOurnHxGRSp9","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if this vector is equal to the given values or vector

                          ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MTBDlrIKOBNSgJcqvkEQP","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Floor the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector2d

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XQga_p4JMlD8f_IKXFtLC","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Floor this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kPrtJ3c48Cby9kfL06j_O","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the length (magnitude) of this vector

                          ","params":[],"returns":[{"description":"

                          the length of this vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZdgWj2WKSktGCRrs1R_oQ","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the square length of this vector

                          ","params":[],"returns":[{"description":"

                          The length^2 of this vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2FgCzM3NEl9hNoAcoIjbN","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Linearly interpolate between this vector and the given one.

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                          distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MsJXw1rG-eilB6cxWxQYj","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector with the maximum value between this and the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tr0E6iRYf3vlVwhdd-diC","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector with the minimum value between this and the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CPhsKOS4A-UBnUsnGN4m2","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                          interpolate the position of this vector towards the given one by the given maximum step.

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"step","optional":false,"description":"

                          the maximum step per iteration (Negative values will push the vector away from the target)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gi711pMsHF0sr6gPFdAXl","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Negate the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector2d

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1D4C2vNMukOutzBZCiw6l","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Negate this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k0ansSvERpPdK4lzo014W","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          normalize this vector (scale the vector so that its magnitude is 1)

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gxzJCab4T6ECNZxUnVcJu","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          change this vector to be perpendicular to what it was before.
                          \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1oUT32GEq1eRDOpJgLxep","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                          project this vector on to another vector.

                          ","params":[{"identifier":"v","optional":false,"description":"

                          The vector to project onto.

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"daPiTRAHlL15UZb808rKW","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Project this vector onto a vector of unit length.
                          \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                          The unit vector to project onto.

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vasgMP3e4ZSffMgEvX2Co","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this vector (counter-clockwise) by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VPx-m6lxtFWwHWxTXMbug","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Multiply this vector values by the given scalar

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qcQgSoLCZaXFo05HT9Gg0","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Multiply this vector values by the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YagY8Bu8vnBYEHq7rD9LC","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties to the given values

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rdgj2pgmbrC0f8jgAWnTI","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties using the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q0P7A1TV1czFf2jUNBtz_","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties to 0

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3LyXXAH33LT2oJdy4SJIZ","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Substract the passed vector to this vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yjDg0aqeK0t8ouWAiZmLe","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Convert this vector into 2d coordinate space

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ynUaoGR-S2Y4qSsvaKkw_","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Convert this vector into isometric coordinate space

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"isrs5HKK0yKB3hXJvn6PL","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                          convert the object to a string representation

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"wdk9avoTMlrcJM0dWP5ZQ","name":"Vector3d","brief":"","type":"ClassDoc","description":"

                          a generic 3D Vector Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"KkGMCGvQIurXxJGDs5haO","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yJEJYlCqY5C6hoxO6l8pJ","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WL5PpYJiHyhxhMvPscQ4d","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          z value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CTAznHGNSctzqpzLpfjmM","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector values to absolute values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wrlYcG2tRAZJ1s6MqMfdp","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Add the passed vector to this vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bELFHP419WC7HfoU5Cr8g","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle between this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cgXb1SvPi1q_9pvvimlsf","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Ceil the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector3d

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3pIXspxYgtkIdiy3b4Mkx","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Ceil this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I8yy80aPVRbxDZ7tdcq1C","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clamp the vector value within the specified value range

                          ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          new me.Vector3d

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OgexbmH4Z8jkiyl8sois0","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clamp this vector value within the specified value range

                          ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zaVhDsqSCnDm4YqVGoxdt","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a clone copy of this vector

                          ","params":[],"returns":[{"description":"

                          new me.Vector3d

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9voWGqoCqFqquENwfPi2_","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                          x value of the vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                          y value of the vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                          z value of the vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KJvqFAFvdC9YjN94PPkr9","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Copy the components of the given vector into this one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l1ID4U8x-su9qHh6LFs7r","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                          calculate the cross product of this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K6fedm-OBOl2EdnlaIu9N","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance between this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xKpLlzbLjVP_dmLZzLabO","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Divide this vector values by the passed value

                          ","params":[{"identifier":"n","optional":false,"description":"

                          the value to divide the vector by

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PAjWHuSFJAfGBjxyWudB2","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the dot product of this vector and the passed one

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          The dot product.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n0SRo2OVS2GfCoTjRoo6t","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if this vector is equal to the given values or vector

                          ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"e91h0JRAxpI1QCVEM2V1y","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Floor the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector3d

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eSN7N2QsAfjP4kuZO6QK1","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Floor this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LayDVOPvgkliMopKfO6Kt","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the length (magnitude) of this vector

                          ","params":[],"returns":[{"description":"

                          the length of this vector

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jwZ930xmMyYFXrFiUetrz","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the square length of this vector

                          ","params":[],"returns":[{"description":"

                          The length^2 of this vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YZke9VhlVPQjDWDABgbD1","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Linearly interpolate between this vector and the given one.

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                          distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c2WdxA0W2V0FANF4tuU-O","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector with the maximum value between this and the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RVJH-ELjSuDDLft2Ficge","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Update this vector with the minimum value between this and the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_yeiuH6Rg-wUTZ2tcMdEL","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                          interpolate the position of this vector on the x and y axis towards the given one by the given maximum step.

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

                          the maximum step per iteration (Negative values will push the vector away from the target)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5TeDNlqudH6YfaeVg8xic","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Negate the vector values

                          ","params":[],"returns":[{"description":"

                          new me.Vector3d

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rCJUZGnMicGt0kFL55jPE","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Negate this vector values

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ld7W9G5XQTZuPF_9AGOIF","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          normalize this vector (scale the vector so that its magnitude is 1)

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7lNTTyZuCS4Q8xp-2wOzC","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                          change this vector to be perpendicular to what it was before.
                          \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MTGnJOqhmzTwtxcY13LIc","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                          project this vector on to another vector.

                          ","params":[{"identifier":"v","optional":false,"description":"

                          The vector to project onto.

                          ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"848FMb9ChYJYLoV6dkwao","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Project this vector onto a vector of unit length.
                          \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                          The unit vector to project onto.

                          ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xZVL82jGGFzuxjVtuEW6u","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this vector (counter-clockwise) by the specified angle (in radians) around the z axis

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around (on the same z axis)

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MI3dKe78dvQckXrH5p1yS","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Multiply this vector values by the given scalar

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c9s1MkFOspLklE1kFaq9_","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Multiply this vector values by the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DKlSQxhv0Yh4G_GLS7q97","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties to the given values

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xMqObFOmHVfkaokU4tpCg","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties using the passed vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Chew5vb6D55IbL2_UP2_","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the Vector x and y properties to 0

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bepmPBM99pkDpo32BihnO","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Substract the passed vector to this vector

                          ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q3ssDHPUu_lLl5ZMB1B7W","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Convert this vector into 2d coordinate space

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"61Wsi8SLl6jEPin-do2xK","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Convert this vector into isometric coordinate space

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NHdWmysSh4Y9UWYOI52Qs","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                          convert the object to a string representation

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"7UVfYD9tCL91OExeXt5k8","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

                          a WebGL renderer draw

                          ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"IecRKoWSBlkfRl4OHOYvu","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The list of active compositors

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oehVAE5v8y-L_3cBTsCNY","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The current compositor used by the renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZsJhNOGyN0Plh9mxwjxYL","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the current shader program used by the renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y604vVaiiAFJR_RmXEYjt","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The current transformation matrix used for transformations on the overall scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4TM6q6REuufr_dvK_hpNW","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                          the default method to sort object ("sorting", "z-buffer")

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f0oyxgLDrg4BrIuIvM6kW","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          the requested video size ratio

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y-oID3jGIUKz_0XfktgXN","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The WebGL context

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rDiYBCB0RIU0eqURzAIZq","name":"GPURenderer","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          The renderer string of the underlying graphics driver.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CjPEdB1AArt25mNdtXXSd","name":"GPUVendor","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          The vendor string of the underlying graphics driver.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eCoHpEMxEAR_T6VRpz2aA","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the height of the canvas which this renderer draws to

                          ","params":[],"returns":[{"description":"

                          height of the system Canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FJT0MjxoYgJ0M8d8yKInz","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          true if the current rendering context is valid

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S2y9ViPhToN1lF93Xdx53","name":"lineWidth","brief":"","defaultValue":"1","scope":"instance","see":["WebGLRenderer#strokeLine"],"type":"PropertyDoc","description":"

                          sets or returns the thickness of lines for shape drawing (limited to strokeLine)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UGaBzfjSxE1Z8u_JnZvm5","name":"maxTextures","brief":"","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          Maximum number of texture unit supported under the current context

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GIWYtvf4VNtw2yg1uRowK","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Path2D instance used by the renderer to draw primitives

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_51JtRrMF2hD1ShBnunxJ","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The renderer renderTarget

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UjIT7WoRUVNSvS9dYoerV","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                          the scaling ratio to be applied to the main canvas

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_QqMsDI8kylg9DwYWSRXH","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          The given constructor options

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yI-wclVqw6Dm5dEw79QNK","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                          The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NcvntVnxULg1sgFQ8wkLo","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the vertex buffer used by this WebGL Renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9jH6IWKuPBHjZAn4diRgG","name":"WebGLVersion","brief":"","defaultValue":"1","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          The WebGL version used by this renderer (1 or 2)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c1TLBzw1fdgte_LWOj84r","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the width of the canvas which this renderer draws to

                          ","params":[],"returns":[{"description":"

                          width of the system Canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ehmed4LUY9yVXvF8_Jv3H","name":"addCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add a new compositor to this renderer

                          ","params":[{"identifier":"compositor","optional":false,"description":"

                          a compositor instance

                          ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":false,"default":"\"default\"","description":"

                          a name uniquely identifying this compositor

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"activate","optional":true,"default":"false","description":"

                          true if the given compositor should be set as the active one

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"iLSG2TkS6cXdkGhX2fiED","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

                          starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xDgSWNqkHhBrjl1hg4eVG","name":"clear","brief":"

                          Clear the frame buffer

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kmemJskRSXR9wQfAoo52T","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clears the gl context with the given color.

                          ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

                          CSS color.

                          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

                          Allow transparency [default] or clear the surface completely [true]

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CM2jemZkGiMc2aJU6q8aA","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

                          disable (remove) the rendering mask set through setMask.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ox9XTWTF59FivuguJU7rk","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qA8I7v1Lru9RXlHTIKJTy","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                          clear the rendering tint set through setTint.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j9ppI1j6Fht-AHO5K4I9g","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          the width of the rectangle to start clipping from.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          the height of the rectangle to start clipping from.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-z4niJxpKh396tNZjror9","name":"closePath","brief":"

                          add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eCKDLiAKyznlf2mPnRTvk","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                          optional parameters for the renderer

                          ","dataType":{"tokens":[{"value":"ApplicationSettings","kind":"canonical"},{"value":"ApplicationSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5xXAEr0GKu8dl5hvEI7zt","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

                          Create a pattern with the specified repetition

                          ","params":[{"identifier":"image","optional":false,"description":"

                          Source image to be used as the pattern's image

                          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

                          Define how the pattern should be repeated

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                          the patterned texture created

                          ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ENNmDg_HuAFglFKCWGC1V","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

                          Draw an image to the gl context

                          ","params":[{"identifier":"image","optional":false,"description":"

                          An element to draw into the context.

                          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

                          The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

                          The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

                          The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

                          The height of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

                          The X coordinate in the destination canvas at which to place the top-left corner of the source image.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

                          The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

                          The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

                          The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_f-4KPFPILCAmN9cEtn4S","name":"drawPattern","brief":"","scope":"instance","see":["WebGLRenderer#createPattern"],"type":"MethodDoc","description":"

                          Draw a pattern within the given rectangle.

                          ","params":[{"identifier":"pattern","optional":false,"description":"

                          Pattern object

                          ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                          x position where to draw the pattern

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y position where to draw the pattern

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          width of the pattern

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          height of the pattern

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wo6okKlx-AL8mgF2n4_ko","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                          fill the given shape or the current defined path

                          ","params":[{"identifier":"shape","optional":true,"description":"

                          a shape object to fill

                          ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"0v5hUtQiCARUdEab0nMH3","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill an arc at the specified coordinates with given radius, start and end points

                          ","params":[{"identifier":"x","optional":false,"description":"

                          arc center point x-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          arc center point y-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                          arc radius

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                          start angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                          end angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                          draw arc anti-clockwise

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_fNpl9I2lkZa_wn-acSbh","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill an ellipse at the specified coordinates with given radius

                          ","params":[{"identifier":"x","optional":false,"description":"

                          ellipse center point x-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          ellipse center point y-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          horizontal radius of the ellipse

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          vertical radius of the ellipse

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Qx3CFomNOgoIQOmhZKvtO","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill a line of the given two points

                          ","params":[{"identifier":"startX","optional":false,"description":"

                          the start x coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                          the start y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                          the end x coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                          the end y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9Sg8XFg2Xy5EkZ_wYDzTm","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a a point at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cgn5dkASpcCTLvSX1Cf9n","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill a me.Polygon on the screen

                          ","params":[{"identifier":"poly","optional":false,"description":"

                          the shape to draw

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eCt60N-8lFtROYLPM2u7t","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a filled rectangle at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G7DsKgclEx3B6q251A12s","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a rounded filled rectangle at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the rounded rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the rounded rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rounded rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rounded rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                          The rounded corner's radius.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"uZz6vFqXI2bzItce6IXwj","name":"flush","brief":"

                          Flush the compositor to the frame buffer

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1io_WPY7sstNOK98b6YjD","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the current blend mode for this renderer

                          ","params":[],"returns":[{"description":"

                          blend mode

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Lu_avZWruY0-fA2AmzT_n","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a reference to the current render target corresponding canvas which this renderer draws to

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gLER5F38tTWPICmXPwnrR","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the current fill & stroke style color.

                          ","params":[],"returns":[{"description":"

                          current global color

                          ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_L0YQXlyT_bctv70I0WNo","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the WebGLContext instance for the renderer\nreturn a reference to the system 2d Context

                          ","params":[],"returns":[{"description":"

                          the current WebGL context

                          ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CN0AOORMi1_iJF-4ZWRGN","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the global alpha

                          ","params":[],"returns":[{"description":"

                          global alpha value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ds6PzkcKIJb6AZ_z6S7V8","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","scope":"instance","see":["height"],"type":"MethodDoc","description":"

                          return the height of the system Canvas

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l2MbxJLuJr-kmYROei2Cz","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                          return a reference to the screen canvas

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NNE9_pzJd9Zb5pfkZwaA6","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                          return a reference to the screen canvas corresponding 2d Context
                          \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FaPcd9LxBc1V3MJWKJxe6","name":"getSupportedCompressedTextureFormats","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the list of supported compressed texture formats

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Object","kind":"canonical"}],"template":"Object"}}],"extends":[],"implements":[]},{"id":"HuLHq_nf0R6OI820Hcs7i","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the current global alpha

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Or6UnYI5xVfywrOP7cEgx","name":"hasSupportedCompressedFormats","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return true if the given compressed texture format is supported

                          ","params":[{"identifier":"format","optional":false,"dataType":{"tokens":[{"value":"Number","kind":"canonical"},{"value":"Number","kind":"canonical"}],"template":"%1"}}],"returns":[{}],"extends":[],"implements":[]},{"id":"kM4HEJ0SmgQ2hIQJoRNkc","name":"lineTo","brief":"

                          adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

                          ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"clGFMmbB2fwl1hZiqijyT","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          begins a new sub-path at the point specified by the given (x, y) coordinates.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"V1M_WAOtrWSnZmDXFQlmG","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if the given rect or bounds overlaps with the renderer screen coordinates

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PuqZW-maUfWoU4MHyf8it","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8wqhEzXSR4gmbTesgiH4p","name":"reset","brief":"

                          Reset context state

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n0h6PQA6cwoy0ugev_miD","name":"resetTransform","brief":"

                          Reset the gl transform to identity

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LwO8dvyF0gi9qObyXxiz-","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resizes the system canvas

                          ","params":[{"identifier":"width","optional":false,"description":"

                          new width of the canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          new height of the canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jRLtig9h-wYVMSfCszRoM","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                          restores the most recently saved renderer state by popping the top entry in the drawing state stack

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ME06poTBVNXFfrIxt_RlB","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                          adds a rotation to the transformation matrix.

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          the rotation angle, clockwise in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"a4JLtTyS2jdBF9wzpXF4U","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          adds a rounded rectangle to the current path.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                          The corner radius.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z6_wBCdaywCpq3L3iDaae","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                          saves the entire state of the renderer by pushing the current state onto a stack.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"crWJDR0jK262v6AxlpFv8","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          adds a scaling transformation to the renderer units horizontally and/or vertically

                          ","params":[{"identifier":"x","optional":false,"description":"

                          Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PoEfCUixz08Py-YQE8wVX","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                          enable/disable image smoothing (scaling interpolation) for the current render target

                          ","params":[{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VJqENcQJHkVCEHE_7VuNU","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

                          set a blend mode for the given context.
                          \nSupported blend mode between Canvas and WebGL remderer :

                          \n
                            \n
                          • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                            blend mode : "normal", "multiply", "lighter", "additive", "screen"

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"gl","optional":true,"description":"

                            a WebGL context

                            ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mNjuf2VfmeS1GWu_Urg4G","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                            ","params":[{"identifier":"color","optional":false,"description":"

                            css color string.

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"hAz2tjUFOOgOTnRpdtPRZ","name":"setCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the active compositor for this renderer

                            ","params":[{"identifier":"name","optional":false,"default":"\"default\"","description":"

                            a compositor name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"shader","optional":true,"description":"

                            an optional shader program to be used, instead of the default one, when activating the compositor

                            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            an instance to the current active compositor

                            ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gSjAUHPAMEpHYi7RvZX5J","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set the global alpha

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            0.0 to 1.0 values accepted.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"q9pUdEB6LpnjjjeU00U5H","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                            a shape defining the mask to be applied

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                            either the given shape should define what is visible (default) or the opposite

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"4kivp_oR2fkKLIsrzFvlE","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix (WebGL only)

                            ","params":[{"identifier":"matrix","optional":false,"description":"

                            the new projection matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"p9YP3R7rNe0NlIuBotszj","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set a coloring tint for sprite based renderables

                            ","params":[{"identifier":"tint","optional":false,"description":"

                            the tint color

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                            an alpha value to be applied to the tint

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JYTDVdWLoY4jcpArzV5Al","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                            ","params":[{"identifier":"a","optional":false,"description":"

                            a matrix2d to transform by, or a the a component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                            the b component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                            the c component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                            the d component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                            the e component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                            the f component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tUyA5esSQlYSAggaG4ZXj","name":"setViewport","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Sets the WebGL viewport, which specifies the affine transformation of x and y from normalized device coordinates to window...","params":[{"identifier":"x ","optional":true,"default":" 0","description":"

                            x the horizontal coordinate for the lower left corner of the viewport origin

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y ","optional":true,"default":" 0","description":"

                            y the vertical coordinate for the lower left corner of the viewport origin

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w ","optional":true,"default":" width of the canvas","description":"

                            the width of viewport

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h ","optional":true,"default":" height of the canvas","description":"

                            the height of viewport

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KHgbiTTu-orCsoq97bcuP","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                            stroke the given shape or the current defined path

                            ","params":[{"identifier":"shape","optional":true,"description":"

                            a shape object to stroke

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"9VFgz3gB0KrPX5izg0yCe","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke an arc at the specified coordinates with given radius, start and end points

                            ","params":[{"identifier":"x","optional":false,"description":"

                            arc center point x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            arc center point y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                            arc radius

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                            start angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                            end angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                            draw arc anti-clockwise

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"q8K9-gy0s8RlkoSMVdY9K","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke an ellipse at the specified coordinates with given radius

                            ","params":[{"identifier":"x","optional":false,"description":"

                            ellipse center point x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            ellipse center point y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            horizontal radius of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            vertical radius of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"8N4lQ6W5Ul7GgyNOlxP_h","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a line of the given two points

                            ","params":[{"identifier":"startX","optional":false,"description":"

                            the start x coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                            the start y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                            the end x coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                            the end y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mHkDIxS7FzhIsp9cu4kf6","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a Point at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x axis of the coordinate for the point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y axis of the coordinate for the point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6_MG42nYr-gsbV0Sj_p9A","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a me.Polygon on the screen with a specified color

                            ","params":[{"identifier":"poly","optional":false,"description":"

                            the shape to draw

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"BeD20NyF9az81x6AIyNj-","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Draw a stroke rectangle at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x axis of the coordinate for the rectangle starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y axis of the coordinate for the rectangle starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            The rectangle's width.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            The rectangle's height.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"q0srTBmn0yHv225pKHdsS","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a rounded rectangle at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x axis of the coordinate for the rounded rectangle starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y axis of the coordinate for the rounded rectangle starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            The rounded rectangle's width.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            The rounded rectangle's height.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                            The rounded corner's radius.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"cOzkV93oVGVcC0xGyRJ7k","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            tint the given image or canvas using the given color

                            ","params":[{"identifier":"src","optional":false,"description":"

                            the source image to be tinted

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                            the color that will be used to tint the image

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                            the composition mode used to tint the image

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            a new canvas or offscreencanvas (if supported) element representing the tinted image

                            ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"pC0TG5mwHnSgpExtihimD","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates a Blob object representing the last rendered frame

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a Blob object representing the last rendered frame

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6RdMA5MBGZntPukC8haq7","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                            returns a data URL containing a representation of the last frame rendered

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a string containing the requested data URL.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E5wbGROG4EwfHmeeLSV7g","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning an ImageBitmap.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wxXttbs2JWJranc0EI2_-","name":"transform","brief":"","scope":"instance","see":["{@link WebGLRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                            Multiply given matrix into the renderer tranformation matrix

                            ","params":[{"identifier":"a","optional":false,"description":"

                            a matrix2d to transform by, or a the a component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                            the b component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                            the c component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                            the d component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                            the e component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                            the f component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NkMCKpa8aQeUvOrAVBO1E","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds a translation transformation to the current matrix.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            Distance to move in the vertical direction. Positive values are down, and negative are up.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Gn7ABEnFm6t7PL29aPu7-","name":"World","brief":"","type":"ClassDoc","description":"

                            an object representing the physic world, and responsible for managing and updating all childs and physics

                            ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"Y5JJYWWOIfYzexv9sjOeL","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m6wKyun9-7TEODF_QAlKh","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zad2yL8a4hMFTzTzmQQJ0","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g1gjZKDqBnGY6iAIInLmo","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C904fSkyD2ga9wDX58NmU","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the application (game) this physic world belong to

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e4foz0tjDghOVqCSop79W","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children z index should automatically be managed by the parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6XlpdUZijfgGgpKY3J9p4","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children list should be automatically sorted when adding a new child

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mfWPlisoATITlMrxQxgh3","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lUOWxba1OXVL48oU6LLmw","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a background color for this container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z3rs2-Z2YnwEqJTn4dHH1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XD2oySAulxMiIFZSSMtWj","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the active physic bodies in this simulation

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6qip3t79Vb1CExoZ4Rtn2","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DWWHMmVwASxPo41jV5WC6","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gUU1EPr1s3E-jOQb0NrLc","name":"broadphase","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the instance of the game world quadtree used for broadphase (used by the builtin physic and pointer event implementation)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UwwTBoi90Q3hOfe7gVRb4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eeAgUkMYWDs5sIlseebim","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sJtXO6lTSQxum_7Gacty5","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container draw operation should clip his children to its own bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9r9l4nxiPRqLX7I4W-YDa","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2tVj1hovWLLHH1NCOa1-g","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w8OaYhZIqNwinkQCevffQ","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the collision detector instance used by this world instance

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0dE3WrLHS-CSYgYUnmo91","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oxc4lqeRWCO1pehets_D2","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iCHb8x8Ppv015-NSDAUPG","name":"fps","brief":"","defaultValue":"60","scope":"instance","see":["timer.maxfps"],"type":"PropertyDoc","description":"

                            the rate at which the game world is updated,\nmay be greater than or lower than the display fps

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p2Qu8QlyBInjiLPZeoh1z","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

                            world gravity

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0QgFOk8UEksw9rW-yAjtz","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xOu_LNQO0Y1baGEwlYd41","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7jGfgYCKG_7K4K453KoP3","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Da530yV2IntT9Q2cAZe_","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"thUydAfFek1FI5Pk557d2","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UPLgR70HATnWbliELMQkr","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H0dKSkSs50nNim69HpQxk","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IwTdWj8IUPiLjM0STU6LL","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JU15-USsvXez4VrsUSlwv","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PbtvfAzY5TKi5-EIMuNNB","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YGIedWTJXR50vfuOTBt09","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RsQkbL2iPoafZe9ewmXiD","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vAtt-BkH7Nfdh8m7Dm0vX","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J5_uPq8enUnFIpZYmn2BV","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cNPeXIAdPuAJZjCGyD6RD","name":"physic","brief":"","defaultValue":"\"builtin\"","examples":[{"caption":"","code":"// disable builtin physic\nme.game.world.physic = \"none\";"}],"scope":"instance","see":["ApplicationSettings.physic"],"type":"PropertyDoc","description":"

                            the physic engine used by melonJS

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pbHd76mLVQKFBZLRnRHv5","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZJiuvATyyZf8NjOfiEo5b","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3_gSDgdbovaUH4ocGWiUV","name":"preRender","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Enabled pre-rendering for all tile layers.
                            \nIf false layers are rendered dynamically, if true layers are first fully r...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ek5IbmDeYdYcN4vjIAz6Y","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k9myTM-GkE-vlbqCQj8hB","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            whether the container is the root of the scene

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1rR7QP5CyPyVujy-TkFGG","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"czJt7-ntkSk5h5Li3pXnS","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                            The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B8JNHejH6x5odqgHbJpef","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"01JX4kguBtzhhfMh6oW4i","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"27ggCXcfiaQyT3VceAdFR","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VJpAjOFe4WvLN7iUMipg1","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SO1O5T69TmmgGdhRAzZvp","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c9wIOQsQ0JMm0Ian_xT6T","name":"addBody","brief":"","scope":"instance","see":["Container.addChild"],"type":"MethodDoc","description":"

                            Add a physic body to the game world

                            ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            this game world

                            ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_PSDRiEOO0n7WeiWWXB9V","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container
                            \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                            forces the z index of the child to the specified value

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ozVfMP4InhsMC_80rfakT","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container at the specified index
                            \n(the list won't be sorted after insertion)

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                            The index at which to insert the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Qnn3jeK6bmUBRvUpYb_Qd","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x0cPTY7QHQk1biY6sX_P4","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zfdYTawFtJP6vkWV_7q-y","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"13f7vhpXBORxpbwYQwLFQ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                            position of the container (accessible via the inherited pos.x property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                            position of the container (accessible via the inherited pos.y property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                            width of the container

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                            height of the container

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"B849kXX0w-POj1fGhzqjD","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Qq6m3kbJz8fH4Sorlb0LQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vt5Lo1IU1rxmHVCj3d-8J","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KadJx24XM_vXnHOdrX7c_","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4uNaMR9WeIVsLa8m-CC52","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cCcHammFihQvPWvdau_oc","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4LGT4nLJhJMKr1NHm7cO9","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                            The forEach() method executes a provided function once per child element.
                            \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                            fnction to execute on each element

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                            value to use as this(i.e reference Object) when executing callback.

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"mZHIAfuyDnjBZLIyVN_f_","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1N0H2GSDGVdkc4mSXglnC","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3JMeiBGNRdti2mEmW5PCZ","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the Child at the specified index

                            ","params":[{"identifier":"index","optional":false,"description":"

                            The index of the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the child at the specified index

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YKLOGYAnqT42gq1LB9SZn","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the specified GUID
                            \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                            child GUID

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            corresponding child or null

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c16fM_zpT8C1Q2fv2Qoa9","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified name
                            \nas defined in Tiled (Name field of the Object Properties)
                            \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                            child name

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"FoSFUVXe-5vovMhUV6eTF","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the given property and value.
                            \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                            Property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            Value of the property

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of childs

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"iFc6hw2YIfHaPkJITD7s2","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified class type

                            ","params":[{"identifier":"classType","optional":false,"description":"

                            Class type

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"n1vfjhgdQsFhrS3iBSU_x","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the index of the given Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dh0ATHAYz97YELPuNgYAT","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return all child in this container

                            ","params":[],"returns":[{"description":"

                            an array of renderable object

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2MYFQuvCBAIcgz7QjzTTS","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"sTztQOGsxUTecdIMHeeyD","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the next child within the container or undefined if none

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TAvIXIyN11NjZzpqpG5pA","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kRlDTaZKkG4ddTGjOTimZ","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the instance of the root container (i.e. the current application World container).

                            ","params":[],"returns":[{"description":"

                            root container

                            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m3cNX3b5svmQ0uZXLNB4z","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if contains the specified Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wzvmSVlO-JV3beJ0FRBQj","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Checks if this container is root or if it's attached to the root container.

                            ","params":[],"returns":[{"description":"

                            true if this container is root or if it's attached to the root container

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VT_EwA3V6BSKHay4J70N6","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"r9Dc422rpZuaR5PGMeRQT","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dV_daymMoN7M1BRe2TotF","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"31Vv0pa6NQ1034I0sh98w","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step backward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"-TuHRPsopaBqLUJaaWNM_","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child the bottom (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"rEI9Ug4hK_NWf0kEhrvdb","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child to the top(z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"mxO-M1pje-hCyqOfi76-r","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step forward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"WcxU5yt69yoPMnPRv4vbc","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                            a callback to be extended, triggered after a child has been added or removed

                            ","params":[{"identifier":"index","optional":false,"description":"

                            added or removed child index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"K0-3sONTyy07hLtm0vZjc","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"knZHDXAb4wQrWY1dvmTK7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IeW0jK-7lwbjdN_tuGziC","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uaYowyUTjvmVUwdKpYypZ","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GLa8sNUpuCYwvT5fnzJbW","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GpZ0EGcnOjITMYADvQUOs","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1rPpOGE_RCiMoLdLWh2bZ","name":"removeBody","brief":"","scope":"instance","see":["Container.removeChild"],"type":"MethodDoc","description":"

                            Remove a physic body from the game world

                            ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            this game world

                            ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JGTAr4W4two1p6e9uBFjv","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                            true to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"T0A4s2Y_-XBkGMGLCjxdG","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Removes (and optionally destroys) a child from the container.
                            \n(removal is immediate and unconditional)
                            \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                            True to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"JynzrLz7UhLt0fFeJ99x2","name":"reset","brief":"

                            reset the game world

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F-MV3Y_sNrzP5ap1GuETq","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2tQHrKfybaBrPdZs8E357","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MUsU0zcLDRLvGSwgwlKqT","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1sIFLmxJ7DDXkGklGSubt","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gFi3h1FoY8ENLOZLWnU-5","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Automatically set the specified property of all childs to the given value

                            ","params":[{"identifier":"prop","optional":false,"description":"

                            property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            property value

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively apply the value to child containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"q0AR9F36hgI7TAenkokub","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ogLVsPt3wO1zWeeOX_o0h","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VNkuRjzd7olD2i_iHYWjl","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L8xuK6Yru-YOlAa3cE4-h","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cW-x-DDGTvXUgmPBlWydW","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Manually trigger the sort of all the childs in the container

                            ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively sort all containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VjjdkisZbWR7iXEXw4myz","name":"step","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the builtin physic simulation by one step (called by the game world update method)

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            the time passed since the last frame update

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8OEeLwpsNjQyx4R0G3g5f","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Swaps the position (z-index) of 2 children

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Th1sP3oyI_lBGh87Tk2BL","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ELCQx7QWV2zlT7DJlMH9L","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rMh9-aiO41eQ0HuozDkyb","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kK44n8mNQxqmVSF-9APjs","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZD6JQ55rzWZvfIu_eBWsc","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f7VCGUJoI0aB48UJ535vY","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fIDC51SwNX3H5qvOvycGR","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the game world

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            the time passed since the last frame update

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the world is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Iwh0mE2DXb34vILC_VzV7","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this container.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this container bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y78rmUNez4tv9BAFSLj5R","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this renderable (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z4qzUVi4zzeuSn4jQBClp","name":"bodyApplyGravity","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            Apply gravity to the given body

                            ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ODpE4SUGGKyTFVOlemjRm","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"7nhVwRWziW8MPqHvEa9o0","name":"ApplicationSettings","brief":"","readonly":true,"type":"TypedefDoc","description":"

                            Application & Renderer Settings definition.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ngh-3my0eIcefENh3Io13","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                            whether to enable or not video scaling interpolation

                            "},{"id":"oe6uSQtFvXKaFF4oZtCGm","name":"canvas","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                            an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given par..."},{"id":"WI_CMHIwlYcOBFlPGqIjN","name":"compositor","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                            a custom compositor class (WebGL only)

                            "},{"id":"MMAnAXS7AqZMbLbvtpTna","name":"consoleHeader","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

                            whether to display melonJS version and basic device information in the console

                            "},{"id":"jUr0KxkQQo7nyAGPRDogQ","name":"depthTest","brief":"","access":"public","defaultValue":"\"sorting\"","scope":"static","type":"PropertyDoc","description":"

                            ~Experimental~ the default method to sort object on the z axis in WebGL

                            "},{"id":"IiMTs4HfPz1JVybT3YMFs","name":"parent","brief":"","access":"public","defaultValue":"document.body","scope":"static","type":"PropertyDoc","description":"

                            the DOM parent element to hold the canvas in the HTML file

                            "},{"id":"2_F0soM7QXezIVLxhkIB_","name":"physic","brief":"","access":"public","defaultValue":"\"builtin\"","scope":"static","type":"PropertyDoc","description":"

                            the physic system to use (default: "builtin", or "none" to disable builtin physic)

                            "},{"id":"qSaBy7TwVk-dU8DhxLIy6","name":"powerPreference","brief":"","access":"public","defaultValue":"\"default\"","scope":"static","type":"PropertyDoc","description":"

                            a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari a..."},{"id":"fAyy5npXCkKGmpjQ3ItbD","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                            if true the renderer will only use WebGL 1

                            "},{"id":"IsHO37VF2-fZh0gfr9n7z","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

                            renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

                            "},{"id":"cQxpugKobto_HDpjdyAFj","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

                            enable scaling of the canvas ('auto' for automatic scaling)

                            "},{"id":"yc3eRs3KgqJ97tWaCFuQc","name":"scaleMethod","brief":"","access":"public","defaultValue":"\"fit\"","scope":"static","type":"PropertyDoc","description":"

                            screen scaling modes :

                            \n
                              \n
                            • fit : Letterboxed; content is scaled to design aspect ..."},{"id":"AfcvkxJs0KNGQbUK0chcR","name":"scaleTarget","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                              the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent c..."},{"id":"1FfJRvaf-VfgUqCEjrDv5","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                              whether to allow transparent pixels in the front buffer (screen).

                              "},{"id":"Mdm9X1muLu3v3WW5Lx1g7","name":"zoomX","brief":"","access":"public","defaultValue":"width","scope":"static","type":"PropertyDoc","description":"

                              The actual width of the canvas with scaling applied

                              "},{"id":"cCYRvv-XRbfQxKiPh1RsN","name":"zoomY","brief":"","access":"public","defaultValue":"height","scope":"static","type":"PropertyDoc","description":"

                              The actual height of the canvas with scaling applied

                              "}]},{"id":"QHiVnO_c7x4Zm61w7SZPZ","name":"AUTO","brief":"","defaultValue":"2","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                              constant to auto-select the renderer (Attempt WebGL first, with fallback to Canvas)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m8W_54f2mPX99_r9ET1_7","name":"CANVAS","brief":"","defaultValue":"0","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                              constant to select the HTML5 Canvas renderer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9bn4RZ3BndjBVDCQgoUqn","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                              current melonJS version

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUMA7ZL6Y-WKMfFurSHqb","name":"WEBGL","brief":"","defaultValue":"1","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                              constant to select select the WebGL renderer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LEs_FNM9Hf3itgNsDeJcT","name":"failureLoadedAssets","brief":"

                              Assets uploaded with an error

                              ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lbmSPX48mUUCqY8Y49pdQ","name":"imgList","brief":"

                              where all preloaded content is cached

                              ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yJJOHCwTe3UsUcDSidYTI","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                              a flag indicating that melonJS is fully initialized

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hYCt4X78MTsrPQh1LCvDm","name":"parserInitialized","brief":"

                              keep track if parsers were registered

                              ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n_6pnZfhwOtKGnLpcF98T","name":"parsers","brief":"

                              list of parser function for supported format type

                              ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NZ5ZwHiSCInC4s3d7yUcp","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                              disable melonJS auto-initialization

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-AMo2UudZNbRJbwVScHH6","name":"boot","brief":"","access":"public","see":["skipAutoInit"],"type":"FunctionDoc","description":"

                              initialize the melonJS library.\nthis is automatically called unless me.skipAutoInit is set to true,\nto allow asynchronous ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8u3xUVP1W9NdE2h9kDoOC","name":"consoleHeader","brief":"","type":"FunctionDoc","description":"

                              display information

                              ","params":[{"identifier":"app","optional":false,"description":"

                              the game application instance calling this function

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MkdvHTui0Z6wy7wCpiTkh","name":"warning","brief":"","type":"FunctionDoc","description":"

                              display a deprecation warning in the console

                              ","params":[{"identifier":"deprecated","optional":false,"description":"

                              deprecated class,function or property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"replacement","optional":false,"description":"

                              the replacement class, function, or property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"version","optional":false,"description":"

                              the version since when the lass,function or property is deprecated

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"nnMyK68cwp5BfbkTGxatv","name":"onresize","brief":"","access":"private","type":"FunctionDoc","description":"

                              callback for window resize event

                              ","params":[{"identifier":"game","optional":false,"description":"

                              the game application instance triggering the resize

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_wxMmH84ZjrcIWrbbB5ne","name":"scale","brief":"","access":"private","type":"FunctionDoc","description":"

                              scale the "displayed" canvas by the given scalar.\nthis will modify the size of canvas element directly.\nOnly use...","params":[{"identifier":"game","optional":false,"description":"

                              the game application instance triggering the resize

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                              x scaling multiplier

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y scaling multiplier

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},"registry":{"pkg-J4miU7vQ6F7UlJ7F7Otmf":{"uri":"/melonJS/docs/melonjs.html"},"86KnMkwsr-cUocYE42j7k":{"uri":"/melonJS/docs/melonjs/audio.html"},"4AejuD0auCnviOKsGl6zG":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"6rgTXBRexstuz6c8qgDaE":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"RjOfIneGp_jeEN6dcxrvw":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"-dOBtaL-yG43XgLhxhDeP":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"nb0ufTYs01T10661S3NuE":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"lpk66f648CFcDWjL8skIQ":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"i6vaD46RbtXxIcmRUUpys":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"33Kl-sW43VM73Cx_2oFai":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"5WkMVygfBqEPn-AUDcaK2":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"3CS0sjkpTcFg8u9dUsgp8":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"5EO0c-84HQuZl2ZTmCAGv":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"Z_oYSSGQLqA-gFn9G9bsk":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"bYeqSESaZQCTuZC-lsrMI":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"HNYSOMDKOO1dOCV887PFQ":{"uri":"/melonJS/docs/melonjs/audio/orientation.html"},"aOYL0dfzT8IBSMnEn81VS":{"uri":"/melonJS/docs/melonjs/audio/panner.html"},"odma4cbIQJhtCCSMHgOnQ":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"6s1ZAzVt5s0BqIP_pUakh":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"-bQtgRsCC2cBsCnYBLsXX":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"nWCYVD2VfB06uO4JyUXYP":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"Ctmqn_ITrC4MEXLBciyRr":{"uri":"/melonJS/docs/melonjs/audio/position.html"},"073_8nvPzJTdAw_5xYzgQ":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"wPeViiavDWtWA52Zl1P8U":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"61nBC8sHnGEmXpJvTlvuL":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"Ug4y7EAou_nP1NFCxmjbT":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"13L7P_Q6SBucy97Hmmd7a":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"y1L9d2Sn9WvYiZWUszDqq":{"uri":"/melonJS/docs/melonjs/audio/stereo.html"},"nvzRKQ2pqNX-wcpW2hqZP":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"Csje1rF4GxojjOxij6b8H":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"mdSs9noHKP1tNgrOX0GCV":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"hnGcIKRE6Hw76bRnRS7mP":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"rC0aoRHRNjI_GqRsdinz5":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"cLBnbvOV7IJXqCFoseQAi":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"6KMIi_lSdCMFIdRFzFsG-":{"uri":"/melonJS/docs/melonjs/collision.html"},"oqjtuHzh1U2gkimYgQWdH":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"vSR76rVEJjEqRR2QhvC9o":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"DpHA_pYbVFEdUeWgpksaz":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"idLKWu6X-B9ZYeMvBQB4b":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"Ohjg4kmj3KS-tG0wwAPf9":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"sUQPTyGOxn8t4sVmNtd35":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"SlyVyvXufLi6H39-dunN_":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"bbYbjtb22_JuuglXVbnOi":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"l0e-4BzDiIF4plGqhI01Z":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"HEtn4QE5FI1qFWnmsQsxg":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"LLYDWTRbFDzIg8l6_1hC1":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"jeMIYY9c5GH8zVO5Wnnvs":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"qfUHzS8E8RRhN5XhMXMRP":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"pmMP1uc2aTvlPgVJl6qCo":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"WsHHS-Z8e1OoBHB7et2xb":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"9CrdWnPp5bT4YcOO4ZivA":{"uri":"/melonJS/docs/melonjs/device.html"},"B41-rDyBo-v0tmOcQZGJm":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"1Qo5KOZF9tjJaqziQ5RMV":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"Wk8OPw8v5kmRqxcDzmRvy":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"14gRSk5LlPXSvxDm_jY_I":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"KP3XgM66v-MEZbaTYLA5I":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"3vbZdpvsoJKMkPTey6mqn":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"kv2pCh1Lqow-DXRvXG6F1":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"seFIgGCcRw3RhzfhZ1XfW":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"2BwR0DReB0Jxh4vuO2Q6p":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"xmGKQgJhSu_VdVFFxFsBW":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"gHqkvOnxsvThzMnH6Av2X":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"872RXv-_1jZgRM9V_mNM3":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"HfHCGf40rFL9_eARdfsUz":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"ZgI3SUsIGg8NarWUFubY7":{"uri":"/melonJS/docs/melonjs/device/platform.html#webApp"},"Tv46lbh-UD3Nc1YuCmR-r":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"2U09PkO2omo3TY_qEWDpm":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"OalHJnGurSIPQKUbbIdOv":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"6mQjwK3R0cquBmgJLfmSp":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"FXUWN9qFDx-AkUIDgLay4":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"G8dntsDNludx_vMxynD8e":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"KBuDe5TwcjtBnW1G8v7GP":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"23qh_odUouYE6-2noz2sL":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"IFI8Jmpm3vBV6iI1QTF4h":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"pbHJWSjzpT19VTAEWrdhl":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"YHQwvxyvsy8x7rB3vJcVO":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"-CkNnlI5d7hO3cx39xY1e":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"oJN5zxyDbNZljAQTXipHB":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"T4dMzTUV58r8-Tpeh4sOA":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"rHLG4FDnbKzIQVyxG85T-":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"7uy_wGBNZHxYiHlWzbM6J":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"UFKlTeCo1iUn0qfKiIgcw":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"y2zbaWa-d2DNPzRjdTWue":{"uri":"/melonJS/docs/melonjs/device.html#language"},"W3fk444NA_4DLiwLBilkg":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"GGV4B_4_0RUcTc_b4RoMe":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"ypVvknrU15D0llC7oYLYu":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"gNLt4IWLJjMUa-SFPU6of":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"j5QdGMJpf544X1JTggAEW":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"duch6L1elBOqIqrvDAgUv":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"6H0lBhUlVdmw3GKOKV3e7":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"K1cJ4Cn1O9HqA2TFZv1BR":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"-zO4lTldPsscbRhmHg9Av":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"6Fb_NCfa6AJK_R0RlwrYA":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"FUngpVIsN-iZaPl2WLxny":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"duQFm-JMWjiLsd-4-k3V7":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"4Nd2jfRafAkwNWu3WOHA9":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"WK_e3Sh_5oSQaXymHgI3a":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"8Jn_1OEUfu4l8cxP6Kpy8":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"byQQYjVAH7jFvfBtfHDT_":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"RPz8ORZKUsU11jybh0zeP":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"ivSXsKWbP3dIdJVrDXwEg":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"5UxTreBiqcStCa057Wsg4":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"zm14zRlVtwQ9wLyzSeCW5":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"7loiaNpNtCHNbrI0ZYKrD":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"t4VxvSdIBTuBYmGHTJkOt":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"Sqo4pGgHrhinSYrIHhsvQ":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"ANvWqOTvc2bVZPBBVy3xD":{"uri":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"m8OgsD09lcBW3qdhDc99s":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"4KFsE7EAypSbRiJ-nntEj":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"NeyzR50cIyI7wj0oD-W4B":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"g2SYV97ct1AjaCpL_cFNh":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"MQC70P51rK2PgKozmdtWa":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"60SffuWyKd8N1QafBJJ6n":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"1mWG2gG3Dgf4mvj2D3xOP":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"AE1u3NMVovs6Vi2fiy6oB":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"9jDJkNEQD15r8dmtRJTgq":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"5M8_9NALCTx6Yhwt66bre":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"O5YJabWpIHUdlEiKKp3Tp":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"kwL8vxpmmybcLOhN5rqAx":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"dnnb1LXtXUWe9Ep_6oH-6":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"dACIvkqwrIxMTO7e_aQsn":{"uri":"/melonJS/docs/melonjs/event.html"},"aLZDyyKksC38ner1kcKKb":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"q_Z62ev3WwYitvy6U7I3I":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"nfpT4w7Io4pypCRW4JWnX":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"JPF0hlGVX-rVtljbDA_vV":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"a7BHA_rdgFaJAIarwga46":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"jQ29HFin9MYR-27Xx8MmU":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"XZOclPKu58bY_cz9jRGsB":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"emhYu26EHoj1uIC7ZotaE":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"4S4UhbUn6ZQuYIbOAqBPu":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"f5sv-DxmvCSjMX4j-RkMY":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"AbtHUuvnlz-QPuGKe4Woe":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"StEdPPfqT3l7OsZ9pw4YF":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"H-WzO_9AuINIA1as-NnEz":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"5pK2yP1crRlQg0J3YO_0V":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"0tkEU6dMjNdGWRwJluf-s":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"DyUa_q7ofWrlL78shkr9X":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"402WLWpr14M10LQDokItj":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"w9M_rSVXFW_D0crDnWw01":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"jdkA0qAMXZZOdmqGigRun":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"fCXi51Rw0qSe9XfXfVex-":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"22wDSC5eeLmcUbltvH8Vf":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"R-xPp-pBYNivbBr3LnB3M":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"0RRxMFYwn36MYJpzXxnAJ":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"zuuspnMIQAk1bNQe4lOYT":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"WiWQgxLQhL8SoiVUdelC-":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"0iqRVR7kI3dCDGdNGQlpO":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"zeeAs-d2cbQs2pLQKsEa9":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"YvCqyvyxMP3PuZdqmUZsE":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"e_msWaMp_otduKjXET5Uz":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"dWysiCFCesmCxAeaC6-DW":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"vZkfj2JCARXhnsGOxHvrD":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"0qDONVACQe4RZNHJyS-Lr":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"V3gtD2TM7V2gC5Zrquzak":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"-PT2qw_XzN14vkm4wAzik":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"6uG6m2yoZumC0lkZbZwY0":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"VDQ4UbwTTgc1TNU8sFb4d":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"9mmLZb0hSK7zkIfKGjVQl":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"-GDmvkkehpCueL-KdsRoL":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"NZsJXiJ1f8B6Xh0EMiqXM":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"8RGozj79hrxsWYFA4_Aco":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"9SKgw6EbjY9WL0Lp1urRi":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"H60WXtGFOlResAYLA-Wsb":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"rcM00vs0neGoTREg9ZSjS":{"uri":"/melonJS/docs/melonjs/event/off.html"},"Tf4WqJRsB3Kh-EXfDMVFO":{"uri":"/melonJS/docs/melonjs/event/on.html"},"dwEqJRHRhO8GDbG8wEmmd":{"uri":"/melonJS/docs/melonjs/event/once.html"},"0Q8D4Nk9TOwB0W8Jg8rx7":{"uri":"/melonJS/docs/melonjs/game.html"},"NGxou_b4nxgvPYv6_Sb5p":{"uri":"/melonJS/docs/melonjs/input.html"},"bd0GJa_lQHfl_wZpXNmDs":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"S-1aQYXcg2hja7g6dGIAM":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"Qtb2b5FNwtRyQCFhiL6BZ":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"NsJVvgHeTt-1aVCPRVGHy":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"_ac-M-Aj5Po_7urrGNXUb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"7pKWciRrfbk-LfTH64Wgd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"h2lqBlqlBYJ1GuN28ND4E":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"-os419Nvc-mXPDdVKlNdR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"8kvsPWNT7gR6IyfldS7xG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"K2Ma9D-4VI3wDtUAICMOU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"gAdiuXkS3_t1RYrgz9hGr":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"EH4qag_v44xpajzJ8mN5B":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"WHOVwvXc9ZCynpjcDRhBQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"KhM8atzDFbTkAEV3BGT50":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"lWmZHHOyY8LO7YYOdz3iA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"NfDNsBHbHsk-99_rpMK1F":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"XPfO3CUXfgGuv3MoNzLIX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"kZz3rt1AQ_N98yHei8v8U":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"Jl6dClwU4jhua43dH4nRx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"A0EgpU5NlSsKkrZsDJtu5":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"Lw1_eljqdCli4k-JWVkw0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"QukWseTCCIK_HeEACy52D":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"OwMB_8iQuvk-9OEfZ1huR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"BSAc30QgN60MQTDSMFz7D":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"BfpitLi60QojVUaQQFipd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"ap6-fRS2gy1Kay2Y7z5D0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"nVP76QgQs1_lepu9stVKn":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"2rwGq98SAOQuhAKEZe2bO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"DCbHdz1Vcpgk4X3oAiefA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"kmcRUYqfzGI4sbC07o2En":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"mFgwaxI5F66ZAvocPlklV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"A8SR4bV-WOnLM8XvTx_OY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"csKLOfNO09mwD3UEfgXEV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"RUE0l6vTnAjf0jCt5caz6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"76Hj9SmreEqilFlw2h4d9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"8aiWp42SWEGdw2Pw_f_sC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"P3y6e5u7VEWNJXzpjv-eJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"-pNepHQGk1Wu2CW7Zv4CV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"kJ9f2YJeTDJ7FMm_tJN89":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"zFL0fZ0SW019PMPy8OfWs":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"qhlw7t34EQn1h1hcesKkb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"wofNKFpm3j07-V6Gw9pcD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"8aQHRoPINU93kkWWcPHi9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"ti4asbIfmzFziPXNHuPgC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"OTyQUEYBb21ZIIwMWnQqx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"bLhCDPVpLBmtPrffjrPxy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"6A1P4AmdzaE3K3yexGwaP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"1I8wvewFJOh7OPH5huTUI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"gn1XlnbuUsEWaXrXVOv14":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"eLWpO2Qxdevt2RknwY7Sv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"_hc4QCxbMcEf8Ircg3JCN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"9fKfBYeSAoB9QAeDpxrOb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"5bguYUtxQziUCyXagCwcV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"pJ5jC_4reyKOJvVDNKao6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"hqIyEdDwl9zELFH502GLQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"NHwDuO6U7AXRlg0yVd7_w":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"0Phrht5d3Se8e_0eBfYJV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"QQxl4ddY47BUEaUaMIgrr":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"KGUKhLka_QlcwlSisip2T":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"ise5_iW3hwTaMbaMrnOBv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"iYUaIAvXHN3TgVgzSETZo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"E9dA1KmXpmX-eGedRIchA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"WwbpZZerw-57Uub4e9umZ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"gMFlbyzhyeaGPAZ59ONfP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"NBmYM--3OpyOFzM9ac_tA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"1qanJe2LkjcjoamYFIBQL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"1Nb_F74-Yzk-ZDsJ3mYBJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"hw2Qd90f9ANi668gisXDf":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"dldgHbtkwQBazuXakdNi_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"6hCn1DB5Unsxb-6SKwp_C":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"HdrEGqEHuiLjSDoAj0HWc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"GHGlWUgunaBGjLQ-Gy8Xj":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"emePtctNLel34WPULcK6h":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"ajrrckU6GRCIZ_vbxuaDV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"_JxDh37KaMG41GCSInMvN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"eRy8rZAmNeY2PvCzqMdZX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"6yG3utDd95A0wnKm9OedV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"DMcGnFaJFhOnArcDkYbWq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"80MSj6bCL3bWPJOqYQza7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"un2JsKOmA6pD-j5GnjKAJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"zAGlZowrYilT61iErxh1W":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"b7BY1kx6HbTO4muNs8pGA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"rLilaUQwAVCIiFRhrzqUf":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"u04vW2Z3NGF5-rYwJBmek":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"mWnYoB67j0tkFP-i3CahS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"s4MuoKcrc4-3E9ZAHGP5J":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"-DmxKhyV_9sTQYjiW3uM0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"XtVturKOLDXgN5GNUxfrz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"ASqnOmTE4SjKJ5Clrt3tV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"T5kQJuYC1gTix98PfT31m":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"M3QlPQ5mJKEWE6CYNNhL1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"Yt0yqbo1MaYeLVLO2gFvS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"nCokCRuI4nksEF-axMLk0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"H9wGEfpqCtabDVY-4vOuM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"icK-g4UTGnxOi2gLUZfKG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"xIAWDBlbpVork5DSy7aZu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"3tMJIZ3nZ7qFcmhywxy7g":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"zSx-fkO3s-3JZ4zLuJzdZ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"uoSduWwyoKJh52MFUIhwA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"rCf9jMv1Oo6MzudHZKAFM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"NEul5yfLKHVMU6B1gD6eX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"3SpRQrkEG4TjM61ppe6Z7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"tEZFT43Q4VPcndWEHLsRg":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"YdMxy1r1QFWDcDeo_HY5E":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"aDUUDOg2952I4kTWHzAVH":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"5rFJkFI7aBGQFPQg6eMTJ":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"P6Twj7FuSMsJp_5jyh4a2":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"XiKGIOCBWRoc-FMCwY4ZG":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"gOy-6FTVQXknu7DnR8gRG":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"J5YAW3x3BUIf-NL2Zx3ja":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"HJodshqUNs0kkFj2vdT6V":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"oqHfNA7jbZnw_N7UCA37c":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"fBOG1tzc7G4UrWbjVi5xv":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"-zeNu7bcj0iaFNdcLzUah":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"xujzM7IgCeVmEXQI5Jiwc":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"9A5i-USQ_vfzkuWN-CF4-":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"6Ex9QD3lccoSFyTYttIU2":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"hR6Xmk-G47EW-XqUxKSGp":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"pCqka7QYYODu7k-sfP-_s":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"0dlTULk_6_J8ZPgNDFDtC":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"0J1wVJ8hhpCtTcgXkZnYK":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"LUY5Q8mkHULbhE7-BMraN":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"EzrVO5PijNwJnPRSCbAs8":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"fCaUzpUQfDIcO1Pj4WtDV":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"k_LfwLRh_8LlsXv8-o4qr":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"kBR022SARcVL41zgynTes":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"2jCkHbNCsjrSNO2rP4XbM":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"S7HWlbXXF6z10iHf-Jjfb":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"DpQQoAqYk42GVC1RM8Pv9":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"x6gSCrfeRp2nRrJV_UjYF":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"kHcQAEvt-93XthA60QnH_":{"uri":"/melonJS/docs/melonjs/level.html"},"ytgoj4PpKby8vaMrW1Q4s":{"uri":"/melonJS/docs/melonjs/level.html#add"},"lMAYQkQufIQbKm_T7gZfT":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"8Ni5dB5fuVM8IX_hkZY2L":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"kYwCYeHOP7ch7ISczYYhD":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"eoXhZu0PCkMMJ0LgDz0b2":{"uri":"/melonJS/docs/melonjs/level.html#load"},"Q0X7h1u7roj-MZf5gnRdF":{"uri":"/melonJS/docs/melonjs/level.html#next"},"We4d1-wvqUlWRKAY5VXEc":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"UVrPHM34DMm_40TR6CD9X":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"IFpHVzN8R3qsHfHTe5DQt":{"uri":"/melonJS/docs/melonjs/loader.html"},"gGYGXv15ToBg4bOgOh4Js":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"Yfqbl503dRDdcXNGzEv4Y":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"c181iz6D1B4GfNjFsY325":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"FcYqa_A682khyljPHrl8M":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"aWbTkv7AugiJE40Ku2kmy":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"12bJlokS4cyEyg-oaMBIV":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"vnS-f2lr_s3okpfx12ooA":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"36VlWF3w3MTfAMerSZUVW":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"RLYaU1kH8LozikbCp5AA4":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"Abf7LEXQ4lg1dBeoTQIvJ":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"-d6gQPyJ95fTPNZdUrMd8":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"Ah-Warz9JoyCR775XD9Fd":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"ovrhTbRRf49U8TWo64jKa":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"6oiH7Pzbg2ajy2HQ5xfSI":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"JXlBnH7WbWGvxdnu5XsWO":{"uri":"/melonJS/docs/melonjs/loader/getFont.html"},"u5-dpYXKsfAfzTPVqMmS4":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"v9CJ5zB_k8nSz6Vf6fhfd":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"t13oG0ozFRAYOvrve1Ij3":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"YSJOmjQMsJIljXnUGlZkd":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"dszv55ePANcMa4yQCryhy":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"jppGfvpTnWBgCzT7cuhK8":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"_k66PDRUZYuK6Ma7WQ2C1":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"Zoq0BWAhGbP3fpXHQAjLk":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"OCZFt1Q0LKX00pDsOb47o":{"uri":"/melonJS/docs/melonjs/loader/setOptions.html"},"zWqBQ_MBhpiedYky-MR72":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"Wz41gH_1JvygAhwh0o-ro":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"G2AU-x56LInhhhXZRWkZS":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"U0482Oj5AyxIPDqoSnN7m":{"uri":"/melonJS/docs/melonjs/Math.html"},"92IEnLbTGmBAfERkp5eMX":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"HJl0b4EaNFwhXOyWbcWEB":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"_EDYmq2uc7dVR9x5fN5aA":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"pEayI9QKtPfcDW7gTM80s":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"c466tu8lLuYRlDmh9vl_o":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"iROXz-roeht-MKkS2kg3m":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"EtHEJgEDWvbv0xYqHKPzS":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"-c_3K-Y3XgGW1XfOwVhXe":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"lv0vtxkYwmG9pQY9P1CKq":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"bw-h_ddw-i1rG-C7CUs3z":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"BVWfDWKHWgeUVyCKOnLTb":{"uri":"/melonJS/docs/melonjs/Math/pow.html"},"2YI_7cw5BrmyJNH16Xpf8":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"7erj7yO9ZiJR5LN1519JH":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"3qlSudXwnRuU6FSuioWl3":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"FFzhtggMUHs1ChxM-V6lS":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"F99ASwPo4t3BkS1yx-UTR":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"csMcJp7qf97Ha3AQe0A1g":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"eYrKf5Bjwd9e6uL8lzniI":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"80cuvYglzJCvXffLc1Gh5":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"RDPZu1Cr-9icSUK7Db2T0":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"XI6pYUv3xG0zalsEnGLVd":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"kIefxQXJxxlYlnjnqSIVv":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"CNQGyE1bT0KkA_XpyfnZI":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"VFKfoRrxFWll3ZHTYwsrU":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"O8xRakBBgVftwMEsppI6O":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"cf4lH4IH34wI1U9rAHCQZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"Soc-3Henia1RD4gjMLNKq":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"MfvnbWDgneDtwGTyFStd4":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"r8_aKe37MbfbFq8TL93uU":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"z4KYVeRU6N-ruZVJe2lB1":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"BtOdlAUd2Unms8ZrV5Hs6":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"p__205n2KKEtLkJanHS1J":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"2w5_zbSYcWgUkVits6oI4":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"iyHMvua_4LKYx8GRuYQ1r":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"3_RzZwGLRMxWvE7Wbl56K":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"2cuK7TYLb3eZStmNGobuS":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"GNiBILaRJole0KzI8JJVc":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"BvGug10OLucHP2uATu-3F":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"U_qbAPncnCkDbUmyNg3E7":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"D4Bj4ywDb_RlLOQnXcnSR":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"xBg4aP3y4D64vaZuVxax6":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"PpH2Envq3Py6c3_8EILD-":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"2Vdi72DYFu7JgeGSqeGN5":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"HGlEpLUZzuxejnubBwTRF":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"H08Q73sRFFw-L7CKroe1Y":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"jI--zifv_qNid1y9tw0-R":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"2LRDpTX8TZhdgxl14jjvs":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"C2WANRqT8Acvo5MxiKo6L":{"uri":"/melonJS/docs/melonjs/plugin.html"},"o4SdUZwt-LC42NaHuA8ZX":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"FbZMlu4OvydlO3FYBUgGM":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"rY1gk-ctg180EFuQyt7kM":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"HO6Pi57hlPnFtEagZD8Uw":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"jdipuF7uwcJ_YIOElvD1r":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"OORuh92IlTZ8DyQU3uOBI":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"5-3_VIkWDmDrI_X0wSIWj":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"SUIDtMeT5ESIFTmQE2Ytl":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"9U7vafs3KFnaaFvbSQKsP":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"yB9IFEd1SE4Ex2TwUQmu2":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"46scPS_UCWNvdlBKGlC6L":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"MbIp9fQxsqerBYCD0Ygh8":{"uri":"/melonJS/docs/melonjs/pool.html"},"UMVWLm9QZhG1HjCTTzZex":{"uri":"/melonJS/docs/melonjs/save.html"},"GL6Ade2PgBnAJAtQx8TYW":{"uri":"/melonJS/docs/melonjs/save.html#add"},"SL8LzwA6XeN3GXeG0qkzL":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"UOVGWGBZiuG7qrlC_PIdT":{"uri":"/melonJS/docs/melonjs/state.html"},"xgJwv3YdnwA9AnouDnKcN":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"-cNRcgAcR41uIE4XgMzkF":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"jj90Ypezg7PjdENs0X2AJ":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"kdSkujc8z0KP6ehMWhJbQ":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"3AgaRgp0lkaydwAAsC1P0":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"23TZQA-KyNCYAxihwiNkF":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"cEsSQhaERX8ODukpf0yva":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"_ob0qrByhxsxBBr3Vwsck":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"Rw0mmQ9R7PQr406_Ia1d9":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"D_hqeZkn7bpVQpxqeyEsu":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"jmgpaEgSLpYKcu7fQK8Kx":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"rtoShfCzdm083FZxJE4h5":{"uri":"/melonJS/docs/melonjs/state.html#change"},"V2yjkJIvCkfs15KXRyA4k":{"uri":"/melonJS/docs/melonjs/state.html#current"},"oKGLKm-53AyETnlIGjEXS":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"p91nym0Q-7yCFVK-Y4QZw":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"HXdt6ZtUPHUTU7GpA7n24":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"kI6nzsJLXc0oUT1h8k0I0":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"tRXWZbqhSrkTS9n6jBFs8":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"YsbhXKtuLYqmz8-cY0zHN":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"iiIePh17YGrD5JQuFuX6M":{"uri":"/melonJS/docs/melonjs/state.html#set"},"7EKv5Ur-Xk4ejVj-BoKOr":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"hgIxf1L_7AxMI3uDcxUKK":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"w3VHDidkGwQNhe8Zn3DVT":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"74xhU2wucz-ueY7Qu8EzF":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"0e2MqLujNIHFWTIsOGw67":{"uri":"/melonJS/docs/melonjs/timer.html"},"iWpFu5ewarbE_sBVsvEk-":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"_bbmYuSFBX1a_R2oZhAHk":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"KoZYo2wOaFeUpcpoe1_UF":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"lQWci6IOgwiA21R0484Nq":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"cjg3D8oUfm9KZZlBGQIVP":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"Ik1mysgorI9R4CcPTTgcd":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"Rd9X61zVVB01NFepJx21h":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"iybfsw6R8Tlw0JCs-48Ym":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"wE_WSD87PQZx2z1W202Md":{"uri":"/melonJS/docs/melonjs/utils.html"},"d7Mp9_WNOAEKRxxA59kYy":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"dQtP9kGbxFFsA07pzSCsQ":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"79YtECRiLMH70H4AHX7TY":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"YoWc1uA_64EbqDH0CZnf6":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"88HOqoyIr_G_qSNBuDvl1":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"2Tx0b_rps17GSrbkbgxKD":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"TNPwQxMxcem_Ubm_mFQUv":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"t5JZYa3L9uFou-xNS-T1g":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"U9mq6jbtkc_VrNuANvxSv":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"h2o-Pgyp-xOfjFVCs4E3w":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"4hOo4dV_mp7DiY_e6_Yga":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"WEqo23jN-jxGnje709EpH":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"OQYh3t3H2i31D0YBSGZxJ":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"ySGvRpVfQ5ywJR2tytaMT":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"bPue1LXl5_DedFd6r3sYk":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"ZRicrwCNzogHjdB_6Faye":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"AaahOhy0jJaUcyntjzIAi":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"HHAC94bCRNlJfiUBdbSgc":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"NcJDn7BrQgqLs8Li6vEca":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"BLlh1XSJz4miVC_7Cdxov":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"7RQGv8iT3Dj1W8N4NXLbU":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"jQR-3b8adOrs7tuXr69bc":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"Y5Y7mFyyi3DNqjOSbJNas":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"VIwIJ8uT63TRqj8vdHhi_":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"abVNDgIxTijCmBxcEsc4d":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"BkTHWt7EhvaLH0NPbAjgz":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"jnfUMe0ydI70QhwIDL_Mh":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"huj481USDy3MlVirK8KXq":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"08kgVZTTXDgNsqONngaon":{"uri":"/melonJS/docs/melonjs/video.html"},"bBqmzgbVR_nNiT5WO8AyX":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"K4a-slKiPDB-pwOD1-Y-C":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"VRralBmTNNqZ-pHNWF77T":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"z8OBzH3dWUmf205ogMrKB":{"uri":"/melonJS/docs/melonjs/video/init.html"},"MTJ6NFjC85uvLhEudTYtK":{"uri":"/melonJS/docs/melonjs/Application.html"},"n_Ir2NkXOZcQrcJB9IZXJ":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"liTyGjNMk5Eu9iWeZy5G7":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"2HhoNpbCssTu746q33r7P":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"Hv9LA9BH1wqxRjr5q2xAb":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"dQQdtLhF5NmUbLhTTZhhh":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"266fVnINuI5tXBV0xb539":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"ubFL66-g40vcWvQVho3Kt":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"ixSQ2Bhod6QzTt_dz17wU":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"vwwoDwiIGE5xXp3cYVv85":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"PvAYWmpklUKIHoeEa7R5W":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"1eQFj6ONGfxZClqlRSHwa":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"NJfOlWho7YBR3lMnU-QAt":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"Z3L_GL1IpIFLS8qHmrFjl":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"_IJN2sQJJB1Zc4JRVMSdT":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"W88spmdoAirAwvunE5QJz":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"WK9ell7mSG7LdMfq-bGyr":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"jIeXsb3b58TG7lupQNtM9":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"sQscFq-wuxtkPUkuGObo7":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"onHguDzTfqt8h4Ap3UHPj":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"VkigLq7ZcXqrzUNtYHkzm":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"HAIhM5oeSAl7xwr1SEvKL":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"86I7kkhYkKH088hHTfz_E":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"XL5vJZlft6YdLgmK5HiJU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"lDVWyyzGYJMCGVrTlZ6WV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"mGNGndVR5jSAMObRA-dbk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"ndxUFQpY141Um0RGn_kyr":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"mjfCAPbiipyPNdouuvYjy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"CTcVr18Br2ahriagyTpJQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"feaDGBaGDIcfsv4ZyJia4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"vEw7sXPdkjtRkCPPGsM2V":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"al_iqOqm5fU35U5RwB1jt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"QaV4b-ahubunj5N2_ZA61":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"LP2lhvEms7BVLBONKk0aO":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"UEGm3eIjbrcg9kbFnm6Ld":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"ydDiVW31dyXVVPmbA_Mu0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"lRaCXCEqFLx0zLVphVChc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"56rdruL-br2pwdD-IU-YE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"EBlR9KiEV-nuMgiK5kFzo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"-bB9Rs1krn2f_aiSZybzK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"tlE5NHzEK_ctJg_tMvCg_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"cz7RwHg4YeS1U4vObR_pP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"p6EVL-0V7Ud8QDnGXZQkM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"hZe461_MX9WAGm6ElT4Nz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"aROPD7bP1IPAVweIbttEM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"A0QWCm-Sc-XpiC3BddpW2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"hQ4UzO6r9T_K9QnuGFAPZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"1rRbfV6r0Lw9mXY0t-r_e":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"lEDYd5q6mld3mx3QJkXRc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"Z1wbJPbIo6Ksz_12eVmac":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"vnM3Qhiz9dA6-ilTLpJth":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"BhsqNrqNAE7-UqYSm5U5k":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"kXjDaPrUvXeEVgdSzyrCe":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"oEWnYGC6zV5ZUdh5XAetM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"xC5c0Vbt_PDs6SIpSoU0S":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"hxuT5q61w7aVH-qO8Elp6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"9O00yh8LHO9yiP5e7h31U":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"RSP0c7Amrdev02ajfSFea":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"L7Z4_EzrJINcGTxE6RxXL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"d00tUL_n-FM38oDezlmE7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"Ypm2PwPDquR2lZOBc5FhZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"Tz9NpkN95sk7FNqKLxWKW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"8xoZHE1A0EtPQEksnRm1i":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"y-V7kQwni47yeELQ_K0Ej":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"o_viplBmyjEU6sNh7RBxJ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"mpZ0_7HM_hRNqk1WirnJY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"GMe6ZXfTFo_9qbdvRUyOY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"uk-SzaWiTlZl3IJcOLiba":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"m4E0JisJDN1CdnvFszftC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"KYtvUgLYR91_tqrZlkFt_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"cQus998AnAzpWrf3udAxk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"dgEhmuFWBARqeleC5xlXs":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"wQjsPN0dDrylG-cbx88Uu":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"1tvjRke9rddp-K25NmlXk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"TvNVjHIy2Xiqt8FAVWpjP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"iqzgikkPfY6yC8W4WH68g":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"zn23TXUX_hZN5U0jfHy5Z":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"L0PQ87rGLjeog3Hzjy9iX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"Hu9g0S8d5wT1yFqiwPpOj":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"eD9YcpdMUDTT1yZ0jPrVE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"78f7g8NsJcTeNcnR0vm-C":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"Ix1cK5G6-Tta58IthfdOK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"i7EVpy-SNrWO8lqXTg3Vx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"Vx_IZ8DYDlwwekkpAH9Xr":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"zV2225bzZECO91wUDmWbM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"MUiDQktiUMz9ktoBLDOWs":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"4o7odiemTz433AbXgzPzi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"1LdFXzyLZA17lYxZ0lbDq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"9N5WUpmWt-UkyllZIiBR2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"Cr1d80g-bLje1X7jkOfAp":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"oRyxtQcZYbbDzs_iCkpdn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"PgMXeG9DKfb-SVM8YuKBs":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"XMqn1xbNZjBPWXmpmzWTQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"Uv8Rqp-jfZmL30Ya1H_JV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"28w1ed0x1hpbmlTfWDjIE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"eFjGHwFAe6L0ywf2vbwjg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"yBGWt0ZB-2OVe9ZPcP1q1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"H_J1ULdnJJ7_9UQbfCftQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"kiu3rG1MLNAZ1AfYp5R9T":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"KMhIbPRimtbpnoda5X_Ye":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"ef04carj4M-0A7pj2MwfB":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"QAldRLLW3hhWypM4u_jZR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"VoAFI7Z3zHH6aYPzPFlIk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"S9W6fmVeubKN7Yx4JSEQq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"jIZtvvY90FsQSC9OfDm0W":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"63_Byyd0479XK-ltL2Jsf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"6ZwdfLRffL6Fyf30U7OgL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"GeZeu5uCQ0wD-4xOtgC7a":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"34bp1TW1U18bOxzZwsrdG":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"OzF0JSJC5BrpsXyoQfG4a":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"9PB6jS3oE6WQh9t4Y9BY_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"RedxNc7z4lhrm1rtikbGG":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"F8r6mHnnZf2yYjsG_O9NJ":{"uri":"/melonJS/docs/melonjs/Body.html"},"7hOmcBFaPfUyu9rjfeyOP":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"g0yPSrCfUjc_sxvtIKbZ_":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"xG3cw9DEsfGV8PXp0i-Kc":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"Le461JKg5pFm2k3iC2gWF":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"JuomqxEVTqdenu4Bz6l3J":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"m_yWOdNP_miHmJIxEsaxW":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"h1ibvBAQY30fyJ2ZE93dA":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"Agr7j0NABd9hGN0ZkBsOW":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"x3zQ3HgzhalrzL1c5UMRp":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"JvknHKRUf461PgcUmZpzP":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"fFkGb9hEI-vROwHQPW_7i":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"Z2Y0fUwcmWBLro2-Xsxbc":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"ofYHSyEFuopt4-_4y7IM5":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"OwYMCx2F15CeuVmDBZoDa":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"b54XsAqybFgWN-iA7UQen":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"Sifv6KlGCOmnZ1RSFPjtV":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"EL4D8PU7k2iAEBXLDSFgS":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"QqT3NiaXw7lWf1TDsMtek":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"5Jtycot_Z5Y-BW5ZuiSJ1":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"2vGVekLoE-wJ4L40Vmo5S":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"fBSlJMA4dx_CtymaoBrbn":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"zRn88AnttT7G2cpHlKVwZ":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"ruOiwMLnOkotZqfmaz4iO":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"_d9rANUey7ffEpTNesVik":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"YNSvNwpNu5AGKQ-zyCnGx":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"8DGWrLWE0Zi254b-IGaIU":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"jMQgteefmJLgUQoTGF4wW":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"KQgJuKpDVsLa0O8seJYdO":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"TiVnSUue8KvznaHkxLgDX":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"qh9o0wXeDYEJVljumy_Pt":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"cjCiKdavFXwizc5Dygq6H":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"j2EaN56TOoY4turVbae_o":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"ocd7V7cXCc21xYlHw1oDW":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"TI94-XTW4lFVwVX2w6O1f":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"80dx2ii_OjhvFBaEhpDSh":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"ldeZ5z0lB6z8RaK59NKpY":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"HCM_eEc8BdrQSpUDA3Qjq":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"C9AzUTcWSycjj1H1ghSm4":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"AD9ek7IOeQiwJjK5zR-a9":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"Tv5hXsSIFu1xmU-csiJBJ":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"epWxWbAnlD22sjVQBExt6":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"32o4UsxJ8c80g42EXa9DI":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"aTSKuMdz_DCzUh1-mt_JI":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"XiF-A7RKSrOzomVvaPjov":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"W32ghvZS5nk4cg0VB1GgT":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"hb27jFyJBhEtHjesCa9Tg":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"gBTM0sBIio0h3U0J1GwVy":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"KonMTTJ5MRYgzw9FbJGfD":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"SLT_6fcoOicKiS-HxXS72":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"0a8d_rS66jpARAZAC6YaP":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"as3v07uPPQ97vfQmdZwyd":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"jJY5FNOwZnKQqrs2queFv":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"1rxaZwBb6qQAbPzhQCq-m":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"BWV7LWrkd785KNg_75JYh":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"m8UY5EyN3qDsx-FSZFMRK":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"RNVqNYcpVxMUT6gWZngIS":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"ZzQBHZF2_OZfL9FMTPqlg":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"o3JWqbzdYy15OiZqBcaWB":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"_VoI1t_lMl9rbRPzKsH2-":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"7I5hrlTvnIZ7asF7y_u_j":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"P98iOXhAlD5uG4Cr_Zd-k":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"FdUoBLCUm3TIxTg5rNz65":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"SxNh9zIylv-hD5qDv-xoN":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"lDdP-GNJoQn8RXyFbdA16":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"xc-U0o5KceaOiZ8WDLLD1":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"Luojux99_l0IqLDHx4s2H":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"LK6uQeNU8UYLgd1fztMc-":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"S9I2540M_N1_IRyagrPY4":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"_nBDJ4OgK3U_9gFgkzVUg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"fuw5lXedryYdwLsnlKeAY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"JhWoapSjGAZDes5gBzsle":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"OIN_3yZ_n02uEXUtVGgru":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"LUHRIr3OazighA8_TR7aE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"d0vFY0bjEkh8f7eyp1bfE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"CaeDX9UDEXLQuJTmHMtd9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"4Ovd8nrTmjZMXITOug93j":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"0X3vl5HBXA3NGRnTU9yn_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"m5xveM8nG9V0amI8pB799":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"aNVaHvZ1ivw-GekEi0r69":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"TtlVoRtzoQcK8_SG4ff41":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"m5ZrS5igHE3vm-fzYt648":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"j3rdizsxFGdXPnmH5diDi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"rdWZnXhKOJw8DLFXhP_ox":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"lZX3UFWlfAX8Phxzln1BR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"qVUuOKrsdcDNUdm3_HH4L":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"_kPeiFj2_omSO37bQQ0Ak":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"i4yGbX6SoXb6VqA55gzRD":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"EpMNkGAzv1ADkuUuNT035":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"mGfg1N5mvtX89wlKWxSun":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"chfy-ENJ95oGcYvWEGfJL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"7q1W6PdeQe8oRUHwuRg3B":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"Jo_tcoyGWParT7PLM0T8e":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"vsxhfxJnGMGpAzZ2DajKp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"5oH_7XNVgGIaDf9HCnsVM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"U8IRTyP_pcf-POzPFC-fk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"QgOociDKlhCOQdaupWP_2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"2NZnkrZEZNeIp1bcJhE1d":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"Wy4fJpiBIfWgW46cj9j9J":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"6LMFe4vhJjFOoQLWilOTd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"XlHfBJsIBZA8V_A6t3AyN":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"T0AILgG_NJkEe97u3Yene":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"N18kcIj68vr5UIhlBuxSV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"aYeBvcmgiOwxFCoWW4Xuy":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"qTi9LGZv-zNjMV6BH7JLC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"tYlv9pn9SEHwFw_EBt1jy":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"YJLmrzCGLXukDo27bccTs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"XD_2nJAQkLd6TWDcHCdS_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"7-oPaVV33ycgMyvqLbnnd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"IO3359fvP5zba4PsCJa1e":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"PYzUpWKGtpVJcbqzasfor":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"lxImakbjCCEOEKQ22mcN1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"GZ_jImjtGwhu2Ps6KdEaj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"4EObCw0aGifjwM8v1Nn4l":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"Msd289ch1UiOp6wvuNqFt":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"cWgenUU3zikygPjKOe65b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"HsL2KKCCOnsdPnyEPxUfU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"PhvatMAiz-bfmJQSledjA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"1rBTyl5ETzxcs1ElhFwU5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"UBkxp6N8H70Kgpcig4Eve":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"rl6iPKc_L6QNoMojt5cJg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"hK8mHcuxBFwVeV-L36DYE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"dte2SlVUL8gkGkCi8kGov":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"u3v8dfIQP-yxiUYsfpi-l":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"hbUzX8o9CWctIYzuMPT2b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"znG80bjKoqaMllAkK8yd5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"nxw2h7XIE-tNj7GGasgEA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"Cvo5IX0ikjiDFnroakhVR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"peGpeC33Hxr4zW1PvA_Dz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"JZsrjgLJVkQw8U_I_Qi8k":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"l9Jy6cp6lwG3i-ndQQBsQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"Dr3-tjGVdEAvoSxY4d82F":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"_JL9QXY1o9-g4sD0151UC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"uhkrR9ZSNb3pMa8aLDVvg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"4fZQfmzsROM8Y6y48ycvW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"U5vvDe8LxEu6VLFKBFCjl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"ArMNl_uwU-9kMjCXzhiNl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"gIYN62kL3zuJaSbBncG05":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"HyoPE-7gx8QRzQ4t36-tI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"VJuJLMCQp6oiwV6BvfseR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"I4O6fVP4bz35OzA4ZEOAI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"yowZ-OPBVu6kM-woNvL5g":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"c9G1wf0GprjkuTMhUA95h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"ngyLvXSRNx1W1zdPGx4F6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"xjUAtGd1Oezru2gm3PLQ-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"NxHVXCZxnM05o5UmBkEHp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"u8aiccSNTb_ewi3MV528p":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"V68O746y5mybUX3MrI36y":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"aPLHbnkKYIxA_eB_igYCl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"D84Dl9tQcC604WgC6fVxz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"41mWb5jWhVnhTEfXy0LP8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"FdeECj0bFc_OXCDV7sw3F":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"Gli9yPg6FzNcmykoft49K":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"hC7oYiYj7wfupOFaFR7t5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"JqWVG5euq6dkAmExbd8tz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"FXwilrY65lf1p9Msp7GLp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"atEguHXsf0GcMSXMXSqwA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"ZZ96Zu54LORlSxuriJ-h5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"atVVAU2Zp4PhHh_6D1wR1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"KnbhnblskexyRIKm3zHOs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"dmRHwYtL5W3Ac0AmoFMjM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"6nykbVpHH-rGef4E3uxSh":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"ENEYNyZPV2qH8WmsVmtkX":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"SJo7AFKsZoiyQnYHcHNmT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"DYNBrZ1yViqdmpAyn0mkT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"lt7rpCZm5G6MUaK_BKyQO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"stWQentxbw-U-BeVi-f3m":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"0MuhQm3umRxeds94yIv3R":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"g7HDY_rW08vo_kkY7nfgP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"5ZTaSCK3gFfyO04re4qtS":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"uH9umdHHFWjC6uK71groD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"rNgVr_srygQdL6ruDTf5Z":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineWidth"},"twe_cgR_EKNB4gnueLTIY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"t1rW0n4hNhz-YAfS7vweL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#renderTarget"},"aOfFem_DU3r6i-FXsNK4j":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"-CmZMovWlQ4ClbKz4k4YC":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"z08I-kZj2g_5Dhz0TGsvB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"JdhZFWQy7-D4N5dAJY33H":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"IYztxx9Fi_0lnxvP3WOPG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"LAbRNb2_JcXb8YBM1voDW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"AtE2W2Q3ZP6-Hr45r2chh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"_sKh2O7fh0moBKkQtp3wS":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"6j_6DTqExBoZzGKgsvQ_n":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"qtFqY1O5DcADW_hTz86RF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"sXI4cLd3GrwwvoISEM0nG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"iaF-zqSTLQ1nTjrUdhBnd":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"CYNEe1Rbh0ueb4UsZhKe4":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"wM8UdFN1x70XuILJv1SgE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"AtH9o6stMDM9emBmRvZgo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"Aq-Txa0y0-_PMceYCdpwo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"NHXWvVU1zvlpS0fH94bLh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"TkWYjv_ihht61j7vzTYlG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"daY696P-Q7iG7JSV4aJD8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"U3HfZ6wH8tP5wKijjOZXC":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"EcVjkqUhNf7hGmdmaeYee":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"CnAINWpErH-pCzrNY_x4m":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"u4UDt34z2AE8ZlOSKaKAU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"z016kcFOtz5laS05WaleU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"RoFZm-kT6E0lwXsuRCILD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"bykjAEmw2Z4OgeXgb1Rqh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"XAaNLetUnpQwqkfnal0yW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"JqU0EwrbrizXz9uFsuSU3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"xUkGl3oRE67pUmYbRxh_2":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"PdNE3C1t_BgN0EalOSGeL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"WoDVknOMCj-sv0gHLLz13":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getHeight"},"f9TDFa3cWYbpmCCSHNy0G":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"qpRNMEA4oqQ624duEKo36":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"1Uow-ATGr1F_2Z7sObZhz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"4__7_AybQwOuhmh86Hg-i":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"LxPXf4aulvaV6VzX42Ctc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"S2UPhJso72357PnXHKpRu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"Q2oRiNr890CXg4ByzODBE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"iRvbdfHYGykkuXhA-ICYP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"TcyeSt-v_mflYf9CtN8_E":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"m7F7zxDq-VZa-Ck_L6AHJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"9ONojRrx13UodsAAkLYY-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"YVncxb5VmaadR_khk5KHu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"z2b3-Ar89E7cxfMfxbdyl":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"MNPejcVBz2S7AIasTaDb3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"Y_N9axLF-yXUZYm9OClK6":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"HnKYO7ZYXK-lvnH_4bk97":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"U89eX7CkoHYNUOK4-v1Jm":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"c04TxYuYoCgEMPZYNztV8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"uJ4Rg9lQQtd2wOqYQ1otW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"dt8rdREgaywEeZtpK3KrH":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"xF8Bt-VcEgg7wpnhBehSq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"R3OLwpX0NGcV-cHpdmWw2":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"CVwq3VGH1IbcDry0dVDcQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"0QOZrKxxu4dkZ3QjjDPcx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"3NJtkU-mDIB5WAhxZjpEx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"2N_1AvDN3o_QzH9pDD4uf":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"iQwfTZlvmxaKE-wpWan7Q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"9ZK-vLFdsGfNgmP1PlLGd":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"IUsf_rnja7YqOEDNWabLk":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"O_5g4z2gK5FB7IeXEvsKg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"F1M3Fx6Mty-ym-4Iefshj":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"6pTtkcyYih1cpvC1OGQxI":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"OI0IgKk8FmKTxvrY0zMIU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"a_YKvjWsdIOLMelQEKroB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"Uol8bkzvl68GTGwjnwf85":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"W60hxmFC-cRL3XAJHwY9P":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"jJv3_eQnDheZ_59pfZVlD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"rSbTVUk9k37CDqEFHQ3KZ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"KaDQ62mxsge5yB3jDUG_l":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"gxpx3fxFnUW47t47LAGhA":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#height"},"YAbA9fvxFTmDfnX0hF9XI":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#width"},"S82M-TA1Z3RmTk51MwP92":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#clear"},"An4NqHvYuOlMqnjxTik_y":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#constructor"},"cszqltAm37JluYATnqQWr":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#getImageData"},"3tqFUo41o9PU7j94PB-OT":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#invalidate"},"QRy-RzbUubO136LsBDJda":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#resize"},"Y4gEVT3B5HoUoXANVtdyL":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#setAntiAlias"},"2G0SMeg6rKsZGbkMYIUd5":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toBlob"},"5ITgUV0nmSfKHbpX_jjRJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toDataURL"},"mh8lhcyAsURSLa4_fzds3":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toImageBitmap"},"8WCS6b_03DgAQ3LjuKuLS":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"zsmHthob7kmvKwixO_uUg":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"NLYWX3KS3w_2qgsqWdwNx":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"K9inRgrso809C2e1ouxPw":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"aZSpkTB5p71KUuIznUrM3":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"G1Oy8yyk52p8S39V5SGhE":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"XLUvDh6hW16B3Q9q1OgHh":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"VGNtKdcXyc_ccTKwsasYu":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"2ssNqajaPOliPMddvWhtc":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"ZEVLWhyLXc-Qr8Byk5k3S":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"N75JwqA6Wh15b2oELE6Ee":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"GeUYsEkzXeV4tC7k8YJWp":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"iUW6ctFTyms7g_Pm7Y2nK":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"hcATs9IujbTD2nWkYCoEQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"wiXjU0O8fHRI6SguM_uHd":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"nioqSWhVhnj0IMxtU7DM0":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"9oZUl4Dl92eJT1O_aAgE9":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"LUxiEhn8gYAw8r_Jx4yLZ":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"RaNjdiV793mb925BzK-MA":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"gIk7B67fXce2abYFgu3_G":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"xo-NHuqysdkiH2ln5N1KG":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"KgHVjhpSq24mg5k6_vyNJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"w7gpYHKxE6Z7L1dRDilSl":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"3jvy-7o0spQximS1Mcuxj":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"llinoWP-7uWMztnu-4ogo":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"A1WaReCPwjFaEnNAObFZh":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"J-h8HcMRTNT_CwoIar4zk":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"P-gA5YdFEVf8GSxF6EWRJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"ynuGiu7afzCJujWRv2EfR":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"sV5hcaTB72GAeZXQ4d8Nh":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"5yZbBJkTQscQeRScS-20q":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"35x_pdJA8Yv9taoIDO3DQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"EyKdle2NxXrMpioohbPop":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"996hlcARvXOHsZwHhyK63":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"tgMEEOX_cWYBiItRG7Dxt":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"unBCbCG2RL4DF8l7JCRD2":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"Hdwzbu_764Pd8_wpQWORP":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"ya5woLR7whdmlGvybub-K":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"C9DJmkqe6KYVe0oVQTFL8":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"gQpC4q1n_OKhSMhzYtN7W":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"d4_IKoG3V8beyMP0YBtVw":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"oLsUN_7CXU90YL97MUaPK":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"6fjkv21BD44K6rDr_Y9id":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"rXRQGR3DudLn0chcMxFZY":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"TZxnZhBJAJ2xdpZER5FII":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"5tI0afwSS1D2w4mgLuSeD":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"rdrnOv0CRBbPtWdx43Wk5":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"yw7ujesTXnPt2-UctoEsN":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"iPiDT4HJ5fqbdNVb8cf1W":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"vmp2lVXPDCy-JeiKPDNHI":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"JYi5fpKIQHGJB70PHLDcx":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"bJnfp3JMrC3lEZhjZIxnX":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"V3-42XaFAoEuaXAArALeU":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"Vp5mcJESZyGF0kUNBQed2":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"kgc8vVJe_jCp8rw_f3mh8":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"vcqEQ1lsCMEKN-qbaX2et":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"LkIb6qqVbetbMuSxS1Vyc":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"iU4ndnsMWTE1Ic1sTuy1n":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"yQr52bxuWJ98-PhKMO9KM":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"OPthELR5zNyqrWzwG94ze":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"sIWNjEFf5ghOCgSa5z2ma":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"7PomDoY6_2z3opVuyvB5u":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"WX-CJ3hbtClly_qf1eyRn":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"a0uqzfTMg12EpuxhjdQ6H":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"Up6SeKOA5UK27OH2HlIHJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"YxpX7a4Nwju-2yEBUbssk":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"jtPJAqTJAcHmyGEB7vTtN":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"Jj8qfgLon1LUXHxg8LqMU":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"mTquF3L07sLipVVxtnV3A":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"apKdUPW8gi4dBiQxZcstB":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"GqQmhXhr-PcKwu0AJZ3Zt":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"7Hr-AAfH7Zdbk6wpWZ0mT":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"V2aesEZHYE0dDpHOQGD0M":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"VqVYjF3A-gS1pY3WUR80q":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"eM_HJhi2rUmGaA4CYh76q":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"klLLA3R6c9jmimPQ4h11H":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"00fUHRA9gAA-eT9UDu8qe":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"O346721NxrU05mkX6Ta2N":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"9u3MzCPiXCjl3jKImI9Af":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"nLyx8A3R8TX2Vq5gIdNjr":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"9r27mppcsx-eClA3oEMf-":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"YWULsrjP3HOImM0gn2uDL":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"YqyP2olXwTWlddk47koox":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"1vqx4GjpPLUJI_EuY1s3k":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"cHrUIw3LXcjOY84mLoWAl":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"Uai-k6NpsW-ecJfEGn1Or":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"nhowAAUCD5DWCuKCJ5kc0":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"xIbaiIbZzuraRk97YyKlS":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"IApbJ6vTDrmmu2zR8Py_F":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"1iLZ482hyXBQveCNCTi2-":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"kYZ22bpIHHAS51ALNu_O2":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"ZTra0UuYkdBwrJ9MR-2Ln":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"M6z_LuhFZzyhGISfQZVhJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"Y0NRI8vf36WQHhYFwbAhO":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"_t8Iuy1qrS6a4fp1n_B8B":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"DMSguZZ4iZgIkKlBfJJjQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"2YjjngoqBs6zmjcVtEL_s":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"05Ynoxik21knyOHDHnCW-":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"QABU0AgUmYJapP2Q5gSja":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"X11vNe7PHizrVyolRCo4-":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"mF8jNnY8cYKa__11hixlI":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"0YFMwYNPfZZNpBcexhx2O":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"3UccaJvXbFcQgZt1y08bc":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"aql1jZDkmBQ4RmBpFzNet":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"6EZBARi6P0QvtyXhnFSSM":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"Wj1t1kfnkUw-KNJ3ai9HB":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"bMqm1e0DbixDeMwVGJdXu":{"uri":"/melonJS/docs/melonjs/Color.html"},"MZHxu6_lrCcqinAlpoR90":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"jIeVeFhiXeMqTAN3hH4te":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"8FYO6DntQXBzWKowEUYZQ":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"TaXs5TLSRR86gyDTqm4M7":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"VU3scwuyAQGypuIbHskLt":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"1dHyKic5sCLSZUJcNVvSq":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"ZMNu3WXC-xNkkZ1avT8i8":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"yAsOUb2Eo9z7eUhZlNThI":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"getUAiQ3pu6aHVuFCeY9b":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"-tYDZzb-twjBFsstLUwM_":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"QDTuMZi_8oo_0ubowAjlJ":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"22sAt1EbKfViS49ePWKbV":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"bwFRSXoIqKL9H_87PU3JN":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"sSGvIs2HPoY3N-oGrF7AR":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"HcMlG4CDgM6ndIQmFOIpe":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"8LzYBmCSl9gaxOW_5SS2E":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"DXjsRDWgOVciRBAKHq1C1":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"VO1kcxn65FnLjdP2AEyLP":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"Kw9HJreoE6GCjPpwpmHyM":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"QhUlnNJ0SFo1XysbydXM6":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"ZIuTi_6q8B_T1AXwwf6l-":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"Wayu8ZCKY9GBYte4iWaeH":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"bTnrlGQiDm_NUmi352g5K":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"zlnSN3DuvaqEd7_4sWC3u":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"VFTn7-C8Qzq0Z5CKHPy5Z":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"A2TL3vWEtCuafbKA794_7":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"vHUewChU2pyIlsDH2TYfD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"B7GoPP039ntpgeVyxlLtS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"yWrIfPV5b_gsXlrEPjs5Y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"BpW-9ZeHaf23lR9Cw29X4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"kQrmM4NqvZudfoQUZhi1y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"X9fXO9HFZ-dewq2t4k-8w":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"nurAi4Q0v-qGr5m0rLBhg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"hcY2kwaET58QILvopXRPR":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"pe9WWRGwTfSvKNpzdbKFP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"3-MNrfdAbS7fOM_DM-w6e":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"IRExYLiOfb4e6FqS2a7rd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"vCH6URrnBSJIIYhPXVnDu":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"AL3DXDk5Ee_emMF_uLX2a":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"xkbiBCqiTS-8ml5IYKfne":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"PeMC4KgkCk2GXMdqyG_U_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"4SqQ1g9vHH2PPYGXhYuui":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"v66h4eDSVMH4Ku41AYuZ9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"Vh6I3wCPS7nreHQcgfj-U":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"nr45srMsycEQonAhqaSJc":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"36VRa0gdlBMghDu_MEwuP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"PCOvj1zoXrhbnwHj-7I4V":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"D6UCRinLlqUMvJBryu07v":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"ab6q0XTlxAc1QoXSmY8F7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"uiqCqpXry7ZGO7D4ePEfh":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"rWVErafkLdc-eLYx9_wHG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"snRf5DOc8O28CEI1eYZZI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"6bXC6HCboCRTaYmnq8PZw":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"7-VBv783VYFoTTlJKZbAU":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"H9QgrR-PT5xm0ZWiHfVrN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"YWx7R6gz89w_EppMcoVWb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"-JIyQCAlci7tgsVnziDON":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"9inFrqnFf-keT953aTA5F":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"Sht8OKNy3oMa1mlIPF9o1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"h6CB2NkMHh5VG2Jzxvmaa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"R_1lOkcYUV_r1ZLVc4gJB":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"5IpLylUs0uOrIhXRH7WbV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"J1h9YSYdd6_PlC4gPb6AC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"-VAQwPkY-FN08ziRsdMC9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"5v1xm0LYMgcnLzpWQUH9R":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"L4jaXhDI7MYhLRapAr904":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"NSBb5BWfjO8lFtN9dyX52":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"jSv4KHNpZ08k8w_-H4I1G":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"WyubX9js9fgMLw31KgEDw":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"QKoEQjkBcFsRGSGJz2DzA":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"TW7hBy2HWTbdCk-2u7eA7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"td4YZ1rV6ZmIm3sqxi4Nv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"tspyBFKr-B1oSdxjEcL59":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"3fx-KueAvj9loUNevS2F8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"ddSlJ_VmkYneENLsZuT7A":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"uj4wrVvT1u0-YKKqFUAcT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"V5B_wCq104DURR-FWoPDg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"g3qtbDrKB5u4IY1dArh_q":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"Q6dVG7U-NNB2XRthWSP2j":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"7RG9qgha3siKvUURoBaH6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"cCeE4Ip-599XpfDNAiXcd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"eMeeiV-0y7ckfgIQF8Upn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"0v49n8Vbma2FwG49XDMwQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"Y9ax23JySwI3tt-WscVjH":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"fouN4Zbqc5Pi1giLqo8NL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"PtmbDdDq1yEwywcIh9UhO":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"hJZ1hB-KHeCixHGnHFTni":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"YEKHcrXVsfXkyWnNBkyuj":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"PDBX5Vg_cTeKAE2W1Pp3W":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"rBXqYUa9Ya6UkEoMx8MHV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"-VSxCxe4HK5g6efhwkZUI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"UcrbLYe512QPGDS61MxG5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"UYZ3cnZQdAqO3PVFYThvK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"SN5_G4DW45IuLaXceu0Yg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"UjIbYHsgkOTLrWQZu1S9a":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"MQ5yOO6jgb13Phbqqfut1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"TEMaGdv63BEDHBbasTEEo":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"M-MOjs2XdZst7YGy260rF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"Xi1FtQFoMQmFP6d1GJKI8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"qx7eZpJELKGtvsSvRcPMe":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"BQCBG2Y8KQqBgkzjy4Psg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"_WvEY4kQhiIq6dLmGWuo0":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"A6268ZiZLQ1s7003y7euD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"Gojai_jW6z5n1JT8eqD2X":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"6d5l0jGyY602zTIP7hxFg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"q9lKsngwpa9159RWTUo_w":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"MSLksRhWd3OeCXeFyVV4e":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"8q6QbC9wKfbstXFb_8Nbj":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"8ho68YHRh5dhYxw8uyY5Z":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"SXKR21hDbQHMHvKSU-RmO":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"A7EvTSVl-7guM7GaAFDwM":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"bGDr2TG8fg-IvgvzwJkhv":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"o67QOQIY1zi05sH3dgju3":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"sNv6_kRVRcPhROouiOQEG":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"hND7YODibr9bTgUjeJFJR":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"vf853oM5Q4ctjBir1i_qK":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"f4Se5aj74TTWmdKudJbqq":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"NhJTQRCCrEkJcwhH_Sw1v":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"Rflu_5iBjI8h_0GkOnO9P":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"ESvsGD1hUFjU7SyrX4KFw":{"uri":"/melonJS/docs/melonjs/Container.html"},"5qterpPqP7DeYvbDNld5c":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"X3kKtXvE3YYNUJMAxf3dy":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"L6O8pki35XHRpn9oWg6Ky":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"TAxmDuxOLL63iNmjPDcvx":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"KoK1tMOTzqXaJDu9QLhQG":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"GT4b1KOBWqm2tnOng-zzu":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"HiRcku7qknv4n054LzWgP":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"ZDA2_LPL4CYCp31P6WWz-":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"qjUk5K3nXTpncxNj1hzCl":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"irXTJT-iuy52tT4sc4xR5":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"LpJy3c5xvgYLtZaVbRzW_":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"XxezVH8lWbiKXtjVzYK4n":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"OJ97rqmqOy7FUypzJoA1j":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"1LgN5zeWzrGObz1VbMmAJ":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"Z1_nuQ-S5mTpdhmRqANb1":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"FgnuHmJx2799-7uo_kMtZ":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"0O2J5vVw7QEtFaqiM1zZN":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"wobz2PXUKMeMMm-obdChH":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"-Odj7guzovD0UG7BQXXDD":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"MzZAPuXT3Qf14C78mWyu2":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"VAWbnHO9sdbSgVQpVxvHY":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"dwzA0W-h5yvmfGv8qNAYF":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"ukCGrHZglmx8b7G9pIXF7":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"T1bS0GPal73IfAGfB52FC":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"H6O70fIteeG2M0vSA0WiD":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"Df8F1Irc0VZq5WJ_9nH0X":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"-PMJWWnf0ZzdEExHfGCoN":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"AgDgNmiuFSPsa22OwQosU":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"mAtRcgssFnEGCPHTdZ4Ox":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"AxFnm0dyRL0DTSOhNdN2G":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"z0ExbnK6amQgLgYG-UQMX":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"JqtC44biTu5pnU0nSUx6n":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"voIcSYdlxgDXtLt9bQZwI":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"jd5nDme_N_jyEm_7voSwG":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"lsU47EFiwgIhs5HDCFRlj":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"QLB_O3z3ugC9zbjYROAj1":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"9YMijZnq59UFKI6YII5QB":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"nxmZJJCQ9tM6csvW8fVnm":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"rd_5ezp3GV2HYK7QCbzqq":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"SWle7yE5TBhqGDhH146PZ":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"Hf94nilI5xWdPQEAPoUC1":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"UNUaiEAYlnw6fm5ZIJpFW":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"KpWR-mhUvnViA0VEUHPyX":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"WafI1DfVJvrGgIPTewrfj":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"lNjpyPOSEWNpoxYc5OYx_":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"RjTe1hzjoZB33XjoLqM93":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"z8DCdg7VfRMcgtmEXAwp1":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"8eA--S8E-SaOtrHmSeFrk":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"_9qlRNIo3SzbII06bv0Y0":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"AK_GqmdYOucX0XHHVcYPD":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"UXVET4V5Gx-ktF04QYAYb":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"9zE2A_QfLPZE2q75_vR95":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"jba8gqT3GMLgQQDh3tmvR":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"NO59Iah3-BvUAlZq0q09Z":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"BxhbhX6o5L4ZrOuXdC4YV":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"h5z2WExcdGuIObtK3tzrm":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"zrw9Sjn6l2dM0hTJrklzY":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"QfcLUPY97Y4MlHB3TiE0i":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"SoXMX3ncfy1zNjNRGrBjF":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"Bhup0R0V_gAdM3cN5-63l":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"IvWsSRBTcpLvabm2_eqeV":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"RR588TCE-letwUceUkADr":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"VmxeblfxXNewtDIa2nNvK":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"dRj0Ty0UUFbK9xQN4YsWw":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"EKEa3v7JxCqyGp2-NBag3":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"y074-zStOaA8w1GRWf-_Q":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"xNEKCF_z3lVNNw66PI8DZ":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"Ylz_1An0cN1X4V3SVBZMA":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"h0D3N11FCtHntcfb7Bc1e":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"V-dUuH38fuGfYTDJPIoXi":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"ZDFyJsvXDawrV-b6I5giH":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"tVVdq7SqD3ixAixp5pa_9":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"OxqtdQSW6vUqmhyr7Abv_":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"Xjy6UDcc_5CyvzAFBOiVr":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"TZtftHLKcA-8elPXj7Z0H":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"DJ-i-KiBXI1Ky4VK5RFi8":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"jiuAr6mQZfl5QxLOSoJ66":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"yXsjOd7MQfrUbPm8zqwH7":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"FJu9tzLng6n8p3wHWvSrR":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"yqWUPso1yUCC01fWOf9yM":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"t5NGws9GrF4Exn7Wsgmyh":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"4fLwap1N--Q3kRNJE3Zgl":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"wwt5ClS0EsOFEY0ViAPXw":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"aW_iaATaM0scJplaNDoxW":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"aEL9teHY5M5zFNKd4HCzM":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"3J0kwJ-URc42vF-P6lmr6":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"Hx8oqgTVkyw1qANVvGnUT":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"VFDn78hFUu_RsIPNO655c":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"n8oe-knXxp4J0_Y6Ax0mR":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"N-_GHoxAFwU-flHZjSj7M":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"1MEmb1tqe1Wy16qxoW1h-":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"zAL41V8Ebx5GJIlY3N6sN":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"cu6fu3CCB31n5RMihqMKy":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"Tgg2nnwU6HgmYdGI3IiKu":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"ke3WcH_e4l-UUaCz-ZJE1":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"zNPK0xiipVzMoQfjKwJCa":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"zWXyNz6djYJ-fgiOlw2sf":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"Xfv8lheTemyxhXx8KouwA":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"dUTwMwiZQZ-s7yCluF9nq":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"FWYiLOUSfszmLI9YGUJc-":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"6pN7EaEZqbqRwDeSwsJ6A":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"31blHWwxe_bO7RTRacWvB":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"gExqfYd2QgrF1iF-mdjrO":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"Ku3m_qwvdJ82v-k-sHwGN":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"i2d-VhCdx3AIn-84XxFTN":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"3HsDOedz-3FbE3pA-3uZw":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"fB_DGQaDyLmO5xOKoN8L0":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"CsHQvBjtZUTnIQExmEOdj":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"C9n2TBm61cVAYvjyR4gzH":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"8tEBdegWqM9x48wO6jdi3":{"uri":"/melonJS/docs/melonjs/Detector.html"},"xayKMjfeEbTmPfcG9-TdI":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"0WfIFKd_bztwAXbb1Rs_l":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"5mBluMdwV4CNbPkcTDi1e":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"HCQ78-hSufouLtN9TA8yD":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"jVQudpNKqUGbUyFHtsmU4":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"akhOeriFuybbuCwAT7M8B":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"nsRWpmy97__06d-3fl9FE":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"DJBiJTSvRaoP1DQp8xSPl":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"RD1psm9SaALze3IvhkIeE":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"0_afLa3LhYAb8-zT2Ekux":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"9IEylVbxlt-0n4QyBJP_G":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"p6feCjKJ0b03QVBKhlPmQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"kB-m8KsG9ma1pYhgiq2X4":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"auO2IYUSW3-azu6hxJJeC":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"f7q__NL39bf7ISOMrNrmR":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"ucfGaZgVCHdHITs3WBFsr":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"jHfNsuayAsViotoxF8299":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"CkvNo1_eNfm7LbB-RuGYV":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"06SoDF_LGPCaH0CdogYmV":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"OKTIB1cr3-pguCgWUUep2":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"X0ULYLTFAuftW9ygUXFjt":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"R31LmBQpzEcLTHDIuGi60":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"W0HwlJvwrPC6pJVT7kF3d":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"1HMBV2lIMge87UiMjgMXo":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"sLOGDavVaoaDz6_2vVPH4":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"NxXm9BXh1lHt60Gt8JZxl":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"E1mAdNr3NIzBBcTJaT5h7":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"CaPgKZJzVGiJHPg0th_cA":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"x0NH5fmQoySacSbSp60I-":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"J7xEB42HtpVaFBs1G3ccN":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"GxLaki0gWpQ4-j0UcNMxv":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"b8pRWdwRSrH1Lso3WrPrR":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"0jnX-qLpRpQmqHlGSvOrA":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"SNf4bZeqHBTgqqgr_Q4RD":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"3C1USZ_vDeUEAwKXAw_EC":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"uOMrA27DQx6VOJzORt5BY":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"1HH7E4u7mYm9iPcOaxbrL":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"BIPIxvdEnEoMVvVq8TRPT":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"mpEatljRoYmKEI_K5uewb":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"-py-C76RPhRvTo2mkJZPV":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"B9z5T5Ntbdgk3URf8Fcyf":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"CTTt3eDNARnf5nCLe-UlD":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"HBvsEHCOKy3Lw485sNGP3":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"75k9AZZeUhT9TXc8dWij9":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"4kELmI5lhP3Ar0SnopXt6":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"IG2M4UgVQpAL52K1A2fL3":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"zM-5ZUzd_TSaU4YP5rBP7":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"9SYNDmHRHZ2fj_KL3YHOF":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"oudLyhto5EVDEAPP_tC6y":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"nRG2J0-Q4QolxWivKdcDO":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"5Lu4mTCl8cFu9vsG8EXMG":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"UEIXmTJG_WUfM8khsKzsA":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"GBkOlNVD6vvhlnOTbJSYf":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"y3gUr8alpMAWzEqDKrRPw":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"BZWMnFc3lePgzMVKnxhuw":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"gmXBePGEBEiCtm53A9zFp":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"ENcm4Mf1NlC6qgypKKp7i":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"BICF1eiFxg78M25ftaanK":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"b-H-60AA1jHo9amJ8hDzm":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"8Y6kJoBU7nKEh9XPmiQDn":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"B4iwxVXGKa4yvHwBCkqj-":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"weY2GyPYrs9BlTx4Y51CT":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"2xwsjFt7esV-8wGcxW_nS":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"WQOdV_JKW2fW6QPTDRtlx":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"jLprOMtPSpAAZ8GWBuSt-":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"QI8NGhoFaIkuEfHj2aoDX":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"edYgtSEnhQ4kmSVY0PQrE":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"6P7B-gOdi8IhzWhxSvbQy":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"CAUkpEjLohEnY0xoOBmbB":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"0riGGb4rSqwuHqYimeqMf":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"A91cnlCebnJOo32Sf6oU1":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"l4YlOSOiLSpxpgH4-gFs7":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"3qT83GFvQLMSg5znA34lu":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"Fx7S6HJisd12DT541r92F":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"gxyx_LMtKlwupVTmypxqO":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"eBtj7QOPWA4w7FmJRZxhM":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"DXIn0xAZc4rBSupsJ3Kjq":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"8MdiF032rKJ0xAaiwnNAF":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"TFE8wUkQ3-4zF3pY_lfAb":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"AoY5h6rgpo56GH1yxcICQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"gxrWxLMQxvT2oglIR16Cg":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"uo5E4IUn4x9lKnUOcOYqw":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"-eRXFTVKtTkqbHBnQl3qZ":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"WXHXGXduhxAxoovkFpKQ8":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"Tc7BbOAnJjI0ULVy446Bu":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"oWvlLXS4zz0kLfFgqzRLc":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"ZRk3LFjan9aHnLfTcTl__":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"9u_etRJF190roGktj51An":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"0XTGGcqQZ4e6m0CkkThAx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"vgcxbElBRmbCAKWzVm6vd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"MhZ4lhMnUx6j2HsoxbxWD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"1NzkDhHPU5FVEH9DJbFAi":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"HWijipMTW-8SV4kH-FOfi":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"CkwfE0W5W7nOcH1vaWEsV":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"X_eIsw9_xgkaXzpJv3GYs":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"mkDHtgA81Bb5APqtdTLsJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"YFAtbjStdYhKPXQx3NvBC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"KAmLCjXjtJ0LjmV4euXLO":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"CcYE-KrwhAJ5y_xL7Q9wv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"Ilxyff2Akhuu_VnRXWGWC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"K3aO3S0wYOYfoEQF-Yrcv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"O6CHUxKoENWZIsMKDwsfq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"7H0QX-U29gHG0RzC8Ho_c":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"Fcw2e2rj4hVUbEuoiJOjo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"e4CuGajBRXELBDJa-u2wc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"me2ltbO0jFaOz8Hfsq2Ob":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"gBZLQXmRn7TFaZVMTdjNN":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"x15hkt1zjyEvC1Ce0AGUx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"6sc9E582DUoj-xC2_jmH9":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"iK1tMslVCDI_Timl7AGvM":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"im6PWHlhaiN7FWfT4rYPU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"mrzy72iMWPgV5QB2Ob6IR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"rF_v4nbbVhSvuJVJzNBbU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"iW38551trrbx9WEp7ZB1W":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"MyKtF806xUab811mjPYm7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"I8buX2TG0H2IvLyYsbcLO":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"DGUO6RCvgEEPClvOteXvX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"JNf3hCznPmGPvnG-U603k":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"hexwsIzZTRm3nAc2s1Aip":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"BdBfnKfWlZYqfhQEtTGCT":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"63jZ-lo3TZrJhtyD3dOP8":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"BbtNqLcFC8wKY9Kl-n2R6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"Igu2otPr-N_D4UR_zKPdi":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"uKlHrnaVz8ybSTR2kcdit":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"K98VP8tBmKJlAUPz53Kzv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"gWgFIihiN-BPSTyD6ZbMT":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"J-7a5AEG3qD6NwevXl61h":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"EcH3G0kyA5KWrab1U9upl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"czKc65iBx27xGwJvUex9r":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"ro7umaq5ElZsxtROo91_g":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"v7LzFHnKdzvWXN9qBW0Ia":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"j3nnV_qaqWmEN2VzmKOKa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"HwLASTKSfDTqbB36WTNTJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"xiddSwTSFrXpt_icZlx4L":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"RrKOzXpk8qxW2KMmOBdK7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"AFvtG9xIp-OqdtNKBxIqt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"p8MiOumM6Xq_aJbgIKXQt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"ASJZ511QGiTHXQP9LcMv7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"ezAZuSnUPt_iBd6xhBHMn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"hAPUCLecMn8xLJqIBDPVj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"eQn2Tz78kSmgD3klwpYDs":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"f-YgMaoeiklofb3MfPvPW":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"oT6b_84ZHd12RRHxI2Wpu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"r3oqSbXXQp8gcHQ6NwMoi":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"IOj6UaonLQGjUnVLwvKZa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"H0v2vU6rgbV6aYaxziBJZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"IfRNiggqNpbIp-XzQf3Rz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"1LxVddtEHEotql16XktPH":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"U_P8iyXG-8HSTDCmvSb-o":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"Rk6DvwqMJ2hPHYYNvJHsC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"W8HeapJO5mW9_HHH8Nav4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"hcrenojkR6V1EtJ8eh4SY":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"bD6ObV5sRlJEDsZYECNHe":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"ddL1Kh9cJIt5s1J6uyaCg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"vz9etmKiiJx990AVVvRc0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"6q1J9GRTCNle7pMDRh69q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"tl-vMaUH6xoDwdyYuHWZJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"ooPvyhr8KYghGRM_7MMKt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"CGGHk1cayltExw7BvLquS":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"0cgk7U6uJer0DnyaKqQp-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"C65FUin3JaYwksV0GtTD0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"LRKCsmCm9WcHSx2ZW8f7C":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"OlEaGAzi69ct4HkxPBCfU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"jpCiXrhMmjXc2VsMSN-E5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"ntCTO-OhmMfmquI5R5uH_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"049RJSg6XzJZzieZxa13A":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"Nffh9VK2_vkv3m0EY4rOv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"qR6tFn1R-oW2d8Rf2_BnL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"_YnChJfm8JF45PkxekCpJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"ITz-rrsoaihx6jy3Ci_jB":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"Cy2siTE_MJfxi2HrfL6gz":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"9h68Jo9IGq1M15Ow9SEPr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"QeYLTzqthqOABRsR5cqKa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"k3kL4tT9Hu_Lw5XRAbT3g":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"3P9mH706-VwaoRGHcFxK3":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"xuAvKoFueQovF9JKavl1E":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"MwS48WTmx0GSJhIaojbl6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"rk1dgIxXp5GGyzfp6FcIb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"AoD-Qa7zY-ommhWYNxzhh":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"CxKShuYds5nEhfflbz571":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"Q2knsXc7NEQLXpe3upPKF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"EvoLoHFGDtedj75TACPFx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"9ARtl8ePflyh6Wgyd3YRu":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"bOpd-UB8Q2-p5AxirieJe":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"N8GvjQs1p4oZQcF8TTBR6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"e5YZw7dk6JdpqAUe4sPZb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"A5zFnIFza2tvccO66lP9_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"r6qu3c2U-KBf_V1kEg_iT":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"T_HYtYJU86uqI62HbmQp9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"Ofe5geFmciQDUAsIBYmoW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"xFa4kbLaaxwR8emrNCn87":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"Esq0yXeRnPMTQ55eQIPO4":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"ZwO7TskAkQmQeW2NVEV7p":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"iX5LrvqLxeDoPmqhntGl8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"k4suAogXWmPGik2NeoXnW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"Sr9YOVdaxZ-XwCxSik2-U":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"lvXo11w2pjynW1DpXpuYk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"rZTXgI501LhsPCK_Jjn5L":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"5H-Xj3yEtRagBKLNhr6Yp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"EWmYihTih_EV1pSKZHfKg":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"AYSoiFaGmIs33C1GBk3Eq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"cV7RmHRLgqB0rhvuy6YAe":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"QDg5Nbv5RTMpGgU7ctE8c":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"DoE2xkO40cSA-s1xOgZ6b":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"XhpntKMZmBbvyBjXzSVEv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"ev99nFj8z6Pzqyxsg5mew":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"0byAP9CBFMXbKZdwEUdlt":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"LxpEEtZ0mWjnFF689Cdhi":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"2GEnRkBVtpAnVjtt68sXV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"VAhekPgmPMplQtZpW3Wz-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"HZG9-zRC4I5gtBmAvZHYS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"TA69OENRDESc7B41pEZbS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"8acH4mZ3OQeUdh7_AfK7M":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"ZZM_-4bDgJzIkkANaB0BZ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"Y12kpcw_cR1uI8UnsjYHA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"lKjCTyy-wUnVRB3h84BAF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"viBycBzoihVeqTAM7Fc0V":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"Rs8Dp1PwAlRPdC4ub645g":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"-XTuZsxdxUrToFMXke3PB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"e7EwMq4NdAW4jb7t2hIME":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"Ag2szEbJPy08G6DQ-Enx7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"VvcbxUpKg7eofU0Z9ZeB8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"zHfD0OjmCZN0JAVJNk-4Z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"FU3_KbROvtZ_GsKP7nh61":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"BtobZTatIiKcKxWWUrUZ9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"_pyXlBUsI7dxP9tX_zl7d":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"9Sk9Yq2NcqRYZ90rXO5U6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"VIusjsVaTcJgL5f0ta8yA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"6_9DK5CH7wcGV7ifnvVmF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"si3qWOM12qKZgguu2s-Rx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"Xq-bAsgCtztlrKcVcJlGk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"ZOqZAaRJt_YLZXURIKIxJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"Ojhff2g28EUGMFAU3zsKr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"Y6IYE2LzDt4ThoSPIPEYJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"ny6M2eX0acdnLXHvCknUM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"HvNRr1-1xehDiI2DKhSpW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"6AABvp5CpB8Yvk2SqYG_H":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"hoRW1TlkZAZjfPGihTcZj":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"2BTtg6Z9F4FIgEfKM3SUy":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"53fs28txyHhbvSV1FCdTO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"g_mmXcX5_2MACHcocFCe1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"Y2crwPHcVyZYMFD0J3Xm6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"6VeAU4yYpn5EEYyAwKqGF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"nrFJ3byf6skcqpkowqVzH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"8IMAcD_VE8ta8UPTpQse3":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"GDRkigDt00URWnnC9YVza":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"5fmmjFqGFsyCLIbV3ItZv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"UL0Ya3odgx5F5dFMJk3nF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"2vpxyluWAbwhkGRyAA5R9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"PsW7nlXjTdBdTnsOWbSYB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"iEfaLHwVqkdeM7DKQP9b5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"Eb8qFAnUMwiCRo7WlizKC":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"5Cpip1kLn5JKBlphCSlWS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"J5_B-nK1uWuIYm1tPlyAM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"xSfILCwSXH41mwId1rYmz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"yErhAYlF5arc0ke_3h0eF":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"DyGUTAJyZMVQI6o8dN3T_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"yB_e0p9PdTqTqE4lnRVxr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"QeFl5S1ttdf_-4boKFdFA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"q4KzDnLvYPXVXH3oYZ4Wh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"jSZUXZKUa61s7Wnczsvz1":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"ToRxUY2QggSvOxZEFR3qv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"rs7tU8iaexoXPqKvRu_dl":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"OZddtXqJG2XhE8rbbcj5u":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"zvv8pogl7yDuJSk7kqPRm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"RpUTE-k_LnsVIKc0HXbiH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"rrP4OgxC9KO31zWAIpxzT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"M_vckiDN38MlLC2z6EJny":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"vvNAv3iC9yOs3tGj7SxoN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"9tzDmuQYLcb8IggvDqOuP":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"GSfYIgV2bEWFND7gFDway":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"_zXkhYBD17pyC7INQ8bfZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"v_pzi4hTd7nUkfNYT4qtg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"_26ywJwJyhJ9G7pwXSiBd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"Hxlpj0u_pQdRR6OQIRqFf":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"fWscvNDeDW2WRdKXWedf3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"kVo1wc6-6jgPd1i2VTWjB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"5DsST-sPibCfHQZXI5E2T":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"j4CYrn5dJ6vgEcbWlJJrb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"83GJysax0Nq7wORlr9lOv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"23ZmMzx-KqMFQoNeSBgmg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"fNxxA27wD461gR-Wjb_2R":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"bJINaapyr-OcH3Q-6jOyv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"TVNzzKOf5-fLeisG8THpb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"ACYbUlQxEW3K9fjD76W6X":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"rgdoQYj8obS_ZjiYPJyOY":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"eOTPbbbe3GlKf4QImNVks":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"5MWQOOe5bBccRBM-YEJj5":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"HHved8Yh0CxvWfblN8Ndd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"994NciS3-P601rgJ3ApWN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"kGmmLQ_F4Ev-xCmXisv-Q":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"2hYR8nUAGX7Vu5H6Kwe-L":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"sjDMusL4bUPFIv9FTOZN0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"eKQjVezmcADqR3EG-qpQD":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"Edm5yOyFh74gUfn7vVSFd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"wJ9rDCNbxIbYWdSC26VFN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"puDj3TkECKwgmWqZ2l2hF":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"3faPfqQX49wh7I8AVVvBf":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"I0UXqRI8Dd0ziJe5HSdFJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"_l08DlN0rQx-hA4F2w8tL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"L4ZSU6zTSxn-IZnOwPPJU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"yXa4fhmM4W6POif9RGVWA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"NBBFI7X0aa2vN4ucO67x0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"iJqx5K_on5MDC3N1BfR_W":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"EcUOnJkaZiFIlFpcz3dVb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"Mf7AUEd5qg9H6bOBJ5HQB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"mSieO6jV8vJb_YjydFxJq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"Bi22WmMyIcqTMs-V89Nsx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"t_XcJNWqiP1Mgpcq9HdvO":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"bXZ6xlUuSNPstTlKTpC84":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"lXZennX4he0Twx36OmlDL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"SvtN4ggfAUKCZ9hkxOJXg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"gGrl7P82VEP1QnWfT0t-Z":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"VnSewzABLYauL2wCXIfOV":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"XXdAOOZuCSfrpZu3sfRAj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"E6HI5deqAPLo9nfYMb1AJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"SQ0fxw0eDvGfMkaNofZtc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"GAAXJXC_dynhqPXhkbQfL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"dGjqYPrjZgrDQo73mOBUH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"InYgGRSea5kxn1MAbYXvu":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"xjV4FVKnG2l43iBnJA1ah":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"pRc1Qqh3y8_8ngsHuzHYM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"_YmFZvVvwx9fHV9HAElEe":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"5aSDpo01pSJTv5LWWQ-52":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"19B6UTus2Dyw7-JZZ_Z3P":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"hlmmLf3aINDlqJNJ7aicE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"dOb3vtdubECX_sBECeomH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"ff-U-4t3eMFHfdCfb4wR0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"qoInTn_2BsTGUvEnSfJYm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"iMUGFUpMX2ET974lAcuOZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"-TUc9jUlX4VsKOSPcPAla":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"s9GmUIL0f7gKHsh_oOBdm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"wVhS8QhWEaBHXAZ2Ou1xj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"Az5xwBqiwremFlXLbsFJe":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"MUFOSY2g4_NJr577l4vsx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"L9HNeqsrCvMFRJ6F8mOyS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"XKEgr1dIfc0XldX5Ebjey":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"q21FATyNssFy06WnFwuOB":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"lDa0FVjb9UA4HorpgidGc":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"wSG3VzMwRxkfB4iJvzIUf":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"9DHHpElE0cUwHBDL_AeQV":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"-DKwHLaSHW5i58HnZgCY1":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"1AcoZnMwCnlihSd_LN8_8":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"EhOM2GzwIef3itsyiqES7":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"QpdaOAGupLiju522fnrJh":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"_V7cWv6Wb-8BwUZfMnPPP":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"B7rlR0xMrmN8zD0eVqmAL":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"RhCiB8Pi7EP40TlGzRF9x":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"SUioyzty56-_ZbxGRn3iI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"8nHmjTgjadwSwtBMtrycE":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"VBr4poJAKJs8ZNNV_IrqI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"9TtFvqmbSBbpgxlgPFGxQ":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"zZpdhKR4XTM5PxqSvr9H4":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"lVP1suY5oAqZ2EJKiTDD7":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"dEyBnAlLEXe-K23Kc4mkt":{"uri":"/melonJS/docs/melonjs/Entity.html"},"qI8nkzm8QcFlc6lDxuPIo":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"9lVSAL_gTD2HUEzALzw0Q":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"rFf4FPL8N98KmeZpVScip":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"lwq1qAeAvCEn37_Y85klY":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"ildtcAqYgkX5spQm2m0Fe":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"iGlqj7dRtnFnKc2vjX5Zn":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"WTPU5deQV-B5t2pP_Bnhf":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"Br2bEaNKa7tcmv3WgAgXw":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"dsIyYMGa1llDbfbl8mDU1":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"iqb7J-dZF5nPbaVuZO2Ii":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"KjgCs23AE3xGc4i9HNczo":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"PipLd8nMPCIx1asFznxCM":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"5ttisw-I9j8QfkrIWhbEU":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"ONYpDCEDIPau2eMMWFOwf":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"xRtCDnEJYuvifOIEt-0nW":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"Nkg0-4EJFvLjRBF7OTl_H":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"ykFCShw6ZVdtWMLA5j6xJ":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"ScsTnPKZ8Od_4kLP9WXYc":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"Di8cpJkebOHImgHud7gO5":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"t2VE4-L4fp_SdZreogVEQ":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"axMAm1e6kfMpL1SN1LrGK":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"8eRDffo0WgG0T3BGoiIl1":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"drDFqqyiG9fhTUWGNOQ5b":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"lFhbAwYmn6aLX1HYDQTnC":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"580dclHljheopykv-wcQv":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"o-6v58aV1ltZtQdwa2A2X":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"oy86BX_-bs_BdSVCSgLOM":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"3jsY6yqR1g_qbZMd0XqkL":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"st2OD1nJB7VTYEFw8QvM4":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"l63WxM3BWAl6xNQ7rPPnZ":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"5OLx58Kz8syxu2etFT4Ou":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"aq4mkmjZd6ytkl68CPz6h":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"hU1BPjJPK1479X7KZRqqK":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"FeyP1rNm0d7ywy82_isDW":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"n4FJnZ_24oZC5CIxsPD1z":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"l6p1OXSr6PFOCZNSHOM0B":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"mSEQllSo2oVVMUk3bnWJs":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"jCgA2Sv0wJ-tTvtErgLVw":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"7GDjJnx5v77SabCRB_MN6":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"_78a7hH2eVdeakMgRJWbO":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"lqI4E9NEX8TajSnN6dXa9":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"zFhCThmDZnvioqG7qpkfc":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"ATTRKilwaX7KdKu05H-5q":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"rczr8WXb4eTXzB73vTTU1":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"HRd81jzzz6Ulf1-3YzrpQ":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"oEUPsXZhgZAJjMZiMKLdW":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"z7ok6TbW2ibLwyLkxog6N":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"xhVb2cMF-NXLG0or1N1EQ":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"RbiLI8fXkSuwdIQpguK3u":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"YLhiPEkIUOQwls1pjKOP9":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"FKnjKQDIdYjRU4FMuikFX":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"ZoPLhVlLX0jfVg-NoX3o9":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"A7bxwgfkA1gW4SyUTpiXi":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"8Q4W4aUATNfcouB2XxPVo":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"4GzUSS_Q1xwL0aZMQn-ub":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"06ZGT1d8N2KP4U6OsxW26":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"GqFXXqtmTbjLiZs--Kvbl":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"pLZ8YA2GWQpSrWEs1JLyB":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"XllU6JMWjzfxfBhH_mZv8":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"UeO0EW--X6s_cFpX4I0Je":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"GMu0SLu9smTZPEp8FTsgM":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"Yt1wkbGGnuoOJiX_FWmDA":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"fZpmXDzs_Gmw1NYMjSd1-":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"RsfH2lvsXKenEhCK-frHv":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"3cge7QXW-ZHti5ES4CHA5":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"YQl42y0t7iZaVTxy57lcG":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"AKq3RnLNWTr4ObN9s4fEU":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"pzWGOlL2tnuvwfICSg_Cs":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"DBPciVYEDrVEu8pAim_uQ":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"EE17lr198dUfWGwzI88W-":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"pyN0ETn2mLDkTQ7ukVeEr":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"fbyPrat6hX3cRpm4sOfze":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"5K9D3u98LoOVQuv8_rQM5":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"KzqXwotGVkwtOuFsHTUQ8":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"lzuVRYwwAErL1P05V06Tz":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"OZThR2dJ2vO9Lya_Q_OgP":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"3bjWE5PQlTMr-yJU4fuiK":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"5LcyNfRYCfY88tqC6lT-n":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"JQPoaDV6Di9ZNJXqxwpLW":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"9FbI_78zr7KHSVQKzSRwA":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"8hDbbufnIM-U3INoxS14y":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"rByW8qo_XOi7Mb3uJmAws":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"GnNs88L_AGpuLSKO5Cpt8":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"hXhfJTGqJf9dnvPYAk6bs":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"JxP0MNGCJj75ZZFPXVS8l":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"XlrYM_vIgLj3z_HVP5a3P":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"ZXLmUzj1a82_vGnHSvt5J":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"jKAdhLDXiCrIjZ_H5AZg6":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"wFirOfGuJW5EjL9EW8JGp":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"pDOOJR0XFx7Bor7-4k-Aq":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"I1C7Ge3kko1gPw5xQsiPC":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"vwtEzlEkUS0ApT3NRIYYR":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"ltSbu7aeYTDwfOXrWsAo6":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"JV_MZAaPllsz9K8HLryJp":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"vLiO8juhfJehstLmriecE":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"PKwcV_nAfTfeqfrWIETbC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"YdXWDTsIq3st2eUUz_R-g":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"8DPRjLlNg-f8-BctmB6dW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"BQW8lnRc-ywjLkh-tT5LU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"iffrabSjEDWGOsuEs2CA7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"qQbibK7MXVfHbT335q56d":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"MvrBpDEwOusGA5Cn-tYQE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"5qlqswVsVdCmAxtqDa5gK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"YAugsbG4HgLdYWHUb0Kil":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"Vi6J9xeNHHiCMJMTuknML":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"f9DvWCKhJEjV7Ulsy_l52":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"5YNTdgsHkMyAfkV5u8Y6U":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"NgREesJn8i-HYBCNKO1z6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"g7o30cscZLlErs5w0HpPl":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"NnyddJjVKCsQ1MgFlKLJj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"FtPHBAPhijF9rE-FQKprb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"WqDksiTyNDU7NgYGaX7GR":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"Shn1iybHjThXxndQs7HnE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"OMVAR3kdLC3DdwNm5BBBy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"b-kmmonKwU8tMPK9nxG-l":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"dgjHjcqXk74sQjxHUGUSW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"ggzpV2Gn1jJc0gydke42w":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"ut6_T-wggoWZpqh3p06Cp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"ZqwYZ9bUFgine_758c5qy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"AgtUNyOuZL7kNmbEMVKxG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"nFOXAcsw1FwGHmd5X0xW6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"cVp4lNfkFEGqjYm15L4J8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"OqrP0Lpvrqg-mFGT3monT":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"NuoePbfOcwhdaVB3zYpVY":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"2awEd91-Iqfz5nZrLmBy8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"tuPVWmJmAjWtVWqjBnXCn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"XDlqztIhvYeQHI9nBTBZ3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"ApTcXOaK5c6HRalKEYQDQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"LFFNPdCyAFc8t8Bl2Q842":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"S1x2F-8mP5soiErNtdarh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"u3IQbARZOFKUWcRFOHQKb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"48QcBpe0cb4VdczmT9eAB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"q3nwuEpEv0KvhKqVI1Zkg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"mYFN2Oo4vsqzXQNdeVsI7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"J4Jm-APLpU1z_hKyLU5mN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"NSBENcsoNfMiw8cUStPy4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"GJ4DAyaSp3w2eJ5vgldk4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"U33erMBeFXlxKox2Rr0en":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"lMj2cm3JSAJEgQUPsLqsu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"vcn2YMbPRChkmMnxObN2-":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"hum6YKh4AZpBwyKs5D9ay":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"-8CgvvmS1z5VHWKKA3G5K":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"QjhZXl3eY10sHm--PgwoM":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"rPudXNaLKvC8vMXU_HxyV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"J67GcFespVT9WWF-VM8q6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"g_1C0XbPhSAr3c-oCSAKZ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"dUtIy6lMCHoppFd-eJ3ys":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"dylAe3U0vfDNfM9-5H0zI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"_I5Oj0CCfkllqGxxDfTdm":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"pbg8PjyxyGclfHeMwEpp3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"G8hZaFOCIlm4BJVZix8DJ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"fxckegpGyqs9_f_INCCSg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"c2GDCclSzagFWOv5PVhM2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"8VQ3-w5ABL1v0zNsyfMv3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"BRedCWTNNwyuvNEWc_OYb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"dW9SQO7bArCW3xowczsqc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"D6cGvW8e1oLBS_nBa4YYw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"J_DsodL0PnTK05900JRs1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"sx7ic0nEicU4U8KAyeyXI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"z2X8Drz-DUCPz1clL6WNP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"YNofAmAWbVDPduH3pn85e":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"lDOY3FXDPIUKnVJLMxpEO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"WRK45Mug3WhwrcDry8rPY":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"mNVFBbWEu1WvjCFK_fChy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"1s32tRyHKKEazSuArP5E8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"ZexAdrh_QveHINpdSLdhO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"_Twt4donQUWgvFwZsWCC5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"24_JTm39o6MHWBmLIkTmy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"gM3QOil3JmjKAEjQAUoin":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"6ajsWTgaH-bWPDYEatGXA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"WHt660sdMO_8EsIl_umhI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"vAQImuy0g-5ZnaIhkrtyv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"3O4QzkJqRyEgRSMpz3t7w":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"EMh_CWsTTc9jIhBJSdedn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"xq_C2-wNEwRkhCaoMhzgM":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"h5eThZ8L08oUoPD2OPKql":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"UXBIg-vhGX62tSoOSb-O1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"bC7BP8PRxBRJZOMy93oGb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"Sy3UFq0AkpujL1iaFVNs_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"-3lT3PIR377gFKOghy7Jr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"PGal-yFwfeUUzp9WXvfwh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"7zKC6Li7gBZcFZtpQ7Q_U":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"G_zr8xBSZR-qr0fPepfMX":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"TBZ0uIpDzQia-2flHc5xS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"oYQ0yu8JXZd5gFqFsgwcX":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"Sd_MCDfrbOgcfJgoFBqUw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"z5rr4hpN7wOOEouiseEec":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"u3J7SAvwc6imcWras07-W":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"fQvaZo3i_88B6sHPbVYgd":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"znTsjZKYdcsXxRtcLatNv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"LrbRhYWRWOwJ5AGxg8N7m":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"WRtI_hbnzhKqsS8VKGNFO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"ZWRIv_Oj7RDAER7MI8E-X":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"Gf0EuW8zoBy79-9LwYAQC":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"dnB7SVcmqGDOEnqpz0joo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"1qHTXZtsNil5hjd8TKIHG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"r-ToWa9RMuc5CGKbkRvZw":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"lS0dA7r1wBdf--eefmVSt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"vUgc4C4oTyQ75Xe0B9CV2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"Uxh5goCbA7pnUOM8tcKhb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"fBt7pdXvM3RRt2VbKflgq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"Yab2qRE2EC52Ee4IIWpnq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"lg87y9sxl5SPGAtV6qIyA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"EeU0qPbFBmPJqNTe5OK1X":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"p25hvIGcMLP_B_u53EV_H":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"Mdb3PoWBL5e-fgdzCHsV-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"t7U0uCbHuUveN1J3XohGO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"2lC_KOEhw6ftq1-6EnwqS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"iw7GbVPG9NnDtch9i5tXB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"BvDHtphqymZNn9-Jg4ick":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"JlFAu6vMRAnHRlbBRZrRP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"qoXEcNQaf37wrTmyJbhkj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"mu4FUiV5k9xnWZQgbpW-K":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"-GRJlICLpYau4GjT6UwcX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"PQfwNzrPcILqyQ7erovdf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"SXY7D4ZBlfyFQ4_YsSRrx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"vReCBkxA8uiuVA2NzqMjT":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"FgwW3vgokyXErGlzM9SED":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"xhhp35s_XFichHSoxSitZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"PG7DMFky0nBo8uRpKSzND":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"pEf_4s07QgUTMGTRBk-Jl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"lWGYf5Oy_KXfbN9B4cp4W":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"opJrJQTosnNB0NWxapfQG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"sWhVr1w3KfpHBixA-NYph":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"gbjcsUC9KsX5tFptGaHz7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"kMnYRwXgcpkDiO2zHVfDv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"GT0o8L1jw1Sef6wZLtmyo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"M7vESUMUIYc1AawXacl9S":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"zF9Csb-JsCuLlYR1sGkED":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"dFBLI-qfPkNE1zPWC7hmJ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"xUrngDTxJvfIrf_jXgsO_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"bOVWDzxESfDYmLAtyrNqO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"qQGJ4cVRv7ddFpSvbKlCr":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"ACYhKcxAD9qPZtvI8JDnj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"H8BZGzz-uUNOSgKta9r0I":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"qVeKhqxPiczs7xH5q4u-M":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"PoKBx7APAi28cAbgy53SV":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"2EHBVC5DD0xOY5LheFT8S":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"pbMlrQHw7Rsn5PIwUyESt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"k9G36epRI9_oHBsfx1Kq1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"Qe3caWlgeHWX58FKqyMWY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"8oqSsOix6FRq5fFbawh3M":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"isTIw3MQOOyBdPtDeTH2X":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"FB4_11vgSbBqUolxmHYgx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"-joL01HhqfFFI2PxCXaCO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"KgqmE3H1xNijyzR414Ykl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"XVWNZDe41U7LSa-uZ5BtY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"o4Afi9XvZT7jPO1HoTybq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"CR9cQlCZgomGHnDdRNKcN":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"1mNZL_5gWLrZiTq5ji1jg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"Y70uy6txncYN5vVVA3Nr7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"wJw4mrctpW1mcvwAN1woZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"uQfHnuuRpWi5rveDRAYa0":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"PTOecUt2trAEgxOMXVCEk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"Il7XVRutNcb1ZjWYUETNd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"C-7NHZcvFnUBA2l9Krv1u":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"Oe9ofkVQ-wDyqvnDbBZFo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"6L2sglP0u8u_s5LL9I8IW":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"MbETj-gZ2dz09mcq87rjJ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"_ixKiyrR7KyA2oF0CCGix":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"o_6rxP6QFxGtsGkdvsHyk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"X-jcSU95DkK0E35V-FTv-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"HYHzwDVtvam2bqiWQ75Q_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"79P8bcvxl9Sj6ULBQrN_R":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"qwbqWmzmo3Vjs_Vp_l0_D":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"vvJonMuFJGL6PGRUNOJcK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"WW4G4CL3kCwheivut3f8y":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"xZ_yPHQzZ1Sgq4-uA3XQn":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"1-s-sHwNJ76YJ6x_fTQhO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"kN6lFDVOTfAlSoKaXmHAO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"ZgYX3lR4JCx81Pyprhe8i":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"69q4Nox09RyF7JBrSWJK2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"OV2d-2bvvGneeYcVLKH1z":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"dIMZq9N5pTf81W19L3QRC":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"z9H4DTwjUXD6MNLMQ_HBY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"H_Mtfw2p1sO1MiKi670kA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"vGVetvIXA2fpfrLvZ5Ngk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"ofoj3slVqoGtsUNmZjAtX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"8kMQ7USVQmZyzOxwUVGP6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"p-C21plfcx38OOAk3sIv5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"6YkvTh9taQbtcRGT1aSER":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"8seT4S178GliDiX7DoyZC":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"P_-uY_LYvEZwMmf_eSjV_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"9jMXeRCpXCRMQOJAbbld6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"3mSlYAfOms3MRJP4zSr9U":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"YglxW-pUabfKAiGLgHssX":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"aSaC1WjMuT7tRqZbUw-Rz":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"IhalYubkrRXZyOfkHcBCo":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"gqQZ5H7IVWHupJRf34R2d":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"f5IDrmvL54zqbhvjWZvYC":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"hF56bUAfR5Azjoyk7irrJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"Oyz7nbaTlLdEH8FrHomcc":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"93IK0jRb90vjqnqb3AaBZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"iHq0hqWT9vYEaid90weO9":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"65C-Lbstkl2i3q3QL90iZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"aQ5MfkC4PDWAg5S0GGj72":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"GjPuOHknBGfH2vKugCNxT":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"ephNJIV9PrzCJjxdIoDW2":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"Nqj2bmgCFdasIpyRRRvB8":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"h5RLi_b5XeT_v5PVy2vM9":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"-TIFSe0TFLtdZX5i7eeMY":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"xfpEOETkxoQNgFk0R26mJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"uBp3y6AzOVgGi4f41o_PQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"E4QibsW0uF1bEHhEyz7eX":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"UhSNqSNL3cfhnMQ6_vA8s":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"6fBjdq0-acklHhwx_EIBq":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"1yIS-d1oyGWjG5KMGXIpr":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"mwdJ57HaONZ3jmVwRZNAK":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"mUGHV_wrhh5Hi5gKd_r35":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"fkzdwfzGR5j8MpWMbQCdR":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"qlxxKuhOgljg1YBj1i4N0":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"oQmW-wXigaZGyfjE1YKx1":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"WwC7HoWhU_FftmEi2BwgE":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"KewvFLPfujNNMoN3EnLy9":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"LPMPsWE7ZnvtfTHIrDSqy":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"tYvZQYF46iAEagwyM_BtY":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"E23mj_LC2OCX8AnDCw4_8":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"18x3l8adSOsEGiUIjUSgb":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"P4JOEQZ2WRnroxpCTEj5A":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"4PAPOhZiM3HQusbkOtbu7":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"5VsNA7-v8SXlP0j_ErbPa":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"qQeE-hs1EwUk-5FG8GkfW":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"On9kiob6Xp4fEijfusR2e":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"-TCYT9JzNiTeZ1Cmw55-n":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"of4-TQ32r8hiISyjH3lQd":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"JvHojUnfFfl0EaKF6BGAt":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"EV7n3-Hfju84K1EzKtGto":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"Jtbygc115eYTsRwiVAEQy":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"php6b4nrXrVCe7-HOy9QK":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"0hEDayKtZjLasliWp3UzX":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"70dnPKehJa-GchNWDJblu":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"jUVekmbBvc_GOUaHsuvKk":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"YAIL_-c0pMqQKURxW8KL-":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"aiG7DvrI7w1IXOaNvBTW8":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"s8qA1puAJ0JebPuCN4OWt":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"42jy-bFPIEu71s7oXXLvw":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"FtNEbj_NoCclywdzhkZgq":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"HELMV0xB0l6fl0o7SDK2X":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"JAejIm1xI_sXA5hguwlvT":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"2x866zMaB7hTl83YtEmTi":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"0nNUam28kahYLKkiRNuHE":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"xtVuBu9dyTF0BZy6EtTpg":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"ZLjaQmxzsxQZ-4pbQzsZM":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"MpvsmbeTOwhRSVX6Y3-l9":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"vE1wPJtkn2m-f40-l1ShJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"pcQ7ycdypX_1r2_FVeUwr":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"b60yy9s2Zlet2hMvmjWAQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"mefZDR1YHJi6iNvq1PbuK":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"st4S9HnokzaOzv98yre6L":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"WUt3pW7yShfQf1kCEfpDF":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"nPcG14my_oFgHs3m1Yc58":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"aBeIoK-osjrqnj8gQzzR8":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"TMt0g8oJTa061hMndRf5t":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"waCRBFLZmLDX3eKBY8TZq":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"I0ivgOoEo5rjURM87nHzP":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"v195jLT45yt0WQQise695":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"lRN6OGPaOJFmhTUIsnWLK":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"24rdBohbFRFNsyPE-sGBp":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"N9qWIayc8CaUFpEM1toF9":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"slRQemV93RhdscoU3NkoN":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"pfsTW3portd8FujQt7SPz":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"kkANEl9LC2d4ZQOQv1yQG":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"oGbw1OCpjrivurWQVzWhN":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"a23eqFaQs3wVZMxt2jxmA":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"P8ycN4WtnyhSNdsSxdj3-":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"Z4ODivBSr1qIQr42bF0-b":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"z_cC_0HXwOL7Itgw1eNe_":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"9AlO1ze196DB_5orfiplP":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"WOSRjET9H1EkdSdkHrCrK":{"uri":"/melonJS/docs/melonjs/Line.html"},"dvyLF12wNGYiF8rM6UPcY":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"PtgFhTWvfnpcyCbYssFzd":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"sUdfakikvyBGJNSyvrFi0":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"rOQIDUp_h5F4rGUTbmTJQ":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"IXSdJsCTBx4rgeW8NYnJv":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"WCFqTo4HzNw6sTFu2ncUu":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"NmOYGErRMcMmpTio5N7by":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"S1pFnzvr_t64ynUW3AlPO":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"2dqX4i0xpQuLOurB95MvK":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"nYEWEtj5TahiF2FA0G6MQ":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"R0lr6Kwqn0jgQZ3Id2caB":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"FRlwH8ZmFzjR4_vhQ8yYa":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"v6kk4puRkog17NBGqWWYl":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"RYnLBeHdya_wh2qAp9IXj":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"4VsfTKCKb3uwT6_w0at8A":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"QOHnAk5gp7vqCWtO-gHNz":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"uaoOnul5G6UGfws3DtkF6":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"Xc64rOMoQGBMtPyVVJNzd":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"LHJJDleMM4qhNYbj5pFvE":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"FhUCcW_bQ98q5Ip1W2BMF":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"1wKg30As19L2UXaO3jSXy":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"ADoxMy8TwrRD9MNP6GZJI":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"OMC8bdonHVbKX9mhoKE7U":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"aEC5eOv9DVG2ptx3S3D-2":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"oSCbWv4RY4wuF9aGyN_7p":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"ErbfAWen_J7J8Ml7_S0_u":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"CnzxeLJ1jahxpLxHYOxyt":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"joNQAQoSUxJYn8BvB7LjI":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"77_YKq5RoEcL2V_L8TKOY":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"JHJ5lbRbdL0eoOcpfHvea":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"Z6NVC4yf7upgahHxzRcEm":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"r_GS3xt6nG7rmU89asaQe":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"kgtISC2GN5dWaWdtanXE8":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"zQlpJypmskInmtQd255Wn":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"RYpjj8h0wXU440IRtC4hN":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"WIKby4DRZltdRBtfrLNfs":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"IxIJJf7_M8AdxAnW_w0-B":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"HhG86nBtzG-OuT_lFd7s2":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"Cge7rZB4HVjoUbykuoMTQ":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"TdoAwuBMcYEWgr5f9A2DN":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"CtnsUCpBWG_3ndgynVsCg":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"l6gsWaYGq6d74O22KR7Rt":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"6f9AJbVOA41qtrSHMaAbl":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"YP9tELsnMHlRfD-hQ9i9U":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"9SiXr0j5t-Rh_fuH0p6gu":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"kJZV2fAAtuWNJpM8H6RbZ":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"s6mdN3yduwRcGCfaBV2l0":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"Z5-U0NCvfQiz_j2uaqDKW":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"3igC1XHYbb4JS0J8udzF5":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"YvmTPZQMLS8o_BlxqdNgQ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"6CeoEoTIblF3CQEILkGV8":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"bYMlaMCV6n9SVgNjR5QOW":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"gRr13q7qioxcJw_CYvEPy":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"trIyTG-acXNaA8tGErpJR":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"Sks-eF6DIA0Zn_NiQWhhY":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"CBZ9OKNEoc7GsCZuhqliv":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"34VGvl8lBjwmytAUZbhVW":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"KKJtK8GecvQ8R2tiaAakL":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"6MeiNhIkRue-XE_eYBkDa":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"PZZ3OJu_UFze8GsyjSApg":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"7jttmeoIW9-Qd4wAqyfxR":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"JMOE3sVPMnfIvZjdLmXVg":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"lgh0vccM3YpQGwXcBycuG":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"Pih_fuxmNd9I8uVTFWMz8":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"va0YYo6yYh-rxETlc8_K2":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"E1u0duxSmuvWaD2YY-Xjy":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"U0rRYXkuMMXpWfZsFxP-5":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"1f_3R8gewe_oL17KqMz0c":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"z43esQJ-lSzy9dI4PG4Xo":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"ovV__xSfPtum9oJimJDii":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"e09W8SAgtvZttpBKhx1Dh":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"_pugBDT8Wkm87aZ4YL449":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"mn2ocj2egNLifAcPsJ67e":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"IA9E6kqXz8A7NVq48dg3F":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"uSb810BZeNG3BUXCZDGUU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"5M2AM85COuF419HmxeJ6I":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"D9YZJ1FwgIAhnmNGRufdP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"hRV8euDmB8dygxyrdLIeS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"y7Hx-66TtS8u7oEOCc1Ou":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"XrFQuFXK56svH1Q9PRK2v":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"y96H0dliWkQhcaZM5_5as":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"dw-gIReimejl8Hp1iDDdi":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"tJJVuC64WRJ7YQyXuQlRF":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"5mPRsIbgac_1Oh__dZSNF":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"9JNDORa3-PMt4GGNzR8pn":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"dylWIyPsrOYJRuFfh0h2r":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"mfcntC5oIcFDpBKGufbLb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"n5F7clwx0nHkxsnacp4Tu":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"1Xsh-AtPCQfz1mAvoHOcK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"atk1QoYtigIdXmjTKiu8u":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"djo96mB_Fs7rrJ8ZAgQ7G":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"ItfXN_WHqodAEoTK1BAXJ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"w0RVseBkf2sWem9PL62Ot":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"0J_wg8brZ0f3UsfzY6YSW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"aPixM8q6FRYpaFssriIWY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"awk3advACerCX3-9PTTP2":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"wiOyxtQMy11SD8RIGr4lj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"9wExNZ3F70A9NH8m7M86I":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"9L9jzEpSJVR2cCA0g5P0m":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"u_6NABtEm-Ut47bJvYtzz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"RktlCi8qIkOzgQFgDS0Uq":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"DNAp6l4OXgiyvsyjVcDNM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"9rGGoFundNQX7V4Nn9GBr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"uXxxkHywNtgJpAludOHOy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"7K-Uot3JIOgnfpR5gri8j":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"h7aMxKbvj_-LbdL-dRlJE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"nG_HzjfEannfQDgvznwbx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"90s0gXQlFc6qSww2M89iX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"wYAz2O1ouYWTxmv99ODsO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"0shPsEjQh-7xhLUIscVQE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"B_HAlQE_FgKmhV3dpkyuE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"FMXU7yrdHa5iNJx7bqODM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"7ejhEPhzsWjHyAHoE_T5v":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"QI-Ub4tp2V-vTqiJ-TZZZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"DenkdyME-KK4jMm-JIEiw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"UxZpsw9KYWpyBwJbuR6fG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"eyxWbIYwAYOg4Js8v9n1l":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"Z8cePKEOCwHg_o0I2-JdS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"0_i-y7_BkUhgQ1U5QVzud":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"7VoWOEsABhPk-pTMHplGs":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"s2EJxyFP7WDR-o-RhjB2e":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"KWR65FlTyVZg7_l2nUTqH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"GJDxRfA6Pb21YvVMLtLHz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"3wOYFqNc_RaAO4caWLwhx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"JDj2j7LS0_818ej84-TQY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"HJ6-6hVCu94xYZpPGl0xE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"dVi50d_3r6lP3jqvvJygs":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"8Y8poPKOmw7jzQ1-g8Zuh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"1Fx4HuOtYgXHPy0nxSzFx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"uzFEEQkBb7jLnfskaEoHB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"a2Htg4cmpC25EvQbwWXHl":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"gaD659WE5dkf-pBGkmfwY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"upLGpgwZRv0IJBhi3Pezk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"OwI5XJ88sFEPtlMmnQw5l":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"N2x-RmFnZMBxckSsb2kVL":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"6Xuu_zwUz2TD5MlcsdoKH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"3sQB25mx8Z6QuyzYhG7ck":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"fLr8tahIc1u7Gk3Ye1K3W":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"C-c2Hm4ADV9VDzcRpcv8J":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"4ROAzFCOfyPsMlEBU3s31":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"w3dfwJxNJxmA6s5qocrED":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"ENQi0hYsVxQjmvq2ns1gr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"eXptcPlHcf4XX9QREac09":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"GX--hJQ-RyZzAJi7H2aaA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"Ab4MVWaOtviI-5hx74L81":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"dtWmoBQ-6X5MsNllwsbrZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"S4Jl1vEU9EPR1PduXuIbe":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"raGQ0wjFIipJhbTOLnBqF":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"QXJtiWiBtMi6szHo5j599":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"doXyuTBaQskNR5JhVDjnI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"WWd-6OnDNbs4WdxR9w8ru":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"2NNI5mnnBatEV1URdLAKM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"Q90vOTQIZSqdRme4F_vaB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"OCD8Jvhoze4wqVpvY3_SO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"n-GXT33W4PR_aFAZgsEMy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"RqHi-lu-TEJfyiNODJYNt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"ev5DIrWvc-LYnPXaur9K2":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"0jgMMCJDhslL6w1c0gbqu":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"Wo6S7_CZcxJkmgtkxCRss":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"0hpvcqhbWFDfmloN7GHsM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"Ms2e0jEXI6P1cszdBVJVm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"LslYtawpV_f_6wTk9QaDh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"dXMWgMRIcy0dflgw8d9Ri":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"fkqvYksX57gPne1yVUOym":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"nbuXPLBVYdapZGQw3esgu":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"xyzXIBMRD3Yifrn-sl_XF":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"pk2bUviTSEZuJGeGBsZ-V":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"YZnfkSnwmwYm-_guJuRGW":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"r5rLtpOD_rp9zUk5lhanD":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"dltu4xv3xIApou96bZM-x":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"Tkjibn3O7aDfyGIOWpJSu":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"qAV-wRFPSl4yPRk1rK54f":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"6DFUW0oKifpkY6NnI9CLK":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"dsAPBtp8CK9KRh9YH95xi":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"PPaOEUU9w7PHj0r45yTLo":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"NK4w0_tT_P0puSRO0NLVW":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"TcShCdDWlE6R1zpScleqK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"h-xFQo70rpL5IzYjWNNSC":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"oFxRSd8ESyv9q4PFMULQ4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"3ECesbT5AIYIT3JSoM8n0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"NHRX1DkfXLjGY1auDZtxh":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"X12kTFBS-RrN-4eajXYq9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"Vjo0Sr7zm0IrULE3GhXXr":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"EvgPsYb29zsCKQEwPoHow":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"8Rma7ZTApMsvA9o2Za4NR":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"PgsHyP9xF1HkOGdBhyoPi":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"iV0HQE0O1kzvM-Vt1e0kE":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"UiT2B7VGGZhQMMTOGMbT0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"v9IqtodNA27ZmxQPhSKPj":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"KHxw0Sv9qhSMLB4KsUiHf":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"vS7aNX1tAul1HVJdfHKCy":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"ocGZDxyyqkb_XR-2vmWGa":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"Y2_nb1EDw_8bqCJSa9U2c":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"_1aUy96Rrs7pDsL_Ez_sq":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"xd46yREZsdFIykrwTjJ2h":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"GlAW9HZv-iQ7q2ofoVB5d":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"hBLb2TJbPSZGUoX-Cq_4C":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"XsQKsjLAO6NtYmIVWNOU-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"mSgGZWcEV30-zxtNe9YUK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"jlXeJHrN5pswE-yCargWY":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"o-UhMDdlg8A8uTmwcgsh9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"ReFCpnY9v6wh9PkoEf5jK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"TBKKFkzzH4flvx6ZD7oAD":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"4zwOpylUgb1c_O_Gaz7Uo":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"GK7jKIx6fZ9M2fvxayQH-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"ipZ-2U0f-1dDzayH83YbJ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"z8-aDAO_gc27f7wFE-7mm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"b8QRK7cvgjaUCLgFYpwnI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"vNXqXd4KoLugE5wT6Vnfs":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"EYSTSIMY9tgnE7x5vRKnA":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"5HBOvSTsoKcPprQHauJ7s":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"xzID0834tqK-PWmVcacH0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"t9565YVf453RUP7XhRCqK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"y2Ik77QNPozlrLRP7z5hW":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"_k36gErekxjkhalaCAwOC":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"bW9X4c2644mLkBiZZTsO4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"5ByNM9x8Ez7wK8kHWDP1n":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"fKARCx8X-NZJzCPQbxWwk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"TOt6YEv5IuUu0fGmBEUdI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"DoxX4AIhO5TZo0gqCg63W":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"PiCtNNiu6XwBKefdBobYx":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"5sNRmXjms2JRjKKCJ6emE":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"51UWkTjpduPbhHRKH--R3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"ETORxUegCBFT_SI-Ysz7O":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"-JAjcZNcDP40pi40YnKzJ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"p0YvaZT6JHaCt6o1vyYZR":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"OfDJ_7xbZjZtbb7blvB7j":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"mZqeoSqTFZY0AWeweSaSt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"SrA6kTsNqGAplA6Oi1WJk":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"UyNnzLhkn-cKf-H1DlWWq":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"D982Q19dM5jN_X7OdPnry":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"iekveB1C6X75OfoP1oQeJ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"lVis6acxgTPckWwWMa7J4":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"4hT-j2qs3bSUm8-SvXVe8":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"pK17XoSsO60Anli3bfZWD":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"_lj-y_hJVsQvcWa5e-pw1":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"OhkoLKxAEKJ4j4Iuq8w_z":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"XmIPxIkwGQ8-NQ8-6bQSG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"SoBtu7el_Zu-4k2h7fktX":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"07gVYQcrchxhE8AgOoFHo":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"FOF8NrVnwnXKyLSx0P3k0":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"pO4YCDrdqb7KrQihu8DAm":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"eAJMZaHorOAXClCF9EytQ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"8bXBS8_md6udVsCqQJUON":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"mljKc0pniUspIMZE-W_Zh":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"Cgu3YSwdoYPuuwlfi7pX-":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"L5OhjmBDZ-7qm8AyJiDzo":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"OOIO6PFWPFyH2yRmM0wIB":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"Ql0RcGh8cD9PJu7Pi_GZO":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"49r7FhP1IJbusFihVxUQU":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"iBqGFuo0lfA3nCnvwGqck":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"rXbDqTf1AhWQq6X7fjHh3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"bP8IegrbcFwMJ9rA_dUgw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"czFtVnlyDaqgdd1JN0ugP":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"mQ2-Mm-oHRnnh-i5pgnnW":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"E2N7CMT_pyH6YEXAsff_b":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"ycCzEJXIjcROlODliSGj0":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"Gx_BJLD9JprJF9_ZwnTE2":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"IbIjn-FtyMYgYUlrqXz6a":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"uamWeW2UJe3AJeFtIT2la":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"z3f0Y1iJIg2dyIkElvo-B":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"dHFLMY0MVl5Bzb7-q6fY_":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"LYBY_LEHrRX13R5FSTHtw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"ahDPP7C7fP8vP8w8VsOrJ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"uR20LmUVk3_R_G6uiJq7z":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"Q-tC9_NUjKMwKzt-HTFOg":{"uri":"/melonJS/docs/melonjs/Particle.html"},"hPUeiJTTxaTeVRAFmvmmi":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"KvHOPS4I4QBzt68ninMDU":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"Xo6z1fuD4yLDlCIJKS8OA":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"Kj1TwxED9m7LLWozPHejS":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"SBuZXqB0-Z1aSSMX0pZZ_":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"KX-UCGli80bDh10BgSRZ1":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"o3EFpHRlbxEszWVTKo-g7":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"9UO89QqIVYOcEjBoAC2eR":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"NM5Y14V8HJTwU3I2nvO62":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"M9DCq2imxBJqZ_QNTD9rY":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"jnutb9V-2rkEg0jU8oOJF":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"MQwUnCui-Zi14W2O0eLYI":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"N99tWAx_pUWQK1SFF_cm8":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"Dv3X9OpJyocBEvXDEFLO5":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"0-7mvrFguxCV9AUNZKPHo":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"vIQmQPHZOh-nbb4Nzxlqh":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"RgS--YQ3BJ81kMFLEwnwd":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"kTmLOHWBm2VqskK3w8Mpy":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"Ghpka3hMUgRFWvF2gfHBf":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"0FWRz5v7Rra5JhBb6wVOS":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"dkjFpMM2f2DC5w_7fzRdW":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"0P8kjuSwpIr4DJm5RRIzD":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"6f9DuJakZDMp0MgLSMPat":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"P0BZRcJ-uVbErIrU5Lcbi":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"s_WGq6AkT8nK5Ok6n3RrG":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"KXDriI8Gpor-U44JN6FSa":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"heHVoJvP94QLHsEV5C5_n":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"xmSb1zDdHw20OUz98ZnXl":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"X7X7PPS7R4Z_WSv05ovCj":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"jvfrOm4e_oejnjy-GTR2Z":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"3diTzgwn3mlG89u5Dfs2n":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"or8GrkEYQb90DrRkoJvJj":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"SZKUPkbG2bfXCIsFUJqWi":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"zkqqTC59cOBoZjL9ewzsl":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"nfk41eDlELHeVeoI5Im-w":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"DTWvg6Dwotu1XJs1hwIQi":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"HMwAPPZbs0EdSnZ1HGyN3":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"fUlZ1KS2Jqoi_tpHGF6KI":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"ySoFBxRShqAFmsoiBhUQ2":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"frV1YNfD83Ilh6AjdPz4T":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"pEcYMOhT91zwdiPiVlcJY":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"9c_b1r1B-MBVhQpypWJ4P":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"RFoITBNPS22iCq8qjFSYT":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"NKyfq80IZpBeGALhqvzQy":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"AFbboTg8PU2iTIsSJ-LVi":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"CE6Mu_rSZRLtW-BfZ3jiX":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"9Gteu8ezAhBsDxX9G_Mvb":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"HP6st8YCure9OOuKDGHWT":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"f3rovCDlhtEBU3bViIfhf":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"zMJIRIyW_yIHusvKgeAoa":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"-vdlED1agGR3pXFDo8XKH":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"0pDor_sIBdmpbTlEVkBlc":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"mZ-KBxAsiy7eqxx_IxK6x":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"2knbLSqes1wjEh5hTbwzA":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"McUD9QCjsL9vYiDeSatck":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"3wP5Xd8mrKJ94hdIJ1TzG":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"G_iMcdFQy3qT77y95-QkB":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"olOjaYsNw-mOuBpKbEHtU":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"3YEBrTTC6XtMq7JPfdvgG":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"sy5mxCuZ08TOQq13LhEP1":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"XYQw7njCtltb7unBpPo_-":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"Rxc4-h7-5YWMaEw_XjVeu":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"4lIheiHRjflg5PDWmFOPw":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"ffFtBsGKcURucFAQ0ar9u":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"WoKWI2tDTySaoaFT8JUvW":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"TAaU0R9qgx-QJtN1dtPeS":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"X7zk6MskHKNhfJczC-yX6":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"AxJ41zUa1fCyrIHgBCT_S":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"xwiV7vqJr8-miF9EIPcz5":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"yhCZiYL6i7OX67i45lASl":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"kwQBd5i5b74ZprQv6WKmv":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"kqbHwuUSpUjQpZj5XcivN":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"re0WxWQbMc2w7h8rjgskI":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"zu48j2YLSFnRNaJaGI0mJ":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"XWmTSbXV4xCSjQhGE_8xI":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"eMZaoWGA6vOFFka62TNCp":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"tbtXLOD2GWQ9GCzMJmy_k":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"2myZZMHMstTNZ1Cw6rx0x":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"Q52p6ZvmzEqLMnma9fmrb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"1hywTEPUGgaRMSg54Q4N4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"e1by4eRzfBgaozdG0LOdn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"K3l_P69O4RHJwvYK-ftgt":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"5uLS5VQXZHE6n0hl4P81F":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"tC5Bkggp5O9YdtqUsIl5n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"wl7guQ4B8HLaH6h6hYnMS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"R6HfKkOs-D6mDCwdvGN59":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"ZDMX5W_svVNqz8GN8TQH3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"eGbC0im45w-5L5IlejYJv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"ct6PnKrKMf1u6686Qv-Jc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"OaNJvd23nGBGehdDFIE0u":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"wby7T4UpDrXqrL5aMRlmc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"KaAqj8rs2LxrXPU2n7bPA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"Cp0NMjhJgu0OyO_sTGnmU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"uJbS4lMh5mISKQbS5tW1g":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"15OZ5YmQZQrWRiZFiBgBQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"fGdy1NWXELx79X-0EgEl9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"HkS1tkPBefKjJTMCa29Ae":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"NJLsIjxRm6LcMSCDYVr0X":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"5vpHdckT33OrUyojFqHK_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"ZbiRd44kgbH_fhzWObXCi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"XEdhSO21Fw0XoRwvQQrSY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"9ryZQjDy4DZNkJ7-T-a6-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"uty_hFsTftInvGGgguiOa":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"VXW5v096HBtFG06oa1hob":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"hyCE5qEakT6Lh6xUCO5g2":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"4zCe_YBXGFQ-Q54znVMnf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"2Ecak1nfHaX8b_eOrHd8_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"WtykR9GBju_HjZNS-lz8h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"OMrkFilawf5givyhoPQql":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"AzE7aDHhk1QXeKup-cypF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"-47mAvuQs3lZtSnmwa-Pk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"LkhSQXW4uwBkdfudbihMH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"vOIW940YYBV6MNrtcl-tH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"Vo9Y9OcvR7qRNnsOLCU0r":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"xjxqVye6PTTXAAL2ONCCK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"Dr3PGIpYQQo8X4WgMBVoQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"QXQEJSJpCmEItZhFj9Ivu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"YsNDpGYBjTDz53Z9cUnIB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"_AuPRgARhKyJO1mKNCjRd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"5-bJF89KHi73AAfAcVVZz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"gdO3p68Ry7toQdjAlXKXC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"l2Ycp2Crx-Ecxq3me_ghi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"zY7fAy6BJwrJd0s_8RXAQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"PALO_N8TfXfTe9Y4OjVpK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"VrkJ-yyJIUNx_8SVQTElS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"WYcZ6wv-xNEAV3Oh7Lwsd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"NlRJTWUq2eM4UTxAeznn6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"1gboAYc3AQtyXD3c1lZgd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"z7k4U84OjdIG2GTuotLdp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"u7Z5rb9dSUxgrUXpw_380":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"hdelA6dkDI2oTi2pLvPSr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"Hfl7It_bm03QBNJsLyd8m":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"k0IwU-0f4gcOqLTy9p91C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"i_Vn2dwKq7YxO_1Mt5jQk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"lqkNojWrJVDR_iZCA3wjq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"chaIyHGxcjglvLb0lYOKv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"5iyTKQC7xoaqAx4aevjzZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"y8fPYyS7ZdOZIubFJcaNL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"UZkVvAQBR84gOSyWS_3DW":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"pX8xJxERYiXTjdodBnKah":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"yoF9AOQcwtffylY85EHW3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"FTXFflpiSojHwTFTtnjq9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"3snnCAl9IzUXEDbAd6VCd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"uNPAI3KdaG5zRpO36AM9T":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"N32PQW6h0B5UTCAMm6HRd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"ErcOicIAdoebGcFdCN1Xl":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"movJ984KNLf-yGjnTOENx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"RtneMmikIRIT89xVC0NxH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"GQAHucFvrmP-1Kz8myeB4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"Lsjctd12B5EwwWOyDfNgx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"ES5O-1AOlx4_sUjJal6n2":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"u5vnJCnrMMYDzvhPknzwg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"VfPIidNY1pv0q2Lusf-Gr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"L2tBfAc-VtpNuE8bazbm3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"ZBasAd_S_D7OgFkID9-Zx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"x0Fj_9d-xuJGEXMkVphUH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"uw3aTjR31g4LqEbqHcblV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"THr6VQ1Yy1UGRZz-firii":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"9nW9_VSq0TZS8diwmN2QX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"wxdS_s0tf_CwKxCNxYxTI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"8UbkVYoT803v4NhrEImHC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"asSQJs_CPOCOO40JeA-Iv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"A-fHC7CK2twuRXsAMBVBL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"0QIHrQST89_kPe4uW6oRa":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"sWdETw9wWF1JRmrprw9JJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"ApjJ6tYavlXUZSIb66e91":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"8I81eMphSlry30b_iqgUz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"CXhfigQ343FyKRDGL-jZd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"lzHdudpmsz3Q2D0P5dXgY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"x8XuHctnZel868Lv_--Pt":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"bk42Z6NhKWdMoHAbvcl9z":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"X-8npJkxqfCAuf0U81HGO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"0pBD2tupEBNPg_KR5g-d3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"M2l5A74sD9MYXdX5nuwGL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"DjPDMVu01eeybY3iV1ac5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"117lkDLr8PEhUXGkauEGh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"VMA9Z0uOmTjkNoDkn717J":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"CCZjkVSGRx7Gs0-h1bM0O":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"WYqCnLdbD4y00HpRvnUk-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"L_aKVtQt0H14JMtC05aT0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"NT6RB_V8VNz-5VPyvIbS4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"vgguyOOobCwqxqYYRAF-6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"_b8kOs-rZi1aae4Be1OnA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"gWcxjJqNb9yQhcZD2PCXE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"TfOygSfBPPrS45D-UjKTI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"68GVXjvfNNoUjIJwhyOd_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"V_LH7jW6rPKS02WxwrfX7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"ByPWBopfgObhibYGKxHs-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"v6FiL-A21r7DpNbY0SRhy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"4J9p_S5IbaVaUTIIBHLVZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"PgAb9WZZ0kAlBGK8qlQVA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"_uvExiEqqVkwU5eDHBhD8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"Boo9FYgIRVwjUmvabMSQq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"XsHiXSaH1vyAc80f7w9PK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"zuEH_Hb4LDFClA61Jh3Dv":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"44mYF2Whx_ERGXrsrb0Ra":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"XPAFIE9TEj0rxDioAGETZ":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"9bTvqnojnt1c-VZ7nXaEh":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"FxVF_XXNN3TCWDos55Rpf":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"Zho8aMUfjico0sRHhyQGh":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"S_wSg_AmxAIHRZu4wzNbt":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"Lun1A8-9z-viaxzrVDZfO":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"No8cRSfqUr3Bjkdy5ymPK":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"maMavWoxXqPmMJg0fs976":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"VvXYt-AOOtPCnifEAlXx6":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"ecAYlfu_Y8ZOJg4nQlfNm":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"0kSTV2_TMLZZvxG8r96_L":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"b6r0B2O30I92rW3ca2mIC":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"MYrD6d_vrDj8NePH6yfx8":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"Ne3rhfTo9Mo-Yy-6I3Y_x":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"73iHihZAJG7tKGdYrEn7h":{"uri":"/melonJS/docs/melonjs/Point.html"},"v9ZVEfgHeCsU358MY6Uf2":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"Mf_gLXQwD26816Cakn2oB":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"sl_zPAGuG38cfPyIHZplC":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"s_FM_k8uO5mrOQ5X7GmNR":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"cXG_DXCdxaqEE13B927QG":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"B8oXAPjn0wJFSkhfl1QAQ":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"9sWbRCeQxrRPsbR2HuZEQ":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"NnFYJ65Tf6ZDBUOFZYK_2":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"vVvqlvzUqk3YMn76g_pYM":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"NeRTpT_R3HdC99tv9-v1G":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"bhD3-ssLcdnoIaEpRvoC7":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"3WV9XpQW2Sgpars9wK_6b":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"6OExlouKDIwSqf8JYFGrw":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"6UxJfd1GdV00tgvmCopHj":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"ZYlo5RykltQqZIGulJfQA":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"0a1k3qsTDviSzV1r2EfGa":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"YHdUsCrwQpPMQIGs3Yw9y":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"JWCsoOzWi1MldruGdGXyy":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"nXvsehDVwwhGFBVYCe2lO":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"wSSVmNOqybqkd3m1K75k1":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"fJPqj3yx8DvHASX60ad51":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"tDiR7ujYbYGGlXTge3Tfh":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"ifvXOaGpUwyWWAZ5jxZSP":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"dzs_TuovDAjU0iqPwnOOk":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"GWTxGYa6ANssCE6TdG_iG":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"bJa9HQNhpBazvOTUW4aA_":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"RkGTeTDxj87fgR0zlsPbT":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"ByRp1gRAtps2spa0JDIH1":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"Jg_wOiYbK7ZOX-7pCtytD":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"WjtQGscyOPZvmUQ9IBp1M":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"rpu7PGjS3K_ZfkJ9_Zedf":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"Amr_kWG09XU5wUCOhcXvp":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"z_FLFGJEhjHzLJ9Y8IatY":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"8ySZl4JlH-ESSKxPtVbxj":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"wziVlxu-mZSOM79jxg_kl":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"H-aEa62WtZoR96rDQ7soQ":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"RrcQk7uIv_Du-9M9eiYD8":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"Db7Sh01gZzVI8joa4UbSe":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"5aclAbUo2cJKVSIB6IKCa":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"wFKR5MDWxNFhyzfSYzbeF":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"bdLyi7mEL_Oa344AwTjP5":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"lIZzTmFtyVCjcv_u4E0Vo":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"m9TIAuw3sa1ExKq8BtN7E":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"ET2xLvOhPtmQJv-8WQWpY":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"hXmAMalF-MkcZkrDlkKIm":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"ScyzCuk784HUZec1FSQPr":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"aNlWOdgk1ztBnOz7s5O-l":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"yerV2quh7EClNhY77gkPK":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"B3Gyg00EDmiquv0LjzDau":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"5R5fv1h5Bp8B3ZuATp8tO":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"xnCj5EXxKcMLB_-HxaFD1":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"e7FcdhV1BYcXslv6K5vYF":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"9v0xWmx264Onkr5Ozxb0L":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"oEEirCB4TnVFBfmTdvZEa":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"WYlNzo_KMuBSoZCD2SQdx":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"a-qbE6cBCaYCaBdQjycqP":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"F60lvLr7XRVMSErFnhj6k":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"rRjUV6B_MXUaAnbRholt6":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"Xva3nd2GIOyDYKmx2EedU":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"dOQ7giGOE7ZZKYw5vWlR9":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"nOLl-m61zBNvnw--F9Uub":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"ulueb6HRMywasUBUAs24h":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"aB7IDf4civZX9gzB6iijW":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"yLTBhJq7mKFBL7WxKXLgg":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"kzlXpixXdRwYM3DDoN-TA":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"pdBLceedOaKPMyJQ3ynlY":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"xPhpiJOMfqFkwSFhE_ZAR":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"PdiKC6U77Ei6q7SdCtEya":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"H5QRudxIYj_Cz-Jp7UneG":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"xPX7iR5DW0gaK3QJK8Nbj":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"mu_X-wFfcEncft4yaoG9O":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"nyH_vwXz1afznC-XiIFLL":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"7cdTabUsFgwp8cpDeMaAt":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"aURvsn6l2b3AlW-xPzPId":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"-bNJ_KjwJZAkcRyzNUL5r":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"8tY1M1GLBp1ngFOE_0gVY":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"bHsmPGKAY0pw1yc2PPGyu":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"Tv3c86PtWL7dCROkAUq0k":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"UneVZZ6OdQ60ZgWgcl5Pf":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"hnIt2Wn-ff0jjnrau2-ta":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"7D9NqcyWcsSsxdzu5y2Ei":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"rFG3FT29oLxYhP0DBRzpI":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"gytZRBo7kzEj_CbOQ0Sxt":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"wKeOtwAmdPXSiJg9TVb6Y":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"jb56gBKkCDjq2NxVcObVr":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"hIUEOUsfmsDKdiaoJ5eru":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"K2oKRBOmP0K-RP_n4XPB4":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"7MUSL3s8s1he9z3sMuQoE":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"Pz0GQ7_XPhbi7Na-VECSD":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"YAVQKqx8jlrK1O9JZVm0D":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"ltQ9Yalzf7xaQ5d4cWQa8":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"lFIj1dVc9mUK4YkprMNT_":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"MWwe54yDGYft_v6y6TSSf":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"efckQAJqFYnE3kbvUg7Qi":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"xuoq8pR7-r1U--2gXUZMh":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"46r0XcE8sMkIshzBw4gzx":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"7ke27J-33v-_dllY0w8nx":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"kM1Wmh1jJIv_H-UslM05p":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"NAJ8SVKbL76sAVOY595yP":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"QhrXm31cuPti1MmBsE9Jg":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"7kc5nxPBYdkDWm55_CaAu":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"X7yzmxj4OCV9VVNv3ZNPM":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"1HldbNhR8S6DDaaslavd0":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"-46Ks75ISB6XgmEyjgjdk":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"RLdjQbF5PMEp8uZC7Il4U":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"bYtwIGXQ6F4n9ZJw0NMVz":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"UaepHOTfmgvwBrTgLmnKZ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"HJqYebxb4RjYt7MEJvcGT":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"JoTEpJUPk5Lhmro26U7sZ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"uD-yY4UMKV1UsgEgeIZ3O":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"ezbAgkVIc99VtSmBB0IXM":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"j9-dzgEmTSwNAGHVHsQcr":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"NAvcd3_iTORGjdv-sVdxP":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"twHv6iXFLuQRfHdpwUMOZ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"hRiCKwpNGqNCUwNMo79-a":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"X0isQtCQUAfExZjtV4sxf":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"MVzrV1aiYhFs-7B7lPuAK":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"JrZcCji-6v4Gyzdi5li0O":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"iZfQNKwRGc9v4jfn3rRxr":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"c6gmS7HbzRjhBIuexCR7b":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"MJAk_QKk2B6y7YkziG8ws":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"8xlUATTnXaAfWea6bqx_-":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"78EKBhXqZyudidBumUeUs":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"pzK2VXtR-PdW988HCUER9":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"2fvtdboXzHUPyzEFbv30J":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"OTGxNorh2HC8lI6gN7jA-":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"gv_vO_J7CuyoYlBV6XKDQ":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"Sv4GApEa5PxkRzBw9Tvno":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"nYwIO1xTr0y3xmtXNCySj":{"uri":"/melonJS/docs/melonjs/Rect.html"},"ncX1Jnta15gFeeSsTXAv2":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"4E0BEitcjGbQDRW3jb0Qe":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"EIVROhvH9pq-o0fHEV525":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"5a69sX0YVANH4qmd8B_Uw":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"mWtZTPskkkNBKaBaiCUk4":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"p08As1zgzFIF30Q8WNot6":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"iO0kCAzPUDK3bS16bNDjN":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"fYwz2_nEcsPd1xgiizzx_":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"X019pVxgwpXeubhhdaAJU":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"16LSsk4c_7p0fJL4WRuI1":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"atN8hKuD20oAtS9XjaZgE":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"B-PSXAEW2BaeNYzINPeEJ":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"mR6vCjPC_KVrWR4eLlr0a":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"LlM6CJypLgo_k1ASaz8Yk":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"6g7PtqlLp3_jnNXdx_VFn":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"iGGwpc8s1nntrH118QkKc":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"i8hGNCzAETgtwmNexWu8o":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"I0_cfseVhiikPDg8cmwm2":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"aCPAVWCz16Mq6JmNp9JK2":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"R7iueZRp80Jq2nO7rX6AE":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"7mLksCqDkbFzHC7Y8frts":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"L0eZByLJYObXb68cFedHi":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"ixUqnjUUnclQqeP9JZUkF":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"bD-suD81-E3uM0IV00EQQ":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"Mn8ej-IV6LVtTryv0WAUD":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"mtjZqXCnq8tvyutBKbp92":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"Thg8IxzG9w27357ox1_dE":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"frSzygBWhi5rJ5E0rE-NW":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"Y-54zKVd2CVWPZrq-Ee6e":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"aTH9ja68d9mbVmTFJP9FF":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"JslbtRg1qmSzfqjZKNdzv":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"RMtGXaaBW-AjPsJIflly_":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"gvdTMooQh7VvNzbHN1URI":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"4FU0xz6OhCKDt7OpWp_ok":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"AbVz8hdu1ZEORAt0vNEUZ":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"Grkd_dP56gVDjQl2WjF60":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"QL3Ul29t--2QLEhc2cY9Z":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"VjTWePAqUNdMqH5Ueva7k":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"sjd7EGfhBfJXhNKiDAhGF":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"Stdys3y795pk3gQ_k-qy8":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"7F5FDPMLw6lRHcRqKNjoT":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"Sa4k9CRBs9P7t9g31kGD5":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"fiC3I8wx-DBegZ0IuQ1Zo":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"qSiLJGYSgFsz-A4nvnepx":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"7BTfrYyZEUJk0QMxhVnsR":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"y3ICR_VqVDZQOPZinJNVF":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"R-Spil67zaSuvSVO-Eiq9":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"iDJ6CToAYPz5LYSBJnrPp":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"X-0Oji3J9ZVfOCFidC0QR":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"_oBw9hSPpQh7F9I9cAaM_":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"Uf5cOYf8ozIwGpDMorm8N":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"3WLp3_VRjRHJEK6034_Hk":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"5SyO585oUjZnmm4KlLBjg":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"w6k3HB6-pAclY-0tSTDuZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"uvkQ3Qxnk7Tcct8R5KGDC":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"DPtB5oClYfZzuPyh9EJeM":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"0wos2C34TY6tPzJldbBgW":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"1_pXO_6U-VgLxxadzefS3":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"MzZlgAucA404EgytErOdA":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"iKlJL0OJT-zSg_op6P6Rt":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"mAyuGnCSNeEPMFwKc6xH4":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"2m67-I7gQ9b9945rLmzEU":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"51SMZlRneHseN_A9WuC5e":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"ZUb9CHMyKrWQ1uiIkogWc":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"41nNBG78SN7eoVOjGmlS4":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"7dc06S4HG11DSoYtqAu-8":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"OUKMNCTcmWnIlbfyCT4CX":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"m8H8eL0XMK7MxXUbUUmEk":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"JTNWPJCiajeHOvEfImIvh":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"DliA_TGnjwXx5IRD3FMGR":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"Pgh0TJOQA30JJ16b7_XN7":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"ERhxo1HObUlcEhtqh3YK2":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"lXQ9uK_zLIauLDaODRfnK":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"G_L0LZNHQgWa4mm08bRJv":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"m0HeveM9BsrAX5wXefv18":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"FRjWnLWzKcVmRtT5H0Rhl":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"K_-8dbXUoMz8nVWxq2M8j":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"6ZL1HKYnrGXqaJWRLoU8J":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"MFPB3k7_yhyyFZUXB7qtK":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"J0lV8811G0ywpA2cEOUo_":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"2O8OzxsmF7qVL6rChm6ws":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"k0oSoMSjaVz6wVuoaYcLM":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"zqQUVCfavdd6BuI2ZTOgR":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"E_wxbQAq5r3n2gcq0eNL4":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"fBaX1_rQPYQ3ElM-500LS":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"3oGKTrcU-vjctiaX1h_p8":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"9QheyPuhTFwZIOqVcq4eD":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"g0JrzGcFSgsBHKSSPY3UY":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"ZlHm-gsdQBXmBWZSzFUIn":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"Ft4o28r344HmOsiT1Rb7s":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"iJS7tSFjQzp-5qOTSGRzG":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"NjsxYQUi0Ni_lvHJR4--e":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"kirILuSs629uONMEKrehI":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"UEHQwrVavtgjviG46fa1q":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"i0fur22f7mvJHWYtJvPbU":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"tt4VAgRuKG-4Y30hKjBU9":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"EdWDGbPwtdI6kPf4Fm_9U":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"c69OG-0s8vMTtbyO25dCY":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"mZIf_NXBZlPnCs2SrDljg":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"GDCdt7ETSRnpKcifiT-Mg":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"n4YtxPh0ew6smzqtsCDpL":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"euJrFnRG0LerG7vMc1SJI":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"16eYplnuOXted9H1wo8wd":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"szg1z-wEkcr9gBffx-9VY":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"VeOcxPVQK_7E_fnL8oySn":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"EJ37XFpayOaeoe1zDEBpT":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"ZtE03e4vz_TY6O0M7a8vQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"uxEzCkk_IHLH1eYenrqqA":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"3TGrLnulhQi4HtgeMG0lZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"WUWLstZhGeqGOVEGMh5OV":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"43sHdDqLPNzGaoKpbDyTe":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"zMEndv2U9hRr4fnqJieK9":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"WT-83Z5TsDhKiAHztGVw7":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"fBCnBUDbOZF9VRb73pCl5":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"jF_Y_1vs1SNWL2BTyk0Lo":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"GzmYldmjw73gy25eXTJqJ":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"fNZn1WnWsNR79xpHUojnh":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"Cgb8L31SG_Dbj0g2CXy4K":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"ZBOZstUOdB0Vlvu0oPwxN":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"5A1UgFcK1PwcSOL-g8vYX":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"nVJdINlY9eJgQAcsOj-ew":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"V3UFRDywQQyQhVT_PgnoK":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"--zzP8fy9I6wCmrugdfR-":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"koAJh-kmxSbWFy1XLd2No":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"ka6FUEHAv-u2B5pDWMYOm":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"8hsjrL7uKRAbhO8XPEV-M":{"uri":"/melonJS/docs/melonjs/Renderer.html#renderTarget"},"-V27V3whx7ox2RCeRvCbn":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"5JiYFKLSZd2tMRsyyLH27":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"9EZZ1Dd99lrjvBQSNC7IX":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"WgJqJbg7XM6TjREMoHT4O":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"6JhyotY_mByXo8ytP8TeP":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"Bh1L_hhM57Jj5oEJ9nlkx":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"BJfKOvi3nHYuy0-W4ekNO":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"Y94LnD3W_JXKq7Ia4fkhg":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"ar6qyHdnuScKhp_24mE4k":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"1Sy5L8KXVNNmEeYyNS4Hk":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"wKzPz0Ka7ySfoEOuWPW0S":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"T8GYnvWgW-cL6HNAtuDDC":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"c7KMB9thAG4Gte5mX7zHZ":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"XZPm-UDhtBI82rRngnWf9":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"CUQcA4cDbsbHS0J_zT7FR":{"uri":"/melonJS/docs/melonjs/Renderer.html#getHeight"},"19Dc8fZzc4ACVA0C37Wtq":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"Net2bBFarNgQFR8BD6ed2":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"v9r0S0f5kZ_F-kVlgyHGK":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"_aEGkdVDL6UaZQUe30MJ5":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"bkUR10wc0UoYFnJ_5tDMp":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"5udwrwfYmXLxx_K8-lCR6":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"6QynMJ48b413owdhrGH3e":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"18BKMo3uY-H36yLHLDugR":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"Bywhv94sB8M5emAGR8Qj8":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"X7dN5Gi1bQTcd2X49OdlA":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"8fc1vVyicpamuvua5XvwJ":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"qE3fbzl9w075_5y4Kh7lz":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"RJH8GRX5HV_lewFe01CkX":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"L6yleojCheCsegDYq-IsE":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"USFawMflySb0nsaRQVfbd":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"PhXE_RiIe1p1fhahrAdLY":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"mfKMd1wJdGXXmqIg5YjnL":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"hZxaDOySnNniW-afLFHtk":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"6W90XEjaXASxGwEccKJ5d":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"HLTw3cw8mVEPh5Aji9Eps":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"55YsScfWpsA4KEaO7SQ3f":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"QMAqVhL9bsijW151omKlR":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"nolr96h_bBE3beKNXJ-60":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"RhtaxyfyZU2TOaZFsRJxj":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"_Jv9O0pzQpwBjja6vusLh":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"X-mX-vCw6H8p6G5sAHs7U":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"3rSxiVNE9vkMU1K4JK_ul":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"pfPYKt7cC5KMStK_y7mq_":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"70-xrdXn8T8taNJ6A3DvG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"BIDIY6gUDh26AKl0BePMd":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"3GyZD05mLS0-T9MeQbZ-n":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"tqJ_BvtlFSAGQiR7WxR9H":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"uo09jIgt-6sPdM9b0LVIm":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"h88QaXbFHcHHsK5cBtfe3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"35YFwNzBC6iTWPnnyZfQG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"cmYfOLh5daBNC_5ZnqhYC":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"vFbQTzILeqDO2SA6HPFiG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"XRleNWgS7aA1Awo3tDOo3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"nZSfyMS--6oY15hMeRia5":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"mLDj3BcEGLNlsZX0QrdJu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"bT2LRhPxhKwim8sLy3vcl":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"0dfamE36zmlXAXeZCL4OA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"JlulRa7VYVBlMz7wmOYkM":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"QwVb4ugZ095xQd9ruVAaH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"4PEnswMK2Ybthp3NFd7-A":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"I6CskvB0dUOcDQKN_RcIm":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"OuSK3Jcev3RFlVBNpLwIW":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"c7YLx0f2mJGBIB_StnRZu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"d-GzIIFkjWPUOysP3JX30":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"1sjKWn2e2xcGLKOrP-7Ur":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"ijYwC5i2sQ_cmYKqZ8qTq":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"jRcX3XdACfJobDnY5Bs1r":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"iWpGHSSOuI8egkXF1inRK":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"_0FUrsZKSFbwhrCc5xSn3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"PUigu7QQLncMTQiCoqgqY":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"peV9oztA2oyV3kfQe0gsr":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"GiSt9AMoDvGvk2R-mUGEf":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"inEUlur9oIJqekjDt7-sA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"kAa14r4xdevzbZznUnClA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"StbyuzLwT5NbC9t82_jmy":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"vPGHnfu_MYxcFWVS7-Hjp":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"ZqFxQPbax8PiD1B31UI6k":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"6sY4SI7AwrE1tWC9tFbgd":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"Ldsnwcr2NIeT1SXBxnAyo":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"DzgKUXmnXFtgTSgk0GOVm":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"pFXKNnl8pSzuxd22yVY7p":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"4Mz5qpz4dknhMEbgi8uk2":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"2sWSBp4SPYPMOD8xfQPuN":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"SvOo-dRnUlARhX4yh5csS":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"J8AGbvsbryZDf7qd5e_35":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"YeNzVTp9igSeLo7FoGsyR":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"AmUuUim8BcSt5atKzAbQm":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"s4p88faeWANmQRz-2lfr1":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"l86Rt8Td_nzNB9SWEqHJ1":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"AABCOXatlXv0O_Jp29LDg":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"JPhC7g0Wq9evXadt8KSEi":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"LSgecQaHKNdmxL44A5ueC":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"G0kLJBKDVVnvUluHNdPKO":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"_hmg7w5s1hIMKU6-m3WNN":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"JCA4LxVyEUJB_Tge8qJso":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"DpnCmZhq2usXvqIr5nzj4":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"KIl6Utq3KePLoCHkM6U6x":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"tGgjwoX7vwQ0X9m_hd2BB":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"fcugRoP9Zinw2zqsCaiYN":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"WMVeNh9lvfg41fTLPJWfN":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"5EE3CbegZ0uc3tpPFnKtu":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"Ztkn9pNss7ZZtiFVg5FnC":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"HuhFSqLX9aXpfD5DlrXWX":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"_xfy9_dYNadOSEmx8OFyU":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"ks_j8aMv_Lf8bUMZF0-cp":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"VhOKghakH0iXl8hn8lwvg":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"jOxfW4FjB2YK5L7bdn2Ci":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"jcPt1tws0gMva068daB9Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"ahoxb97MCB7arS_kMYGfI":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"qTFhsjYhHaJbTCvREL-yG":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"Q-tSxMR3pY8j66-psynsb":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"qkSRMzbaMci-dUsltbMdx":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"oTjK_2-P9OLer-RD403hL":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"BFyVdWwZi_7Q1AyewXS-R":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"FHIT83nm_MgK9fg4y4Hqi":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"0X9WnkdBW0GsEtdeuXJ3o":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"rNMAU4qQXmsEHCivIMROl":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"TtzSpK1bUFfPyZqonLYyo":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"3gu9zc1clpbvXwLc3zIww":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"-S5P0dRW_WluDSLtl1SvK":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"yVRKfH_lUJ3Ev9N_lJxHV":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"e62SJtpJJyqLr27NJ4rDs":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"_0psyJ2Q7n2WeFaqn78ia":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"y6Q_J_8cVoA49BENJtk60":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"dEQ6qHE2vh37_VNP6YKyP":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"PCswVoYfAftvr2hM6nw7-":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"kQzd6l5-VGy8rMTWjShcW":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"CLkCdZtWZFfsamLvL-kiX":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"S5sTbZHPPgH2UpwJ_6EfF":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"WzPBc67_dWG59uUPxl649":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"7ioP7wZWx7PDaEuhh7RVj":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"lEdw7C4lt_P1Vyx9vmHxx":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"EYVfgDW99q97rKI_ZkNC7":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"7sp_l8lvhazYtDWglKgd1":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"rc6S99H9BQSX6SkvW6IT2":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"UkSdorw4pIEa_-CDRE9fc":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"94QXIMSd7lBx3bPIJzxPn":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"5bu5d6AiwIqMIYyIYRLxs":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"pM4bPMRsJmhgKvMX9TC4H":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"sPwffmzPtTLPGJ0BbFhQj":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"RVyu8qJy6DFSI8XLvVm_5":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"UEeP-0z2uamWv-Cwl1RU0":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"R4ZcgipAH_p9Ego1t_1Px":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"Wo_Gkd-pduw4N_226-T7W":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"MN4pj5rHAsBzBNZIYOK46":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"aMBo5cjuMoDKbBX_LtuCW":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"0kvGrmYgptHOb9CAwFkNJ":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"zA6W7gGJLARqbD2R9WC17":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"rtwcdEjQ7nlk8V03c9_XM":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"RNdz98H7sx124t0vsxS63":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"QwA2ADxRXn8D7BNSj8Sij":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"S_RIuE8OJqRmz9KFLSOEA":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"C37PNmfE7CFaZjY7IjZvQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"iGi0JCFo3AkWWSNZhdg23":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"m1uJ_ru3AwanXiIFmNL0L":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"zPIS5RCYx0JsJHjP42Tsx":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"8z9TdtONzoY4uUN7iChy7":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"XxI8LpXVI0Hc9NS6V4OdF":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"5hpg5ZUshwvQmafWa9Isz":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"sFIUqDLs_6qmli0kyjG5J":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"MojZxqM8OSkSdP59CneZz":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"SooEAGnqUA8sLrM0-3-nx":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"d3nsWl7D5J6RuqO_KS_3N":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"69rGyzb8bKDmFGww-mblz":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"t3FWBNe5rVamIfbXQS88F":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"w4OX-KUikdQPO2_4sxxFp":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"y-2HNIOLStG7cS_5AfQpl":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"i5YXgUL3S9ZJiN4AuCeC0":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"tSlgvB5uzZyjrHq_-kgzH":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"JRYHUbtcxTSMo0PUacYzo":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"TQ79NKJ_tkKfNO452p0kN":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"1pBSzKV7X8zorqTHM1YpW":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"daCAv4yVzwipm_VVDA_sQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"svSrOe2SNPnIv5UN7U3Pc":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"ltYU_5Q39kFl_xGtMFAcr":{"uri":"/melonJS/docs/melonjs/Stage.html"},"R1By_gDEbFssPAFndC5jd":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"WaposDo86zkaNcU7WEE-s":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"2Xg-2OR2zAB3x6Q8E73ty":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"5Qe2FBzgtBuhyYTSuYeP_":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"R35Jb9VyWapYOo8cvE51c":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"Z3jBMCyxQ960PJZhO1h7x":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"i4y0Ft_nYlTrkQu-swRRy":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"3oQhJUsa89ngr0PzM95KK":{"uri":"/melonJS/docs/melonjs/Text.html"},"BV9UNgoG9PeyX0gmmu8h6":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"nxnm58MhFDeg9hSAhT9E6":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"7CKolMcD7E8LWqg5ypNUd":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"g8DRXGMjtMiBUfoOPOLsc":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"chOf2_Fi4XxAMfqvHai9K":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"l3-7KOVPwGsGs_yn7TLrC":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"flxjs5WH1sDVWNHD8A8Le":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"UQUcVFM-_jQAXcYjD-uKe":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"D3mZ75bgsabUNsbRQzCJi":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"JiQFhUSDDhrdekw9twihx":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"w9nZaGR7xOcd1Ec4qLbpg":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"KeUUP7v6cVBg4Luh3YH1I":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"k_ZMpnbRGORX3p-jYU0sU":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"yNFRwH23tpMHiQTiSGhMR":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"ku-cdOqFgyyAdDzgmnM_N":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"n8PPwACkqhR0P3a2_gbpb":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"AwxIBAhbJlH0GJAUjNKfk":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"FkVq2dhiFrr6-j1nZDeYU":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"TpWDHG7jCeIMn94dC0ATW":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"bXpyUdQaV4f5WjeeOSu2G":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"PT2UJfl7NuhxHWJUi0C7a":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"LfL643eFFZY_TgRxJp7C-":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"axHb_D1YMnjW_E_k1Cpwx":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"MAcDSSBWH-e8gCyOQabOe":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"Dn6tN0C_3bPpEHsa0y6Mc":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"LQflIqin5ZOfvQ7P-j8Dp":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"_uxwuM5hM6uGNb8JcYqKJ":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"mDEEUpgjsIRtdGOoD9TWN":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"iRudswxLlsEqKv-pUAvU_":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"N3uM3RPd3cS8rHcMk1i37":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"78cbzKH5C0dKmoACRFosU":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"rJnIOOVF4NE9phe8Vufrr":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"UjjVUpCuTkZVGgENDUAaT":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"6QTevAD_Cd0HKNgJIH0wT":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"caeSJ0VsXbYYGz7BKjFBF":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"4xUDZA1uAZ3pUkkZoit0h":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"G7i3tlYDr4ASS_rrei-bW":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"tUStnfWlmlQzf28Ov9_LI":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"8EiggtWmHeToDKGeic-6m":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"iLGgTTxBSSYu2atN5BNMZ":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"uhgQMzxAcby8dfijangA4":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"DUqB65xmIN3WroH3Fvm0W":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"orVQyiXHJnDm4UHpCqI_v":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"uNxO_RXSVNSlnzmiXssQe":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"O2fKn_WXVMPUiW9uWmJ0L":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"LJIkfFZvdEmvcerJXxLF4":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"iH8IYIrjEb1lyMqaG-XHA":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"2dfwMZ4c-u4Zjwf37ADu7":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"ngWsSQj6jYAa2FZf6V77B":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"mVcEuCP3Ev3UDY1oWlA7l":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"4YjuSjTmXVOmqMIFwEaYz":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"PzEr0MW6MeJ6OOgzOGpmv":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"A7pkjcgWc3A4X2GsZUQTd":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"ZQNb7eVgWNU7cb0dEEbWd":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"6SuSdCnx4asUktGr-Ey6F":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"CFjPRZeg5pXqNDerJH__n":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"i-ia0MGZPvU-Mx3OONqGJ":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"mJZxzl-aZUNEBaVwIQMC2":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"zyjS0tEdF4sOas9QqZM6i":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"wslYwcFT4uVwk_COwybm5":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"6MZ-CU55-QaVsz3CXXd3J":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"uJOcn8SX7jcrJOUl2Gc5y":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"U0VyOLfqVEUtg621okIM-":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"3q7IfWIVEnPrf2gb7FSUs":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"WZieWEAnqf552DQwlC3L0":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"PezYyaU9l59o1mQHzpUok":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"Go24EEvvR-7tHGNX6IDZa":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"4wD68Nb6NmHpT6Ztu-hcR":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"pxTA2L6ujd1mpR4L_subP":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"GL6KUhT2m0vZpg4Vh1cuN":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"p7SKa047JI2rn4V74fGWx":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"rdT1abJyHre3BthfS8_vc":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"Ip01jl_5JyAa4iXbqS-RY":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"u-tt-xgXivPMx0JA1ijBh":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"PW-OEm4mJ-F9eXmk04yYF":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"nWGTg0rGtmZZrJ-CTeH1s":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"8ZfY8HHngo0JnbOsGAy3k":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"K2Gj-NMX7sjvokXqLWA3d":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"U4t9E37W4e4eQPA4gf6pT":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"HTlpE68A2ccZJuuLJeZHU":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"T0EgImvtELyfDeg9kAv0i":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"V_N-1j7N_l6QnpllJ247h":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"2iLHVAMtdwoGMvSFhopwb":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"QAJrSb5XQwVZz_poEEvJf":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"VvY847zWCtfDbImlQnTuF":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"3e87m_Hagze6dZlGxyUYd":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"XbDw99ujLcqD10I0ZPZyP":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"dNf8hvioPHRCRw3MPfNcy":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"Bji-MrC5zGT2YQ2u_RuuI":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"A80i5Pyvk-pK3C3wMSR6V":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"aLvdPBKtFyGKq6AkqSDvx":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"ch8VagUUAMvRYfd8vFXHc":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"mdwhREJIAadRVBlXGLo3B":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"8ohVVIz1xqDe3xqa-hHX0":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"CMTQvzUUPEn1WzLObYfRs":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"T-qOMpz3yt67lS7PY8ZE8":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"bne9Lwok5atk0O0Qmurus":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"WIhxyYX1TSAOofjbKyvNa":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"Rp1FB0tGpTbg0rvqToUip":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"ZqxTLEvMQ3_WWd1AZrmGP":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"w1URxquMD4Zi5xPEeI11I":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"ygfFb1AFwCxtb54haGaF4":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"qP5g5FlOBtyuHDwmn7TBf":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"3cklpOZhxbscp-tdZYra0":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"rTin42F344zctnFplZpP2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"Eofhyd8IDxpVZDEL2L6wY":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"mLUWLDh4Asjt9v7_olhlP":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"mSUfydcfl_vSU086vzAk4":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"emK_Brp3-hF3-pAD-SpmI":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"I4z9ehNCTd72OLJEm4hNc":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"DVvse7-WmnOVip9aBCUi5":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"cdbTlKQ1mSUvNJdVeC2qH":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"pisaIMVF64D1KnrW62Y-1":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"dMrbud50ADCt7BKP8eJpl":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"ErFQZWHQ1s8i4x4eV-urI":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"jkstqQFwWYqdqxsaUcFOW":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"YhgG7h6p63aDeZgO44SxL":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"H3nHvsaecVakUJ_KTFcbk":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"Y5oQCs9WJF0Dkf1A432BU":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"O9H5JPtdY98aT_EUqOh_m":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"oxLTVeikcFILmD0E6JV4i":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"0TINwFNhb3PyXP0wGNgm_":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"H0wFK-STLcVv0VFid9xdp":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"qCj6BO2Mfs_QjCkOdXpZp":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"lZvkkFMPSx6wkZkZOiMUF":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"but9tKHdFGIT1CkRSmA48":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"8fQKmxFS_k9NdLWRmHhWf":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"D36HOU7OnwMQutIVElY0S":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"Isi2TjTCqLSwgrlWLQ1jg":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"UvJy6e9pIF7Jr2wGju8of":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"UOyppHbQSUbwb4OypwQAR":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"guPVQZDJVEKb5uK736AX5":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"OcmJZLwTtzuBXj3b525DM":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"pAX2VeKuxH5ALtYGUGCCn":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"nWQXA2NwFYV5F8AOfAM_V":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"l5hI2xGR5b79wfkWVBDIY":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"zvR5GmzQAB8Fhr3s7IFXV":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"ZaDbwQ1iO4PA0ZQ60UJXL":{"uri":"/melonJS/docs/melonjs/Tile.html"},"jaboAchvnW77ZaopoptNm":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"AXn5xKmY_HmChmO5io3hW":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"XrGggN3RQhULzBMONkLCf":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"bDiusfAKoesrcBiXOqp4x":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"UK2I-JfVRVdbqdFY3ehGb":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"vUg1QZ1qlSi_bpOeMKKNE":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"HoeIJMmGzkiar3yNOCvy7":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"2QulvrOSv3V3MZIoAbSVh":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"6-4DKd_tzfLsm26N2tspj":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"1HKP5mssPGcDH7sFx49Sa":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"kmmUOepsrEYRXNTHBeZQG":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"Sik5KtZVM090UdLbGPGhj":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"lecnPk-pfaBhtalMTpWG1":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"8F8YX5JPA6Tcswp2C0u_W":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"VLNgKpmivU5EtXTqqibbm":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"UeMdEZlErZH3aIpWqd_ba":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"to8Y2JESPE8VjdYA0S2Nx":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"VTjET8qclmKJknZu08UvK":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"HUJBq0DG-tJUlRe76evV_":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"zJDVrBZQkw8wGgLTxJ6Xv":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"LUXXBYFXNoq5Eg68hRYKu":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"93zhlxiF9_cACFoPoEVhC":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"e1DxWXqDSY4rRVw6HvElG":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"fdYaxoezmw2rJLopyz2H8":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"dKAANg9xTA-iWtmSsIlv3":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"jC1xTLchFFmTX5Vk2o7_D":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"0VmKjH_sNfd3bh5QbqmHw":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"iEJXMt_rrtZZnKnq4r6sO":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"hwMqhu7q5NdnZoEM-KiLh":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"QduIY_h3vpO9zax1mjGu-":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"8MsmUMPcefexDfeUcwCZY":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"9nbR-PN6L92AYJZMj71r-":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"zahM9BEhlHf2nNJ4KBN7I":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"4U70PRY6mBzRg-ZeiHtBm":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"f_zTOf_cDMa3WfWrzLOcJ":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"u3GH4AZunC-hKqXy8zlXT":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"DuIXAZItAmMOlZAnxU50H":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"4W5lA7IG3KEPpSOPD4DHT":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"aGfbLzU-EzRiys4pkY2IT":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"PPTgufZuIdyEdLFzRX8x3":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"Y_wNGKhmJdG3QFfblMHBp":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"pMxVVJzrpG4vo48Z6thxT":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"UJTOgzRGjdjku8aX8nixO":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"v12L0bpKt7l2tbDAGVdCS":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"3Nq_JdVhf-LNsfxwiQXrw":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"1927JVgEeRLRd5tknkh8A":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"Hke7uni7s_afISKZa5sL0":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"avS-fLAXRVzK1DDzueGYh":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"P1lY4_SXeDRtky4XknqOw":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"n13kIArEjI_OzkMKtKcEe":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"USeoAhikK5vxC3uivyUyu":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"m8ogWOKKEmxfOk0kRPFm1":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"EPoVTgoIQS00XZPYRjDNj":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"mcKgfVSsnx00dRkFSaJnI":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"clUVTKA2ILVdciEdrquAU":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"Eczg1lgwMw26GZ3E-0_yb":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"L3LupqQf9UTNIk64cIfqz":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"A11wjoAUvLLezmVSbO5zS":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"xCfs3JAo9FiHxidk9RPF5":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"TgLXsBtHfYq51C24NiU5l":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"eDZbafdF0b-tn6uQJFDhd":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"PYpVicn_2pGbr-VWKsraG":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"cxKohI5ZjrNN0R7sd0U-6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"87x7AFvA2GHGJIXl5wTPo":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"cxpxG-plBpmnrLC2Ae8IG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"wVLac8xFXMD6AxLjWCHMz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"2mizV2D7gWGH_pBUyaaxO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"tToemO1fc6C8Jq0NAyUDL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"pZr-6d25GiWmm_pKVV280":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"JGp-sD1mc2pGcMiQa3dsK":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"S6HAFPJIQu47UovvYJxy1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"B-cNmaeRHaRbqi3DcvB8H":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"7mGaEbihjmIu82h6ebyEh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"jIzM4BAak49vjfkmQlSIp":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"34ZOhRutR9IzwGJ7WSaWz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"W947tafuRKEvhk2f51dNf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"TkyOLgfrgm84ZnbcqI8AG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"cOz2YOtopXUc7BX4NVeai":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"Ydl3RwuaEcM1aE5R1WxQp":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"yLMeJtVVUd0MkMaOExfnO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"zOB4iE-9BIOM0c-5YPGlV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"DC2_R_2C6X_XUR-kB65He":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"8h23yOimPQneCroT3BxL_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"hy6Zkbnn1JJ_oUbi_1In8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"2tKgdtH7-rVmAJZnQI3PM":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"joe6Dxc6fGcXT2dY8761R":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"a-T2QwfVKXNFTDGXz4bRx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"ZQIVG66bu7OKo84c3BG5B":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"P8po-VzTerA2oG9rX2OO7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"YaMehLiK16IgpcxHW4gJa":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"1n-VuAef4gMDlNcG_mc7q":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"xh2jBllCw4tWrkXF-u_rd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"8NDrH9xBrTDYphiEfkk2W":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"Yrjx3iOTZbX4V5lqdyQWn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"0j_-ddXTZrREYuo_oMHUj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"JiiTFvyTAKDux0tDHWvUD":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"RSrIev7_BrANCSA01nHyF":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"HAxaH4kEFQVyQ-2tzUogt":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"z-4cBfUnqZLgwpXz_Wd3g":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"RMkLkJhF1zPBMHtXgWsuj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"tpEOj8Z7DsIzLE8TRexQF":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"K8SE70LoCSs7rUxIGRAzL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"o8568uxLVCE8CUyTXcUZX":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"fncYeKqgaohnzpPiW5ihW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"ERwb4csArJ62KjfKDZ9Rq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"MehyiidgewrItuS1oFSDi":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"Dbyv-GNuI3fnCm1YS8_11":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"a1Mpaz9mYO1zrQBmvAtcR":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"LPzwW44RfwnsVF5eYzrFO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"pMn_aMN8WPN6e8MR1sX2q":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"NwkBjAfTEqrsjL2pPsJTQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"jipka-OAE1rvv6gbPXBhz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"ekcixaGLAzPcfwDKR35rT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"MEILjJngwz6vnN690s17J":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"oVGmtCrlI5vsQI2CFXFPZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"bTl81KC0CZNRhzhTiUnXW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"CmUpb9pICtUbSeNN7xTxj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"cNNiPKWVehU2wCkU5xijO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"LPQTwhI8ixuYsM7Ejtx3B":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"v5u6gJAPsF8tUfieQZazR":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"_a3jc2EOvz47G_uuexPtX":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"IwUeAhSBqDR6sWOBJCMpP":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"7IN47RHmV3JLhqjY7m9lf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"nz3im1q8zNJ2v6ARtjJ7C":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"zwJ3RCBDPXlxfWr29SuF1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"chqS6xlDCW_cdJDPMMJ25":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"ARU2p3FAGkbQoTenTf0Lu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"8glxRK7SoMG_GvgTq0iuw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"lbTnEURm7Lfy2Z6kNzBbz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"W41q2PibgyZka7R9QW7NL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"v2s-HmWyd0Uo1sTDsWDka":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"TBHEoI_XYT2WaTgNeKPJZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"nGpy0OXerVTiz_PdMdf21":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"vjbkOSGJrmfNuh1w78kQg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"xvDxUPZDAhhSBSG3g01HJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"3tTgkp6_MRWLt05UrwIG7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"ryyvPaicDPt2V7Xh-qWiy":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"KBmqczsM7bf5EAJlZ-eKb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"8dWGRF-FnY2TuGMyfiWHu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"M61bt9Ej1Khwlrkee45xO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"C5ln6bgqQgyusUJXihN1z":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"mpBSDO5STjOco5-UAOHyC":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"tOBs53aaPhX-hW003aGro":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"qKxlI0D0qdj2Oy81jQvIo":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"TZtYO8cUqa6-w6ETf7_5S":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"h-MixA1NOZs7NzMqm38HW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"rixiPMKOBHBTlk3Cx2foY":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"2rRojyDgTHWqspsmyh9px":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"vTIAXkVEfitS8jIlsYzT6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"mm3LcpPcAKOB4XV8b4foq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"SUB90CfhrVqPud2QKxZre":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"hxEj9dEXlkfiS_BXZuPbC":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"HC0ngR6JLJ1rhIW9VhJop":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"qFzIqKTS5yF9QWWL9XjJO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"hD4Q4PxYk-R5hxJW2hBQm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"4IR-04RZIgKEYwwfW434B":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"33tyyF2wPIv1AzzY4cOpn":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"xp9tVFPITTn0fwrtvpcJI":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"_Xh36vAYuDQ7ij7IFggJM":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"5yxSxNy2xI9X2HVRALa-F":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"qT6FUpFH9xgw_1indyIkt":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"dKY3-XHGlCU5X4NXW9AzC":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"I2cLFel2gAM37t2fRXH0v":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"GUwIYfHNhc6bPCkVOOsL5":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"Dac0QrIkRx7GTDQu_J8up":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"oVkunA5YuU9evbbXVRv3t":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"686-IW-A8mcKfxFwOP2yZ":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"VVU3L0XvzXRIg-Pfwlp1-":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"5I1iUCSKCOKGZPgjYYfj9":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"4JwqcdvpUuXw3wb2naY35":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"i06o2QDq58XjiXEoaDEo-":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"bOOCsIT3iVoBMegcnSd3F":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"lY-vxtJWY4hmJ_ElPxbby":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"ze2tZRPYqN8AxBUIhh2Tn":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"a82N2s-10l_4kf6zOwxRj":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"5dXQd5FJu1fdp1QqMErC0":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"o9eMSQLRG5_wOBamyjn6W":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"FxDnqtAdg0IKp3vu02eb4":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"FeTmwL6ZEjraQd97JvGdi":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"xz56MHWyNfeNHHD4RrkBh":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"wDf0N-W8HeLuQDOciWm_a":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"tG-S3Lmytg3la_FiJxje1":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"1-9Cx9tdY5cXTLwFqu2Yp":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"ODn6YuXojmlaM5mvOrqS-":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"gLbDqVoKS48oU4gQYSevZ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"GnK9dy4O300I_raUfC5q1":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"htibJ6lYhji6xdhd2BaxB":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"v-_Zw2dzlvomZosIDfe1z":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"6WjoiKkSsvY5pKdoa0Yhy":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"l3WVkIqc2Af0qMGhxfhYf":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"lZNiuh_yrfhq3F8C_8s6g":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"Ob8G_1v3qt4PZ1uKfryCD":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"Ak6cJzY0SwEhL64MwlEGN":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"M58FkCuE5YmbfNyh5D0sJ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"xpIfkv_-mjBnXtBwzHsrE":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"plZRFfbLWEIaWYk4tIFRr":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"yDnrwwg8NNGHt7JQbgtB1":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"XHBIRo8VHZBGeGPJrSBuW":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"ujbggP8MQEHEf36oRryRk":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"3T0DuRbt-mIEAkJvLIKH5":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"lVxihAK6Dv4NsOMNUHOjP":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"YtQodt0m4qQe-_MRvkoxd":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"kuDU6vJGMVmFEGzmNroS8":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"nFCNlgeYO5ynZLGBHTVBv":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"OhiHDXxzpiQcpRaLxSh2g":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"WjWwkaaXPy8L0QgR48W4z":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"nAjzP3eHZSNlx2f4Ue2cM":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"5POeiiqkMrvem_z-Xl4W6":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"xRtb8spPxkz6F4pM-yrEk":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"jOu-mgBK7kTS_Oferstue":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"iHd96byw-VmU8H4Ozw8N4":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"PCmzVP9Sp-5o96x-yTm6o":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"05p3YD65XpRXcehwnDEmh":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"d97t9tUcdBaLshNzQuf-O":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"bkBNiAt9jd9jGRoi-dqgi":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"k3QD6mIHLJfrAC76rHY1v":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"cDnCTlu7eqWiUOQ-PYsbi":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"v7gTiOCHJxkt-mM_Udt42":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"LsU78GQUDv-vvFchFflpd":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"uR2NVYsSG9yJYSo0s6ft3":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"4JaMTB6VT-q0Kc5NR-Ibs":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"9MYTbCPAScwvBGId07c0b":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"EhfYsFZzQp6u-PobciGrc":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"Dw0Dju07sggjdcZe-gw6e":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"yogICnT_s2FwY-M6u5vXI":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"osJkpiymwDDIml_IbH38n":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"67UYc1LebRuB7PvTWH6hs":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"D2yeWH3ok1LYGgG1qEQzn":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"nPrgQ95xaqOoy2GwM1ZSa":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"e-GHxDM1URIfht6pCQNWo":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"vzezpPBzVK1EUOjrh8NU6":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"ZOassa99LB1A_qoEYwHBh":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"TUcKj8DOt1v4Ont8HbDEW":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"zogfwc4fQy6MRURwxtIh1":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"nse3b_3hQSKBJrA1kL28J":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"WE45F1rVSqTUb-vmLKywc":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"Xey1lmNr8iAeC1Su7Fjln":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"wkW6iiB_72EPSR1Ndnj1_":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"Kvj2pto-GE9vql23JE6mE":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"j_THHn86RyJqW_0iwrndh":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"Uivz9t57xGuiCxGQ1SEYG":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"embTVfAbPoQue83UZPyHk":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"jNCUg_lB5mPEbVssRjAQl":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"FwL8fqZZezP4ecYagpccu":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"OJlTavwTd-713R5Ixk8-D":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"B7TstWDZQNIo4AYehu9qR":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"hntsoNG6ll7K5ucSYIwIe":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"FSkMUNguxG_JoZi53Dvtd":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"vIiamIM0OqkHmVydjMT0H":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"xpvy65ru5yM1k9TunptsC":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"dMouC6V3EoAvFTA40Wo3t":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"rcnnsY_JQMBQcp3SjdNGA":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"4wb4BFL8Sh4tUp0xrqqPN":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"07IMdHg3gFNH1Azwp5x2_":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"ftGvQpxZS18Nv2SPFRLYy":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"kbF3Akk1tyj3bgnOdQagM":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"USFjUWUbdE2oyJSah5LTy":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"gBTfduNwMCAUv28vEHLii":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"iL3VINe7NTs0klDnBtat4":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"Kw9c190eZmfFGWwNGrbfX":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"EGuQQNMW5YhKAX4_6puXK":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"3oaIpt92nzCpdu0BPQyny":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"KgTCZVqYDQjKBpaqpVvAF":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"dItPqZKBQuvV9x3veLsPq":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"9d_8UV4Ou-SQHxrLr7ERK":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"7XqSHN28op-GJ4IbT94nw":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"qibkaN_F6O4OK4z2kxD1y":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"XY1qpvnUxoPH29DVnZIdo":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"joKRnFVYt5kaEORz3hYfU":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"RNnnKTw09z2WWl-oA5oLp":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"1ezZnbg2ZYb53AH98HgMR":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"urpk-vnXR5ra951CnSR9x":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"64_2V4dFpVwhKrflMqq9t":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"IYg9Yv_7UIn5UwdHezg3V":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"mh8FJmeKH--D3A9kd4OPq":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"D0_laddEmHgsXdF9NU9wg":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"R3D997ONsiPyeHnMQfQiA":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"ZQkPiuGP5Zexm5K3vIGuw":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"5KoPhP7Vyn4Qvl4DsqMaG":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"RWEWSUJMbuBsMMVALVDPI":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"XSBOzDZyVZMbqeVtioakV":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"Tpr7jBGq6y8yqLAjtd4w8":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"Q_8Fxxt7xRt7IWujw9UYL":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"yt4ZK0_tP1Q3ZiLFFQL-m":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"o2VRl4Mnv8KNaTp9B8M6P":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"1lckodBvYieFMMJOWqZWH":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"0y2X9A0W2VIIhWBPnbPF1":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"OXDFc-Hj4yIPZcz1-bhgK":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"3Q7-u7yCycWOP1dnJJ7A1":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"EYWkoFz0RQ9Mn9tPbnJ-6":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"xFdmofW0MovG-5RcisWDV":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"0BlY3XuDeTKLEAPRY7E22":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"f5bRpbiESAFrIR3BGH8Ar":{"uri":"/melonJS/docs/melonjs/Tween.html"},"eyGv31pGARJC7nNaTRfFj":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"fpClaMBkkDy0d4AMViq5b":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"JCqNqEH13DfYSJQGoR2Fi":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"izwPL96_FrZQWJJKgqP7p":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"RgO2nH82OuFMBsyPbkDMj":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"p3uGsD9M2jSvjFUZd6fyb":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"KzIiE-Lbj6_EJiAvklm83":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"d0EVC47Ek6zYOTZsDz__j":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"Ck_vE3yJNjFM7Jp1IP9He":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"nYMnL-0v5VBuxsBAV6H0s":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"OenLB9c4eKQT7M7QxafBn":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"9Aq8Xzx1yC3kw_331uqrz":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"I-XQQ9QTFkuk4rJPixl_4":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"hOcVGJ0HdXCIWHMSdGqF7":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"ombQPRwmYBqeEFV497rSP":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"HPWuCA9PovawhHFetN8WD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"5QiFXo_fiJc_LgIKttizO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"m8J2PCSQAP-G182kizJ2t":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"UlcUD-jHK2fHhSpKnOn1Y":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"deBI-S1b0EA_CoNMhHyLT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"mulDJs8ZsoEsam7L84l5x":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"2UY8rcrzVPfA_eS7Rp3U2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"j7JKSgc1MqTF3GaGWXfWy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"pdlLVwDZWZJ_rJvKjnjW-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"QFhln_8BoqbB1WrNbs4zW":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"nlp1M8Q-imvZGDqoqxEhj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"5Z1FwfM-zfn4hRghWVjuT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"CJEfBOZ2lGGTOsvwZ7iUt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"dsKhg5APLInRIRS-57lMw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"i5ndRJOjNnso3sT3xU7BX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"TbXiT_C19Y--t-Ab2WdeQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"9IZqARZZHmFAYkP81FVhv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"vbSncDB0fR9ihAsQMj7Xm":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"HuadA8pliJ6j-h30-OHzk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"stBWDAF7IQhwUoYsWMQat":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"JzZ0cEHnbzakYdQCdxzlC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"JcyDGRWAO4JwKWgI_hNot":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"lnyLR8USde7xN46qoGVjK":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"uYOy_pL0DarYRTAVZEvnH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"_AVfL26iJg04MBIwz-Qsh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"PQEwHdR38NVToACnud0NG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"-DwUwf1Q1YPDgY0P8fOZY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"_sfRqVlTy122IhHbOEpyR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"xd2aqMAazmqtyeBlAgxkc":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"0279DXU1IAFZtOodrTv2x":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"35V47fzrcDmrZ7xqwcj5_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"YpKzQAQexnL1BoE3y--xH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"H9IoaHFyxRs6_efPUlNEe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"nIiGzPtikiELg0OYyJ-Pl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"RqUaKV29zohCLH32K51SM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"PqH3uXh6RsWQo0M0a0MCS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"GCI6jU7OSXPCWFRYiaWvX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"9uHgkfqLFIPyu7r6S91k1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"sgc36L7vXy3HLXQXmrrpa":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"CHzzPdLFxNIGEr0yDrDV_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"-J8eRx_EVh67XGrv9caum":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"kRpYFvt58Ozqhf2QsDxj2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"PLAaXXo2GwAPkGQ68a_tj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"qFkF1MBfEU39JvPtwaGGI":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"AEZXc_Orwr_4EzcYTsKmG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"773jP0YkDCBwY2SAS9a2j":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"sXaLbOvxcNM624EYHzyjr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"zv-lwHUNJNukJL3SbUkTx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"fJs4lcmzNQDpoGNW5q4mh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"hZX4ECYx38njYt-j_18us":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"quCe3Pl3kekUjcW_obuMJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"QxQOyZ_jtNfvsQ7LY0Ecs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"3PjTQjJXYTvf52KSc_BJk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"B2HddLLbEqtha3KMqYZoe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"6dNdv3CwRn2aTuhc_17WE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"oNznNV3JICIoV00gk5Nrp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"EZRwX2IcOkAF46EV9sHr_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"0prO6zjUyWBTHZVSdLgpe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"7FLNDEfREpzLg0s1LE-lh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"gxnUJXS4Gm4eohMllerzE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"ef4oBc1uaigp4VyISh2AC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"tzEJtePoYbUKV4lF0PND6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"CmDnY53RmHjM9i4h0rCTJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"-U32Z8isCDnM7fjhDsf6L":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"1el6OAI-X-MwAFVbU_5wQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"V9VW7ufGvlFwyGhsCNEMJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"sSTv3YAZmS4ut4Rs9tBR6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"a9BRCJeU2vECEKn-L8D1I":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"Lk-a0-HNZ0kHpdGjUBGCZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"OKYN2Kjd7SOEidaqKlmik":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"W0drFpnVS1wBRidaWDvIX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"pjTKDIM4WvPrBijQQhg7I":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"eJvPchVmL6DESLAQ6vULO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"ugjgy_0-WWqcwptVfOegE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"Fe-eQpo5bhMdJAS-q_Bl_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"W9OlAvvEpDJHAKF3gGkim":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"MhnGf6mEOm58rJxI4KiIU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"_dZjIhKNNNqgN4Aa5p8HV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"gwqJIN8HSDZIB3XopsCzp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"fspKtA8h-34kgPD4f4wWq":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"_7qJ3XZ0KczsvjU5doxmi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"wbTvAilA0wXYlx5_4jKTM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"H5v53MMbdGwq8kQk9GU0s":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"HC2HjczCXBcU51OTCzN09":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"DyeRrs2qu-PaJNflp08fC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"SFBYeLOkCMefC19dK-ZSf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"2TfCt4VuRn8exNviwsZ4u":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"CSqQkLErdIDkwhu7XF5QN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"10pTZMNstAAjGytcPzZR9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"Ol6zzhWqIXBX1fVdaGpmY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"SKMeUWwAOh79TsLVA_plF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"w9FWjqcQtfTBFFH8trVbC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"chRVt2efTbB8aeJ6hPngE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"uBBk1r4Gq1ANM9MzGMChX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"DnWDtNYPnAlDm_pw8ROtr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"RsOoxBzWP6UrA-hx7SeqH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"LjFwkfoNas1qtPnFKyhWi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"1xkyspRyH7srzeztHlJGP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"4A63UZf8B3NvNZ-tWnXZF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"kZxyQxIkPZRCDmvdkIkCY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"2ip4YtUyziniKg9F-PwuG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"mk78gWSau0c8dVVcyTilG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"BGIowyrNfqvceVDECkQVs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"o2kGH7Qb6hUZkEfAUkd6h":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"cfKwaLuv8_DkHILJ3Jwej":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"wfr6iOwI6J_ov5W89bNk5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"rB_5xBs5rKTwVZIaC5U5G":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"-cZfE3beibYLatVFx0D1R":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"7gigJy9w5k4mG8uOMUnoE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"cf9Y-c2LOcFECiArFYLro":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"O_nZtSqLqo_SuiBdPU6Sy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"nYJoXeFZ79Scde2g2BQWg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"hO-_Ki8Gv8IbEMtFBy1zy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"OgJW7k7QPkWLcYSUXWA7u":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"08GmnbGlqT8abgsh8EiIY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"vyOQ0YKldLeM6anAtlKUF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"36lAqtqZCGTCFmK5mT7Ez":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"FHhf-0VdudpTr6UgAOI5p":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"aA0i0v4j6GAcaTBpdh0Vi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"M8EHHjAmfTohrOv_70nWV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"c1wqDZyiSHNCn5RboUTAU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"JMBZm1z06WiU-FzNgmC5i":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"bLGvyP1uikp_K11QrmtRz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"dynBnLcZTPD74ovfdB2Sp":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"vcsqFHHemVYXYFwjAhGYW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"-XSB6rHBaJ-NexwEJyJRv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"e0BQIESItJI0Br9GyK9cW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"FxLInioaCGQjZRct33qs3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"7pS4cBbxGPV2vDZbWaVpd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"S5Oh-sVqnQ08vyqNwYC14":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"R2-QzqDeQstExTHtq26-i":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"UIGDWj1NZ4euqmDO_PgvS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"MrYPYo2GEgN8_ooluCTvF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"ygh5uXmDEsNoBBeGH54-l":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"V0g5ovfrdKDOSeJ9S1qgf":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"dMGEOAxFUl6rfgRJRUHSE":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"PHGFSNnnKqQP7tuTF4FEW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"a3TZ6Nnj6qCGfxng1GAlN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"qIMESZ8jhCcqUIRRpw1L_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"NBzk8Od65JwM2bP0SayzY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"7708ajDjTVr8QxWLUHpo3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"APMkPqI9S2joSOZdPSOZv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"OuBZuKsSUNU5IM3ByfMHC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"O_feAlPmePxsHue3BsVVc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"C4IQUkxyzoCCmN0_0SgFu":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"qwQ3-iLeGZ7C34MYInN3g":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"1OqYJlnVXrlvLeXePP5Am":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"xKwiLb-C-ZgxFF-Q595Q0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"7ymyxIi3XYPkiKqcIMFJr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"QVMP8DD-CVQiXy3FuCS7W":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"GKEItw5EyWhZhXNvIH6gP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"rw7PPHP0xvPk9lK0tvfjD":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"Fi8eV1wD-cOYqNV1_6n6R":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"tQIGVAmRjhNPKfeEN97vJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"Ym9Aq62CjO_daBH1Z2aGn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"1smr540X6V4DjVOQGsGoA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"9gABnj_Otbkn8wNFgZ6XM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"1dc-0vNqpGYjhR4wS31qy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"ZUH4oUHmYLlAYvH0ShQYc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"yUHd2WzzykpwARKpC0uAO":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"JyUPpU0OZKf96xfJLfGwh":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"arlZDZ9NUjJPh7vqezN-I":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"fbNdCVsEdyuUq_gEd87wq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"BLrcJpl7VekfbuFsDOnes":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"ir-sYhgSj-qUMtpBrkb0b":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"4btBPCd2uWn1o9UYmuD-d":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"6vi-8umCGJ40nDFI0wV-d":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"-9Q0iM-ExlGjXMBZopZmm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"D4ixohB951Q1U6QIgZUkD":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"ZP3S_z8jTryMwR5vJECY_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"bUOADUy-F6iaLanNeQbpB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"EY-uVc3CP_-aZnMWS3nG0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"aBc6D3-Dtqnutao9FSBp_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"jNsn0oiysMz4Z1CmIz0gs":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"3wtXdVn5yCfPRVInwzE77":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"lNrcBynrDm54b0o8nrRT8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"YgW6rIqBBeQn2Rkog6HxE":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"R97KX2LTUqMAIDNBbG9dw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"224w9dYpMosJjUHP3v_QQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"nqIgpqhaQRofxn-V5QCdQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"KBStS88RqLin-sTRZFqm9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"PH4QMAfY_hFoAFaDtESBM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"RMNZwwy3bglIS02qZsB37":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"4KBob-FguC2WBav0e8Y9a":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"NahSDOUESS1ZHm6xE_vJl":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"jJqPm8hmWXwS779x24_w3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"b2xlF3K9gOO-sdRbBH4b6":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"7zOMjN7joPMms_EizVwNF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"26pdsLgVYXRKBU4pqE1Az":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"pbf5gGpn4zEE4YsJmha9S":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"iFarXr7Jywv0xmjXWnFmG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"zsreu6OREkh-rGWZG7u18":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"7JAT41pkOzexL9_cLuWse":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"quCiFzEa-tkm8Z2yRABsS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"Rr0e-JncRiD3PZKO-pOfi":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"v62bqkSHkwj5TfyPFwkMk":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"qgcIgE8fKiqrTWMpV5Xrm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"XEJkjAthkR0shm8NQ2rgC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"DhmC8VcLRL-M-7djl3iVL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"K8nT-RchihBDZO78ukDUn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"6x2oI6CrOjF_wq6Ov_hCC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"8_k37oBnLPNtTlmMWCi_K":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"i6b35uS9iwlKMfxxgxDYr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"2gebgaTG10aEIEmaizoEu":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"qLeMexNvhJgDbDmOSPgG9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"-u-ZwjBPEW-IBqDxHHU2s":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"alF0ZIZpiyJLG2EqdUzZH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"ULQoaIhdxwN9KNxH_uVIG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"epdSEynBk1rsUJoTzy62o":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"8SHu24PntSeRTQJapPtY7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"yxFw3HZNuwl5qDDYxDvpa":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"NTxANjQ0_e_6Y6DbSl52B":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"7lXnAqL2xhuVpIkifOrlh":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"WoOYtaRl8-cAJUmnXDwf_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"fwLJL9TgXZNOBLG5i_9Yt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"RZW75QHGoUEYtRL6TWeu7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"J2IOBLfBobIcoC8oYTScD":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"US4m0a6btoJlL_T8H_Bko":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"A3vmHralO75tDnzV868vH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"ewVu-3F5dEDx6hz1JRQUB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"35l4RHAuoZ7zj15Ot6v73":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"dogSlQnVJ2xieugqLzLTQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"7RfK-G1S5ONJDeP4b2KAB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"1y5V5LE_OIIf17BMai29q":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"VtoNO8YBexRofAuWTLXDT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"6JR_0M6DkH4R3lV3BSefe":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"ZVUoSPmJCheZmvP_NJ2e0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"osAdqYEbWwpWiZnumTRWe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"1totQ6UmSrvxprXw4v4gR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"aOMwqhsU402zkgSuNC5hf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"XysVyU52IzDCVcTGL5ic3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"cg796SLvFXbzBduCjcDhC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"rw2Gw9jzrW33s1eoZcqjq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"Nq9O_GVTRDxVvtpWejckj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"jxyQ77Fohz87vPtHnp8YZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"V3kFGLx4edeOTY0rBlL3C":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"yNjp1vCOPn2yP9yrPw1N1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"Wa4Fnv0bKaIhU7MHNEx_A":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"vJmUaSJ7-0r-VBtvMRtpU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"WtpYvXx6gPW2q3HKaR_E4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"tdhemVv9uqOOfvL46eZms":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"aA2fOmoxESBB81DolLP2e":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"umtMyrE03cdqySHHozj5g":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"5LHH9D79DawZ5NXQ7Jp2P":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"tefrJw92YsIdkABpabYeL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"MtJf75Dll42r97GvYF2B0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"7KDClGI374K5gsiZzFOsO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"hjpl3Pj8OzD-JKBJNgeth":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"4r6cUGDFr40l8HZYQ50nr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"3qxoOsNjbKXLjbNikUAus":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"0fG-lmlU7Ei1htRGfEBih":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"pDMUNCJtMB3sz4H5zJ1QJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"tEGS_s8-T7_Yf8j-A0WhF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"bBuYD8wNie-cArg5OXrYH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"Ahs7_NhELSIyXSGk_UNQ1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"AZ_2ab5xzboPQQ_yQpCrF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"ztkszmTX8gCNL2578DGDO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"q0daW7Z96HOi6EC7awb5S":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"5MJ0gyUk523bk-KOQsiWi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"4S9OwDQRE464kM__C7Fvg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"hJdFsV6eEbAeGJN10Cz3x":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"2U9GbEE1vCp5lqSTAQmq9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"AM4ZoHi702EB0T3sU9MiJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"IdLbCEoHZUDc2dvKlx-5R":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"E9WXU9WV88IEhwfKajbSE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"CZ7RSbs4_SVrjM0zT_c1D":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"XL_Tf_o8JoK4b1Qk-IlHk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"cB98fAH-7LpQQS2XzeuMN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"KQD1CVH9xqqiL_1h6nCo5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"9ShBHPf7iAISYHg7Tz7RO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"g_PKNh-6PfqB76wCKb7Fu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"b-5RUQS_fd4EijsmYXlQ_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"dq-npaFdPtQZihD39QdKJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"EQ5_DunLcz9eclPESq7te":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"lxPnwElPu1B-9snYcs_19":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"MH3EjkuED4-YTOow_uPUw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"PB70V5h6pJfYW3RlGJ0rk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"dr3-xXXIq3yVyWM5L2Y8N":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"s-HKinbm0H1_BfF1iJVM6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"r4XcdyFzMVgqItpkSi-T_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"_EQUan5d8-vv65xZWA6-v":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"raMZxtjFA044CWLN18Cnw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"CND0EpaV2f8VUcwCJ-5R4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"sK1Acjju2RnXWjT47VrFx":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"qTFlC5nzkkw50jE8HGOyV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"q_ylfAjTqIcTYuxFHNgJn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"3FBRjnoXqBxGwSNFwa7Z3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"1kBBCO9wtdncHa5wU00aP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"BLrumwrM4prR5jRJN-cmC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"7dsz_VPpdld2tAOoqFd1x":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"TB4JVJ8nyhpd9iiBAcIzw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"Xuf-MNBDtNX4wShxQ3urE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"zZje1Q-txw3W535C02LZx":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"cAAGpZBJj5lk8ou7b08R8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"BNLjyITbWhTgIbNqIf83m":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"vtpnXviS5TjdBvjRYq3c7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"9NNaH7SflowEmTmKq-3cq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"_03PCCegbEAeA-xwr3rTu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"8JeKjwv6sxYHS9kCMMWBG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"0o7m-HEiE-xsRFkoWW2JI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"eksl2IHGrMXjDudeq8rud":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"9tO2k3tPXEkFmsT3mdk4u":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"23mzHe9Dm7wvuidxQ7GgH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"aeOBQIpH14dIWonhHD8xX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"nhELtUSg-_APc76WUuLU8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"s_JQsDw8pHe8QVa_5rYG5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"puWU3zWJUKyaenWMXTvg3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"BcmRQJTgIRDXbRh6mw_V1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"1M0oYk19X2mWaZXgbmXYQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"kvQwKSZXCkXpZ-Ok6ww_D":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"HbvkuGYSJXtNfamQMY5j1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"Er_U32pTM7Imdan90KzBz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"0Q6dRddRqtKKLCjcBTIA_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"wFrvvhfixPVRTZD-yRbEI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"UihDoBiJlRVKCthNtTT_b":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"wjkqH2vnSr4e3K6oJkMvM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"TbbpDG2Ah8iWRWD6ZlHF-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"U0KIM1MvuibUh8GuMdPcs":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"UHRr_jGc8ucD8APDcN55G":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"oGRGDYpIQ0gtnGQdhnSfZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"XPKU_W0vLKYfMFYiUUVlk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"WyYy6b1nDQNrRXXpDwr7O":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"D9130eD4mVb5zr4D7THlX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"VHjf8GO6KNC0WVlf3m2MN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"NGXT3dx4t9R-RWplSWq0c":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"DsOm02xBKAH2jPg6LmUgl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"KYUEBlBdVQEQCkuI-Ns6u":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"4pTy2HuOiSVjP1ro7c-jT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"GC9s8TOMHrO9Q6tnC8o5g":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"dzBA6HeletE9rCOa7FFNX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"lcw-jRQptjUJpD5CBeQMd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"DhGtm9Zi9y0tyHQmO4Nn_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"3MUehTtt5ovv7arb5pExp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"H84Q1bpXLJLT2HBeZuuRd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"ITYzWg07JoJlJIm2vb_QP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"Fx9KNHCjt3UXMJfw7HT60":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"mNm7hs_M91AcMkJmwwxg0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"ol1SprWnNsPHBkDAFuasD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"1h-H0CxEOoZyItImAsHu9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"KOfr6rgyGssi3gCikR12p":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"Pq-xNbqxc41G3RlMit4PC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"EvJ-mqJ0zQ1qDhgvs8pjv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"Td1DI63oRsGsgDZW6xxRJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"8UHr4H1MCkJyn-ULM-fWq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"iiSwfungPQ7Q6WHVHx2RB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"lvV1Xx23zyelEVS24MOz7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"bp2t9kdnd2w4W1_r4CTv8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"HmCsGNSGSObtKnt7FXjYC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"gjhj6fK4bz_HxQ5W0bHpB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"30fNM32xGdmuIbpe8BjoQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"fEOFPorIS_evuSM3x4WYo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"A3yIahXiL4hdXzGG9ORFQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"OetoyJKRazlwc3fHh3t2e":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"dpAG6bTAwTRat5wUEHoZj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"aN6nND0xGB_JFD3w3ZY97":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"eV-GhTYy_TacdUrEbiuST":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"v4NlMib3BlYVhJfOUgxgW":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"8mVyvt_lihoyQMg-uJepy":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"OwtYH7zzfdVU4pLC4VJZl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"cOEKQ-obMx0SRivHxIsn4":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"mf0WETaOstqwYYd5SHuCh":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"Ry435truc4hlWf3LXN-Kb":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"dT1Eyiy4guIiKLjncF4PF":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"pw31OpOTMrpm6CqFQzWby":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"bh9xK4-j-mmDaWKZolWh3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"rIq9FH9uUqW3A6IK-YD4X":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"ZHGJnh5eblcRc1oXbZIbX":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"XDWmOutlBAB1KHzr2LPJX":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"XkEzmbk28F5zgx0A9tohC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"FcZO4fE2_XZa9Zv2Soam7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"TA6xaH_DX57Oedv_6ATrR":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"I3GYndBOHOOurnHxGRSp9":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"MTBDlrIKOBNSgJcqvkEQP":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"XQga_p4JMlD8f_IKXFtLC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"kPrtJ3c48Cby9kfL06j_O":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"ZdgWj2WKSktGCRrs1R_oQ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"2FgCzM3NEl9hNoAcoIjbN":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"MsJXw1rG-eilB6cxWxQYj":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"tr0E6iRYf3vlVwhdd-diC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"CPhsKOS4A-UBnUsnGN4m2":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"Gi711pMsHF0sr6gPFdAXl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"1D4C2vNMukOutzBZCiw6l":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"k0ansSvERpPdK4lzo014W":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"gxzJCab4T6ECNZxUnVcJu":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"1oUT32GEq1eRDOpJgLxep":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"daPiTRAHlL15UZb808rKW":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"vasgMP3e4ZSffMgEvX2Co":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"VPx-m6lxtFWwHWxTXMbug":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"qcQgSoLCZaXFo05HT9Gg0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"YagY8Bu8vnBYEHq7rD9LC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"rdgj2pgmbrC0f8jgAWnTI":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"q0P7A1TV1czFf2jUNBtz_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"3LyXXAH33LT2oJdy4SJIZ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"yjDg0aqeK0t8ouWAiZmLe":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"ynUaoGR-S2Y4qSsvaKkw_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"isrs5HKK0yKB3hXJvn6PL":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"wdk9avoTMlrcJM0dWP5ZQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"KkGMCGvQIurXxJGDs5haO":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"yJEJYlCqY5C6hoxO6l8pJ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"WL5PpYJiHyhxhMvPscQ4d":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"CTAznHGNSctzqpzLpfjmM":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"wrlYcG2tRAZJ1s6MqMfdp":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"bELFHP419WC7HfoU5Cr8g":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"cgXb1SvPi1q_9pvvimlsf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"3pIXspxYgtkIdiy3b4Mkx":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"I8yy80aPVRbxDZ7tdcq1C":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"OgexbmH4Z8jkiyl8sois0":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"zaVhDsqSCnDm4YqVGoxdt":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"9voWGqoCqFqquENwfPi2_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"KJvqFAFvdC9YjN94PPkr9":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"l1ID4U8x-su9qHh6LFs7r":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"K6fedm-OBOl2EdnlaIu9N":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"xKpLlzbLjVP_dmLZzLabO":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"PAjWHuSFJAfGBjxyWudB2":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"n0SRo2OVS2GfCoTjRoo6t":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"e91h0JRAxpI1QCVEM2V1y":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"eSN7N2QsAfjP4kuZO6QK1":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"LayDVOPvgkliMopKfO6Kt":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"jwZ930xmMyYFXrFiUetrz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"YZke9VhlVPQjDWDABgbD1":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"c2WdxA0W2V0FANF4tuU-O":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"RVJH-ELjSuDDLft2Ficge":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"_yeiuH6Rg-wUTZ2tcMdEL":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"5TeDNlqudH6YfaeVg8xic":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"rCJUZGnMicGt0kFL55jPE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"ld7W9G5XQTZuPF_9AGOIF":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"7lNTTyZuCS4Q8xp-2wOzC":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"MTGnJOqhmzTwtxcY13LIc":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"848FMb9ChYJYLoV6dkwao":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"xZVL82jGGFzuxjVtuEW6u":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"MI3dKe78dvQckXrH5p1yS":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"c9s1MkFOspLklE1kFaq9_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"DKlSQxhv0Yh4G_GLS7q97":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"xMqObFOmHVfkaokU4tpCg":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"6Chew5vb6D55IbL2_UP2_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"bepmPBM99pkDpo32BihnO":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"Q3ssDHPUu_lLl5ZMB1B7W":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"61Wsi8SLl6jEPin-do2xK":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"NHdWmysSh4Y9UWYOI52Qs":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"7UVfYD9tCL91OExeXt5k8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"IecRKoWSBlkfRl4OHOYvu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"oehVAE5v8y-L_3cBTsCNY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"ZsJhNOGyN0Plh9mxwjxYL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"Y604vVaiiAFJR_RmXEYjt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"4TM6q6REuufr_dvK_hpNW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"f0oyxgLDrg4BrIuIvM6kW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"Y-oID3jGIUKz_0XfktgXN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"rDiYBCB0RIU0eqURzAIZq":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"CjPEdB1AArt25mNdtXXSd":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"eCoHpEMxEAR_T6VRpz2aA":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"FJT0MjxoYgJ0M8d8yKInz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"S2y9ViPhToN1lF93Xdx53":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineWidth"},"UGaBzfjSxE1Z8u_JnZvm5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"GIWYtvf4VNtw2yg1uRowK":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"_51JtRrMF2hD1ShBnunxJ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#renderTarget"},"UjIT7WoRUVNSvS9dYoerV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"_QqMsDI8kylg9DwYWSRXH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"yI-wclVqw6Dm5dEw79QNK":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"NcvntVnxULg1sgFQ8wkLo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"9jH6IWKuPBHjZAn4diRgG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"c1TLBzw1fdgte_LWOj84r":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"ehmed4LUY9yVXvF8_Jv3H":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"iLSG2TkS6cXdkGhX2fiED":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"xDgSWNqkHhBrjl1hg4eVG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"kmemJskRSXR9wQfAoo52T":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"CM2jemZkGiMc2aJU6q8aA":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"ox9XTWTF59FivuguJU7rk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"qA8I7v1Lru9RXlHTIKJTy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"j9ppI1j6Fht-AHO5K4I9g":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"-z4niJxpKh396tNZjror9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"eCKDLiAKyznlf2mPnRTvk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"5xXAEr0GKu8dl5hvEI7zt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"ENNmDg_HuAFglFKCWGC1V":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"_f-4KPFPILCAmN9cEtn4S":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"wo6okKlx-AL8mgF2n4_ko":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"0v5hUtQiCARUdEab0nMH3":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"_fNpl9I2lkZa_wn-acSbh":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"Qx3CFomNOgoIQOmhZKvtO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"9Sg8XFg2Xy5EkZ_wYDzTm":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"cgn5dkASpcCTLvSX1Cf9n":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"eCt60N-8lFtROYLPM2u7t":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"G7DsKgclEx3B6q251A12s":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"uZz6vFqXI2bzItce6IXwj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"1io_WPY7sstNOK98b6YjD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"Lu_avZWruY0-fA2AmzT_n":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"gLER5F38tTWPICmXPwnrR":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"_L0YQXlyT_bctv70I0WNo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"CN0AOORMi1_iJF-4ZWRGN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"ds6PzkcKIJb6AZ_z6S7V8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getHeight"},"l2MbxJLuJr-kmYROei2Cz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"NNE9_pzJd9Zb5pfkZwaA6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"FaPcd9LxBc1V3MJWKJxe6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getSupportedCompressedTextureFormats"},"HuLHq_nf0R6OI820Hcs7i":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"Or6UnYI5xVfywrOP7cEgx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#hasSupportedCompressedFormats"},"kM4HEJ0SmgQ2hIQJoRNkc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"clGFMmbB2fwl1hZiqijyT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"V1M_WAOtrWSnZmDXFQlmG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"PuqZW-maUfWoU4MHyf8it":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"8wqhEzXSR4gmbTesgiH4p":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"n0h6PQA6cwoy0ugev_miD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"LwO8dvyF0gi9qObyXxiz-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"jRLtig9h-wYVMSfCszRoM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"ME06poTBVNXFfrIxt_RlB":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"a4JLtTyS2jdBF9wzpXF4U":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"Z6_wBCdaywCpq3L3iDaae":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"crWJDR0jK262v6AxlpFv8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"PoEfCUixz08Py-YQE8wVX":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"VJqENcQJHkVCEHE_7VuNU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"mNjuf2VfmeS1GWu_Urg4G":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"hAz2tjUFOOgOTnRpdtPRZ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"gSjAUHPAMEpHYi7RvZX5J":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"q9pUdEB6LpnjjjeU00U5H":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"4kivp_oR2fkKLIsrzFvlE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"p9YP3R7rNe0NlIuBotszj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"JYTDVdWLoY4jcpArzV5Al":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"tUyA5esSQlYSAggaG4ZXj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"KHgbiTTu-orCsoq97bcuP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"9VFgz3gB0KrPX5izg0yCe":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"q8K9-gy0s8RlkoSMVdY9K":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"8N4lQ6W5Ul7GgyNOlxP_h":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"mHkDIxS7FzhIsp9cu4kf6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"6_MG42nYr-gsbV0Sj_p9A":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"BeD20NyF9az81x6AIyNj-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"q0srTBmn0yHv225pKHdsS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"cOzkV93oVGVcC0xGyRJ7k":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"pC0TG5mwHnSgpExtihimD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"6RdMA5MBGZntPukC8haq7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"E5wbGROG4EwfHmeeLSV7g":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"wxXttbs2JWJranc0EI2_-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"NkMCKpa8aQeUvOrAVBO1E":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"Gn7ABEnFm6t7PL29aPu7-":{"uri":"/melonJS/docs/melonjs/World.html"},"Y5JJYWWOIfYzexv9sjOeL":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"m6wKyun9-7TEODF_QAlKh":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"zad2yL8a4hMFTzTzmQQJ0":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"g1gjZKDqBnGY6iAIInLmo":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"C904fSkyD2ga9wDX58NmU":{"uri":"/melonJS/docs/melonjs/World.html#app"},"e4foz0tjDghOVqCSop79W":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"6XlpdUZijfgGgpKY3J9p4":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"mfWPlisoATITlMrxQxgh3":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"lUOWxba1OXVL48oU6LLmw":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"z3rs2-Z2YnwEqJTn4dHH1":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"XD2oySAulxMiIFZSSMtWj":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"6qip3t79Vb1CExoZ4Rtn2":{"uri":"/melonJS/docs/melonjs/World.html#body"},"DWWHMmVwASxPo41jV5WC6":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"gUU1EPr1s3E-jOQb0NrLc":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"UwwTBoi90Q3hOfe7gVRb4":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"eeAgUkMYWDs5sIlseebim":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"sJtXO6lTSQxum_7Gacty5":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"9r9l4nxiPRqLX7I4W-YDa":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"2tVj1hovWLLHH1NCOa1-g":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"w8OaYhZIqNwinkQCevffQ":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"0dE3WrLHS-CSYgYUnmo91":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"Oxc4lqeRWCO1pehets_D2":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"iCHb8x8Ppv015-NSDAUPG":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"p2Qu8QlyBInjiLPZeoh1z":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"0QgFOk8UEksw9rW-yAjtz":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"xOu_LNQO0Y1baGEwlYd41":{"uri":"/melonJS/docs/melonjs/World.html#height"},"7jGfgYCKG_7K4K453KoP3":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"3Da530yV2IntT9Q2cAZe_":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"thUydAfFek1FI5Pk557d2":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"UPLgR70HATnWbliELMQkr":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"H0dKSkSs50nNim69HpQxk":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"IwTdWj8IUPiLjM0STU6LL":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"JU15-USsvXez4VrsUSlwv":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"PbtvfAzY5TKi5-EIMuNNB":{"uri":"/melonJS/docs/melonjs/World.html#left"},"YGIedWTJXR50vfuOTBt09":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"RsQkbL2iPoafZe9ewmXiD":{"uri":"/melonJS/docs/melonjs/World.html#name"},"vAtt-BkH7Nfdh8m7Dm0vX":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"J5_uPq8enUnFIpZYmn2BV":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"cNPeXIAdPuAJZjCGyD6RD":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"pbHd76mLVQKFBZLRnRHv5":{"uri":"/melonJS/docs/melonjs/World.html#points"},"ZJiuvATyyZf8NjOfiEo5b":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"3_gSDgdbovaUH4ocGWiUV":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"ek5IbmDeYdYcN4vjIAz6Y":{"uri":"/melonJS/docs/melonjs/World.html#right"},"k9myTM-GkE-vlbqCQj8hB":{"uri":"/melonJS/docs/melonjs/World.html#root"},"1rR7QP5CyPyVujy-TkFGG":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"czJt7-ntkSk5h5Li3pXnS":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"B8JNHejH6x5odqgHbJpef":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"01JX4kguBtzhhfMh6oW4i":{"uri":"/melonJS/docs/melonjs/World.html#top"},"27ggCXcfiaQyT3VceAdFR":{"uri":"/melonJS/docs/melonjs/World.html#type"},"VJpAjOFe4WvLN7iUMipg1":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"SO1O5T69TmmgGdhRAzZvp":{"uri":"/melonJS/docs/melonjs/World.html#width"},"c9wIOQsQ0JMm0Ian_xT6T":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"_PSDRiEOO0n7WeiWWXB9V":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"ozVfMP4InhsMC_80rfakT":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"Qnn3jeK6bmUBRvUpYb_Qd":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"x0cPTY7QHQk1biY6sX_P4":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"zfdYTawFtJP6vkWV_7q-y":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"13f7vhpXBORxpbwYQwLFQ":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"B849kXX0w-POj1fGhzqjD":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"Qq6m3kbJz8fH4Sorlb0LQ":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"Vt5Lo1IU1rxmHVCj3d-8J":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"KadJx24XM_vXnHOdrX7c_":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"4uNaMR9WeIVsLa8m-CC52":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"cCcHammFihQvPWvdau_oc":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"4LGT4nLJhJMKr1NHm7cO9":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"mZHIAfuyDnjBZLIyVN_f_":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"1N0H2GSDGVdkc4mSXglnC":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"3JMeiBGNRdti2mEmW5PCZ":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"YKLOGYAnqT42gq1LB9SZn":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"c16fM_zpT8C1Q2fv2Qoa9":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"FoSFUVXe-5vovMhUV6eTF":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"iFc6hw2YIfHaPkJITD7s2":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"n1vfjhgdQsFhrS3iBSU_x":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"dh0ATHAYz97YELPuNgYAT":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"2MYFQuvCBAIcgz7QjzTTS":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"sTztQOGsxUTecdIMHeeyD":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"TAvIXIyN11NjZzpqpG5pA":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"kRlDTaZKkG4ddTGjOTimZ":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"m3cNX3b5svmQ0uZXLNB4z":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"wzvmSVlO-JV3beJ0FRBQj":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"VT_EwA3V6BSKHay4J70N6":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"r9Dc422rpZuaR5PGMeRQT":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"dV_daymMoN7M1BRe2TotF":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"31Vv0pa6NQ1034I0sh98w":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"-TuHRPsopaBqLUJaaWNM_":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"rEI9Ug4hK_NWf0kEhrvdb":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"mxO-M1pje-hCyqOfi76-r":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"WcxU5yt69yoPMnPRv4vbc":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"K0-3sONTyy07hLtm0vZjc":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"knZHDXAb4wQrWY1dvmTK7":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"IeW0jK-7lwbjdN_tuGziC":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"uaYowyUTjvmVUwdKpYypZ":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"GLa8sNUpuCYwvT5fnzJbW":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"GpZ0EGcnOjITMYADvQUOs":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"1rPpOGE_RCiMoLdLWh2bZ":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"JGTAr4W4two1p6e9uBFjv":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"T0A4s2Y_-XBkGMGLCjxdG":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"JynzrLz7UhLt0fFeJ99x2":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"F-MV3Y_sNrzP5ap1GuETq":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"2tQHrKfybaBrPdZs8E357":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"MUsU0zcLDRLvGSwgwlKqT":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"1sIFLmxJ7DDXkGklGSubt":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"gFi3h1FoY8ENLOZLWnU-5":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"q0AR9F36hgI7TAenkokub":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"ogLVsPt3wO1zWeeOX_o0h":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"VNkuRjzd7olD2i_iHYWjl":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"L8xuK6Yru-YOlAa3cE4-h":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"cW-x-DDGTvXUgmPBlWydW":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"VjjdkisZbWR7iXEXw4myz":{"uri":"/melonJS/docs/melonjs/World.html#step"},"8OEeLwpsNjQyx4R0G3g5f":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"Th1sP3oyI_lBGh87Tk2BL":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"ELCQx7QWV2zlT7DJlMH9L":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"rMh9-aiO41eQ0HuozDkyb":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"kK44n8mNQxqmVSF-9APjs":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"ZD6JQ55rzWZvfIu_eBWsc":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"f7VCGUJoI0aB48UJ535vY":{"uri":"/melonJS/docs/melonjs/World.html#union"},"fIDC51SwNX3H5qvOvycGR":{"uri":"/melonJS/docs/melonjs/World.html#update"},"Iwh0mE2DXb34vILC_VzV7":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"Y78rmUNez4tv9BAFSLj5R":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"Z4qzUVi4zzeuSn4jQBClp":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"ODpE4SUGGKyTFVOlemjRm":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"7nhVwRWziW8MPqHvEa9o0":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html"},"ngh-3my0eIcefENh3Io13":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#antiAlias"},"oe6uSQtFvXKaFF4oZtCGm":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#canvas"},"WI_CMHIwlYcOBFlPGqIjN":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#compositor"},"MMAnAXS7AqZMbLbvtpTna":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#consoleHeader"},"jUr0KxkQQo7nyAGPRDogQ":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#depthTest"},"IiMTs4HfPz1JVybT3YMFs":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#parent"},"2_F0soM7QXezIVLxhkIB_":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#physic"},"qSaBy7TwVk-dU8DhxLIy6":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#powerPreference"},"fAyy5npXCkKGmpjQ3ItbD":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#preferWebGL1"},"IsHO37VF2-fZh0gfr9n7z":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#renderer"},"cQxpugKobto_HDpjdyAFj":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scale"},"yc3eRs3KgqJ97tWaCFuQc":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleMethod"},"AfcvkxJs0KNGQbUK0chcR":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleTarget"},"1FfJRvaf-VfgUqCEjrDv5":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#transparent"},"Mdm9X1muLu3v3WW5Lx1g7":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomX"},"cCYRvv-XRbfQxKiPh1RsN":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomY"},"QHiVnO_c7x4Zm61w7SZPZ":{"uri":"global.html#AUTO"},"m8W_54f2mPX99_r9ET1_7":{"uri":"global.html#CANVAS"},"9bn4RZ3BndjBVDCQgoUqn":{"uri":"global.html#version"},"RUMA7ZL6Y-WKMfFurSHqb":{"uri":"global.html#WEBGL"},"LEs_FNM9Hf3itgNsDeJcT":{"uri":"global.html#failureLoadedAssets"},"lbmSPX48mUUCqY8Y49pdQ":{"uri":"global.html#imgList"},"yJJOHCwTe3UsUcDSidYTI":{"uri":"global.html#initialized"},"hYCt4X78MTsrPQh1LCvDm":{"uri":"global.html#parserInitialized"},"n_6pnZfhwOtKGnLpcF98T":{"uri":"global.html#parsers"},"NZ5ZwHiSCInC4s3d7yUcp":{"uri":"global.html#skipAutoInit"},"-AMo2UudZNbRJbwVScHH6":{"uri":"/melonJS/docs/melonjs/boot.html"},"8u3xUVP1W9NdE2h9kDoOC":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"MkdvHTui0Z6wy7wCpiTkh":{"uri":"/melonJS/docs/melonjs/warning.html"},"nnMyK68cwp5BfbkTGxatv":{"uri":"/melonJS/docs/melonjs/onresize.html"},"_wxMmH84ZjrcIWrbbB5ne":{"uri":"/melonJS/docs/melonjs/scale.html"}}} \ No newline at end of file diff --git a/docs/docs/melonjs.api.json.md5 b/docs/docs/melonjs.api.json.md5 index 383a9a83b..ab8211f1e 100644 --- a/docs/docs/melonjs.api.json.md5 +++ b/docs/docs/melonjs.api.json.md5 @@ -1 +1 @@ -02a04f3cee255895aa9684c8317d01cc \ No newline at end of file +223b069428964396d1d76519e3232ff7 \ No newline at end of file diff --git a/docs/docs/melonjs.html b/docs/docs/melonjs.html index d78e3ad82..4d4fdc2f2 100644 --- a/docs/docs/melonjs.html +++ b/docs/docs/melonjs.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Application.html b/docs/docs/melonjs/Application.html index 4c48b2348..d376508bb 100644 --- a/docs/docs/melonjs/Application.html +++ b/docs/docs/melonjs/Application.html @@ -1,5 +1,5 @@ - + @@ -112,10 +112,10 @@

                              Constructor

                              -
                              +
                              -
                              new Application(width: number, height: number, options: Application.Settings) → {}
                              +
                              new Application(width: number, height: number, options: ApplicationSettings) → {}
                              @@ -180,7 +180,7 @@

                              Constructor

                              options
+ + + + + + + + + + - - - - - + + + + +
Renderer.getHeight
Renderer.getWidth - Application.Settings + ApplicationSettings

<optional>

@@ -344,7 +344,7 @@

Properties from Application

- Application.settings + ApplicationSettings @@ -481,7 +481,7 @@

Methods from Application

- init(width: number, height: number, options: Application.Settings) + init(width: number, height: number, options: ApplicationSettings)
@@ -971,9 +971,9 @@

Public Properties

-
settings: Application.settings
+
settings: ApplicationSettings
 
-Application.settings
+ApplicationSettings
@@ -1331,9 +1331,9 @@

Public Methods

-
+
-
+
Public Methods
-
init(width: number, height: number, options: Application.Settings) → {}
+
init(width: number, height: number, options: ApplicationSettings) → {}
@@ -1422,7 +1422,7 @@

Public Methods

options
- Application.Settings + ApplicationSettings

<optional>

@@ -1825,7 +1825,7 @@

Public Methods

getParentElement -
  • +
  • init
  • diff --git a/docs/docs/melonjs/Application/Settings.html b/docs/docs/melonjs/ApplicationSettings.html similarity index 68% rename from docs/docs/melonjs/Application/Settings.html rename to docs/docs/melonjs/ApplicationSettings.html index 9244ff822..af0eb1483 100644 --- a/docs/docs/melonjs/Application/Settings.html +++ b/docs/docs/melonjs/ApplicationSettings.html @@ -1,10 +1,10 @@ - + - melonJS: Settings + melonJS: ApplicationSettings @@ -74,22 +74,19 @@ > - Application - > - - Settings + ApplicationSettings

    - Application.Settings + ApplicationSettings

    -
    typedef Settings
    +
    typedef ApplicationSettings
     
    -object
    +Object
    @@ -101,14 +98,6 @@

    -
    - See: - - Application - -
    - - @@ -127,7 +116,7 @@

    Summary

    -

    Properties from Settings

    +

    Properties from ApplicationSettings

    @@ -141,7 +130,7 @@

    Properties from Settings

    + + + + + + + + + + + + + + + + + + + + + + + + + - +
    - static antiAlias = false + static antiAlias = false
    @@ -157,7 +146,23 @@

    Properties from Settings

    - static canvas + static canvas +
    +
    + +
    +
    + + Compositor + + +
    + static compositor
    @@ -173,7 +178,7 @@

    Properties from Settings

    - static consoleHeader = true + static consoleHeader = true
    @@ -189,7 +194,7 @@

    Properties from Settings

    - static depthTest = "sorting" + static depthTest = "sorting"
    @@ -205,7 +210,23 @@

    Properties from Settings

    - static parent = document.body + static parent = document.body +
    +
    + +
    +
    + + string + + +
    + static physic = "builtin"
    @@ -221,7 +242,7 @@

    Properties from Settings

    - static powerPreference = "default" + static powerPreference = "default"
    @@ -237,7 +258,7 @@

    Properties from Settings

    - static preferWebGL1 = false + static preferWebGL1 = false
    @@ -253,7 +274,7 @@

    Properties from Settings

    - static renderer = AUTO + static renderer = AUTO
    @@ -269,7 +290,7 @@

    Properties from Settings

    - static scale = 1.0 + static scale = 1.0
    @@ -285,7 +306,7 @@

    Properties from Settings

    - static scaleMethod = "fit" + static scaleMethod = "fit"
    @@ -301,7 +322,7 @@

    Properties from Settings

    - static scaleTarget + static scaleTarget
    @@ -317,7 +338,39 @@

    Properties from Settings

    - static transparent = false + static transparent = false +
    +
    + +
    +
    + + number + + +
    + static zoomX = width +
    +
    + +
    +
    + + number + + +
    + static zoomY = height
    @@ -367,7 +420,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -416,7 +469,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -458,6 +511,55 @@

    Public Properties

    +
    + + + +
    + +
    + + + + + compositor + + + + + + settings.js:1 + + + +
    + + +
    static compositor: Compositor
    +
    +Compositor
    + +
    + +
    + +
    +
    +

    a custom compositor class (WebGL only)

    +
    + + + + + + + + +
    @@ -465,7 +567,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -514,7 +616,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -563,7 +665,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -605,6 +707,55 @@

    Public Properties

    +
    + + + +
    + +
    + + + + + physic + + + + + + settings.js:1 + + + +
    + + +
    static physic: string = "builtin"
    +
    +string
    + +
    + +
    + +
    +
    +

    the physic system to use (default: "builtin", or "none" to disable builtin physic)

    +
    + + + + + + + + +
    @@ -612,7 +763,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -661,7 +812,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -710,7 +861,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -759,7 +910,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -808,7 +959,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -873,7 +1024,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -922,7 +1073,7 @@

    Public Properties

    - + Public Properties - settings.js:24 + settings.js:1 @@ -964,6 +1115,104 @@

    Public Properties

    +
    + + + +
    + +
    + + + + + zoomX + + + + + + settings.js:1 + + + +
    + + +
    static zoomX: number = width
    +
    +number
    + +
    + +
    + +
    +
    +

    The actual width of the canvas with scaling applied

    +
    + + + + + + + + + +
    + + + +
    + +
    + + + + + zoomY + + + + + + settings.js:1 + + + +
    + + +
    static zoomY: number = height
    +
    +number
    + +
    + +
    + +
    +
    +

    The actual height of the canvas with scaling applied

    +
    + + + + + + + + +
    @@ -996,51 +1245,67 @@

    Public Properties

    diff --git a/docs/docs/melonjs/BitmapText.html b/docs/docs/melonjs/BitmapText.html index 708e4af5f..f8b50b709 100644 --- a/docs/docs/melonjs/BitmapText.html +++ b/docs/docs/melonjs/BitmapText.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Body.html b/docs/docs/melonjs/Body.html index 7bc7cfdf4..40520e0b3 100644 --- a/docs/docs/melonjs/Body.html +++ b/docs/docs/melonjs/Body.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Bounds.html b/docs/docs/melonjs/Bounds.html index 53a8f2f6c..627d6b9a9 100644 --- a/docs/docs/melonjs/Bounds.html +++ b/docs/docs/melonjs/Bounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Camera2d.html b/docs/docs/melonjs/Camera2d.html index 1f94bf763..e831a477d 100644 --- a/docs/docs/melonjs/Camera2d.html +++ b/docs/docs/melonjs/Camera2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Camera2d/AXIS.html b/docs/docs/melonjs/Camera2d/AXIS.html index 78846b7e0..adf17eff6 100644 --- a/docs/docs/melonjs/Camera2d/AXIS.html +++ b/docs/docs/melonjs/Camera2d/AXIS.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/CanvasRenderTarget.html b/docs/docs/melonjs/CanvasRenderTarget.html index aaa919a12..e6ae3123e 100644 --- a/docs/docs/melonjs/CanvasRenderTarget.html +++ b/docs/docs/melonjs/CanvasRenderTarget.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/CanvasRenderer.html b/docs/docs/melonjs/CanvasRenderer.html index e2a054648..f4ef62958 100644 --- a/docs/docs/melonjs/CanvasRenderer.html +++ b/docs/docs/melonjs/CanvasRenderer.html @@ -1,5 +1,5 @@ - + @@ -104,10 +104,10 @@

    Constructor

    -
    +
    -
    new CanvasRenderer(options: Application.Settings) → {}
    +
    new CanvasRenderer(options: ApplicationSettings) → {}
    @@ -140,7 +140,7 @@

    Constructor

    options
    - Application.Settings + ApplicationSettings

    <optional>

    @@ -177,6 +177,39 @@

    Summary

    +
    +
    + +

    Properties from CanvasRenderer

    +
    +
    + + + + + + + + + +
    + + +
    + lineWidth +
    +
    + +

    sets or returns the thickness of lines for shape drawing

    + +
    +
    +
    +
    + @@ -662,7 +695,7 @@

    Methods from CanvasRenderer

    - setLineWidth(width: number) + setLineWidth(width)
    @@ -1141,6 +1174,20 @@

    Methods inherited from Renderer

    + + +
    + getHeight() +
    +
    + +
    +
    @@ -1341,6 +1388,60 @@

    Methods inherited from Renderer

    +
    +

    Public Properties

    +
    + + + +
    + +
    + + + + + lineWidth + + + + + + canvas_renderer.js:672 + + + +
    + + +
    lineWidth
    + +
    + +
    + +
    +

    sets or returns the thickness of lines for shape drawing

    +
    +
    + + + + + + + + + +
    + + +
    +
    @@ -1578,7 +1679,7 @@

    Public Methods

    - canvas_renderer.js:857 + canvas_renderer.js:864 @@ -1748,7 +1849,7 @@

    Public Methods

    - canvas_renderer.js:738 + canvas_renderer.js:745 @@ -4389,9 +4490,9 @@

    Public Methods

    -
    +
    -
    +
    Public Methods - canvas_renderer.js:672 + deprecated.js:167
    -
    setLineWidth(width: number) → {}
    +
    setLineWidth(width) → {}
    +
    + Deprecated: since 17.3.0 +
    +
    -

    Set the line width on the context

    +

    return the height of the system Canvas

    @@ -4448,13 +4553,11 @@

    Public Methods

    width
    - number + -

    Line width

    -
    @@ -4464,6 +4567,14 @@

    Public Methods

    + +
    + See: + + lineWidth + +
    +
    @@ -4485,7 +4596,7 @@

    Public Methods

    - canvas_renderer.js:770 + canvas_renderer.js:777 @@ -4598,7 +4709,7 @@

    Public Methods

    - canvas_renderer.js:680 + canvas_renderer.js:687 @@ -5808,7 +5919,7 @@

    Public Methods

    - canvas_renderer.js:695 + canvas_renderer.js:702 @@ -5955,7 +6066,7 @@

    Public Methods

    - canvas_renderer.js:725 + canvas_renderer.js:732 @@ -6049,6 +6160,18 @@

    Public Methods

    + +
    +
    Public Properties
    + +
    + @@ -6184,7 +6307,7 @@

    Public Methods

    setGlobalAlpha -
  • +
  • setLineWidth
  • diff --git a/docs/docs/melonjs/CanvasTexture.html b/docs/docs/melonjs/CanvasTexture.html index b83fa2e60..f91868f73 100644 --- a/docs/docs/melonjs/CanvasTexture.html +++ b/docs/docs/melonjs/CanvasTexture.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Collectable.html b/docs/docs/melonjs/Collectable.html index 62403719a..57b9da1cd 100644 --- a/docs/docs/melonjs/Collectable.html +++ b/docs/docs/melonjs/Collectable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Color.html b/docs/docs/melonjs/Color.html index c08df9977..ca0b4f84f 100644 --- a/docs/docs/melonjs/Color.html +++ b/docs/docs/melonjs/Color.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ColorLayer.html b/docs/docs/melonjs/ColorLayer.html index 4f2266ced..426ba5ccf 100644 --- a/docs/docs/melonjs/ColorLayer.html +++ b/docs/docs/melonjs/ColorLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Compositor.html b/docs/docs/melonjs/Compositor.html index c49da94a8..98b930c9e 100644 --- a/docs/docs/melonjs/Compositor.html +++ b/docs/docs/melonjs/Compositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Container.html b/docs/docs/melonjs/Container.html index 83b5a3932..c7be0bded 100644 --- a/docs/docs/melonjs/Container.html +++ b/docs/docs/melonjs/Container.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Detector.html b/docs/docs/melonjs/Detector.html index ad97ad72e..458ae3110 100644 --- a/docs/docs/melonjs/Detector.html +++ b/docs/docs/melonjs/Detector.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Draggable.html b/docs/docs/melonjs/Draggable.html index 8c9039fdf..e3e63f526 100644 --- a/docs/docs/melonjs/Draggable.html +++ b/docs/docs/melonjs/Draggable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DraggableEntity.html b/docs/docs/melonjs/DraggableEntity.html index 8fb974337..bb09e736f 100644 --- a/docs/docs/melonjs/DraggableEntity.html +++ b/docs/docs/melonjs/DraggableEntity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DropTarget.html b/docs/docs/melonjs/DropTarget.html index d32191d84..3a2718c6a 100644 --- a/docs/docs/melonjs/DropTarget.html +++ b/docs/docs/melonjs/DropTarget.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DroptargetEntity.html b/docs/docs/melonjs/DroptargetEntity.html index 8c13b35c9..d7057e3e8 100644 --- a/docs/docs/melonjs/DroptargetEntity.html +++ b/docs/docs/melonjs/DroptargetEntity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Ellipse.html b/docs/docs/melonjs/Ellipse.html index d5a5a0389..4fd88336a 100644 --- a/docs/docs/melonjs/Ellipse.html +++ b/docs/docs/melonjs/Ellipse.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Entity.html b/docs/docs/melonjs/Entity.html index e35c34654..4bd4a2d6d 100644 --- a/docs/docs/melonjs/Entity.html +++ b/docs/docs/melonjs/Entity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/GLShader.html b/docs/docs/melonjs/GLShader.html index 0dc3c6261..71f44d0db 100644 --- a/docs/docs/melonjs/GLShader.html +++ b/docs/docs/melonjs/GLShader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/GUI_Object.html b/docs/docs/melonjs/GUI_Object.html index 40787ee0f..60376e922 100644 --- a/docs/docs/melonjs/GUI_Object.html +++ b/docs/docs/melonjs/GUI_Object.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ImageLayer.html b/docs/docs/melonjs/ImageLayer.html index d17798293..f3cf63592 100644 --- a/docs/docs/melonjs/ImageLayer.html +++ b/docs/docs/melonjs/ImageLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Light2d.html b/docs/docs/melonjs/Light2d.html index 6a45e9b26..63779ab1e 100644 --- a/docs/docs/melonjs/Light2d.html +++ b/docs/docs/melonjs/Light2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Line.html b/docs/docs/melonjs/Line.html index a74d9909d..cc5be088c 100644 --- a/docs/docs/melonjs/Line.html +++ b/docs/docs/melonjs/Line.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math.html b/docs/docs/melonjs/Math.html index e935d7cb7..c6edb0c4f 100644 --- a/docs/docs/melonjs/Math.html +++ b/docs/docs/melonjs/Math.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/clamp.html b/docs/docs/melonjs/Math/clamp.html index d2591bb91..fdcba9d28 100644 --- a/docs/docs/melonjs/Math/clamp.html +++ b/docs/docs/melonjs/Math/clamp.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/degToRad.html b/docs/docs/melonjs/Math/degToRad.html index 545ad92da..2a1b485d0 100644 --- a/docs/docs/melonjs/Math/degToRad.html +++ b/docs/docs/melonjs/Math/degToRad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/isPowerOfFour.html b/docs/docs/melonjs/Math/isPowerOfFour.html index 541d5d5ef..64acc5b7b 100644 --- a/docs/docs/melonjs/Math/isPowerOfFour.html +++ b/docs/docs/melonjs/Math/isPowerOfFour.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/isPowerOfTwo.html b/docs/docs/melonjs/Math/isPowerOfTwo.html index bfb1c1899..89ec6d86b 100644 --- a/docs/docs/melonjs/Math/isPowerOfTwo.html +++ b/docs/docs/melonjs/Math/isPowerOfTwo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/nextPowerOfTwo.html b/docs/docs/melonjs/Math/nextPowerOfTwo.html index 5150a5d7b..2ed174d1b 100644 --- a/docs/docs/melonjs/Math/nextPowerOfTwo.html +++ b/docs/docs/melonjs/Math/nextPowerOfTwo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/pow.html b/docs/docs/melonjs/Math/pow.html index 78bc5d45b..4655b0799 100644 --- a/docs/docs/melonjs/Math/pow.html +++ b/docs/docs/melonjs/Math/pow.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/radToDeg.html b/docs/docs/melonjs/Math/radToDeg.html index a3c9a87da..2043da1ac 100644 --- a/docs/docs/melonjs/Math/radToDeg.html +++ b/docs/docs/melonjs/Math/radToDeg.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/random.html b/docs/docs/melonjs/Math/random.html index 3251252ac..ec0ab3670 100644 --- a/docs/docs/melonjs/Math/random.html +++ b/docs/docs/melonjs/Math/random.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/randomFloat.html b/docs/docs/melonjs/Math/randomFloat.html index 81e95fa25..425a7f719 100644 --- a/docs/docs/melonjs/Math/randomFloat.html +++ b/docs/docs/melonjs/Math/randomFloat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/round.html b/docs/docs/melonjs/Math/round.html index 2bb467c4c..490e7f1ec 100644 --- a/docs/docs/melonjs/Math/round.html +++ b/docs/docs/melonjs/Math/round.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/toBeCloseTo.html b/docs/docs/melonjs/Math/toBeCloseTo.html index 5118ddae3..67479b705 100644 --- a/docs/docs/melonjs/Math/toBeCloseTo.html +++ b/docs/docs/melonjs/Math/toBeCloseTo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/weightedRandom.html b/docs/docs/melonjs/Math/weightedRandom.html index b56146732..dbab0759c 100644 --- a/docs/docs/melonjs/Math/weightedRandom.html +++ b/docs/docs/melonjs/Math/weightedRandom.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Matrix2d.html b/docs/docs/melonjs/Matrix2d.html index 5ebdc8e55..81d59b597 100644 --- a/docs/docs/melonjs/Matrix2d.html +++ b/docs/docs/melonjs/Matrix2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Matrix3d.html b/docs/docs/melonjs/Matrix3d.html index 1fb52fe5d..89f56d18e 100644 --- a/docs/docs/melonjs/Matrix3d.html +++ b/docs/docs/melonjs/Matrix3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/NineSliceSprite.html b/docs/docs/melonjs/NineSliceSprite.html index ff180a7fb..b702d3072 100644 --- a/docs/docs/melonjs/NineSliceSprite.html +++ b/docs/docs/melonjs/NineSliceSprite.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObjectPool.html b/docs/docs/melonjs/ObjectPool.html index 61303f028..b9244e433 100644 --- a/docs/docs/melonjs/ObjectPool.html +++ b/docs/docs/melonjs/ObjectPool.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObservableVector2d.html b/docs/docs/melonjs/ObservableVector2d.html index cc604a699..4d059b5c4 100644 --- a/docs/docs/melonjs/ObservableVector2d.html +++ b/docs/docs/melonjs/ObservableVector2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObservableVector3d.html b/docs/docs/melonjs/ObservableVector3d.html index f3ef25d68..634b02fc6 100644 --- a/docs/docs/melonjs/ObservableVector3d.html +++ b/docs/docs/melonjs/ObservableVector3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Particle.html b/docs/docs/melonjs/Particle.html index 8d357538b..525b9eda9 100644 --- a/docs/docs/melonjs/Particle.html +++ b/docs/docs/melonjs/Particle.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ParticleEmitter.html b/docs/docs/melonjs/ParticleEmitter.html index b2d19a731..fae41bd27 100644 --- a/docs/docs/melonjs/ParticleEmitter.html +++ b/docs/docs/melonjs/ParticleEmitter.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ParticleEmitterSettings.html b/docs/docs/melonjs/ParticleEmitterSettings.html index e0fa93825..a75cd593e 100644 --- a/docs/docs/melonjs/ParticleEmitterSettings.html +++ b/docs/docs/melonjs/ParticleEmitterSettings.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Path2D.html b/docs/docs/melonjs/Path2D.html index 6aeee56e0..4c95da84b 100644 --- a/docs/docs/melonjs/Path2D.html +++ b/docs/docs/melonjs/Path2D.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Point.html b/docs/docs/melonjs/Point.html index dacb60487..c99f75c51 100644 --- a/docs/docs/melonjs/Point.html +++ b/docs/docs/melonjs/Point.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Pointer.html b/docs/docs/melonjs/Pointer.html index 78caee0cd..29f5111ea 100644 --- a/docs/docs/melonjs/Pointer.html +++ b/docs/docs/melonjs/Pointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Polygon.html b/docs/docs/melonjs/Polygon.html index b2df095cf..ae38230ac 100644 --- a/docs/docs/melonjs/Polygon.html +++ b/docs/docs/melonjs/Polygon.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/PrimitiveCompositor.html b/docs/docs/melonjs/PrimitiveCompositor.html index b52186eca..3048ec0fb 100644 --- a/docs/docs/melonjs/PrimitiveCompositor.html +++ b/docs/docs/melonjs/PrimitiveCompositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/QuadCompositor.html b/docs/docs/melonjs/QuadCompositor.html index e13cb708b..370dfa801 100644 --- a/docs/docs/melonjs/QuadCompositor.html +++ b/docs/docs/melonjs/QuadCompositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/QuadTree.html b/docs/docs/melonjs/QuadTree.html index 763256fea..688591a81 100644 --- a/docs/docs/melonjs/QuadTree.html +++ b/docs/docs/melonjs/QuadTree.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Rect.html b/docs/docs/melonjs/Rect.html index aee0ab489..b93d4bfab 100644 --- a/docs/docs/melonjs/Rect.html +++ b/docs/docs/melonjs/Rect.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderable.html b/docs/docs/melonjs/Renderable.html index 091127e51..5d584e0ca 100644 --- a/docs/docs/melonjs/Renderable.html +++ b/docs/docs/melonjs/Renderable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer.html b/docs/docs/melonjs/Renderer.html index 2c92c6031..0c9dee755 100644 --- a/docs/docs/melonjs/Renderer.html +++ b/docs/docs/melonjs/Renderer.html @@ -1,5 +1,5 @@ - + @@ -104,10 +104,10 @@

    Constructor

    -
    +
    -
    new Renderer(options: Application.Settings) → {}
    +
    new Renderer(options: ApplicationSettings) → {}
    @@ -140,7 +140,7 @@

    Constructor

    options
    - Application.Settings + ApplicationSettings

    <optional>

    @@ -509,6 +509,20 @@

    Methods from Renderer

    + + +
    + getHeight() +
    +
    + +
    +
    @@ -1888,6 +1902,65 @@

    Public Methods

    +
    + +
    + + + + + getHeight + + + + + + deprecated.js:133 + + + +
    + + +
    getHeight() → {}
    + +
    + +
    + Deprecated: since 15.12.0 +
    + +
    + +
    +
    +

    return the height of the system Canvas

    +
    + + + + + + + + + + +
    + See: + + height + +
    + +
    + + +
    @@ -1905,7 +1978,7 @@

    Public Methods

    - deprecated.js:70 + deprecated.js:72 @@ -1987,7 +2060,7 @@

    Public Methods

    - deprecated.js:83 + deprecated.js:85 @@ -3489,6 +3562,10 @@

    Public Methods

    getContext +
  • + getHeight +
  • +
  • getScreenCanvas
  • diff --git a/docs/docs/melonjs/Renderer/Texture.html b/docs/docs/melonjs/Renderer/Texture.html index 85656db99..0a34d0eff 100644 --- a/docs/docs/melonjs/Renderer/Texture.html +++ b/docs/docs/melonjs/Renderer/Texture.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer/getHeight.html b/docs/docs/melonjs/Renderer/getHeight.html deleted file mode 100644 index e340095fe..000000000 --- a/docs/docs/melonjs/Renderer/getHeight.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - melonJS: getHeight - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    -
    - -
    -
    -
    - -
    - - -
    -
    - -
    -

    - Renderer.getHeight -

    - - -
    (deprecated: since 15.12.0)
    - - -
    - - -
    class getHeight
    - - -
    -
    -

    return the height of the system Canvas

    -
    - - - - - -
    - See: - - height - -
    - - - - -
    -

    Constructor

    -
    - - - -
    - - -
    new Renderer.getHeight() → {}
    - -
    - -
    - -
    -
    - - - - - - - - - -
    - - -
    - - - - - - -
    -

    Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    - - - - -
    - -
    - -
    - - - - -
    -
    - -
    -
    - - Powered by webdoc! - -
    -
    -
    -
    - - - - diff --git a/docs/docs/melonjs/Renderer/getWidth.html b/docs/docs/melonjs/Renderer/getWidth.html index b31b7d815..e2f3da621 100644 --- a/docs/docs/melonjs/Renderer/getWidth.html +++ b/docs/docs/melonjs/Renderer/getWidth.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ResponseObject.html b/docs/docs/melonjs/ResponseObject.html index aa2a72a3d..02c074e8b 100644 --- a/docs/docs/melonjs/ResponseObject.html +++ b/docs/docs/melonjs/ResponseObject.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/RoundRect.html b/docs/docs/melonjs/RoundRect.html index 3f21a8ba1..00eb27a1b 100644 --- a/docs/docs/melonjs/RoundRect.html +++ b/docs/docs/melonjs/RoundRect.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Sprite.html b/docs/docs/melonjs/Sprite.html index b60dbc8fc..49ba67bc8 100644 --- a/docs/docs/melonjs/Sprite.html +++ b/docs/docs/melonjs/Sprite.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Stage.html b/docs/docs/melonjs/Stage.html index d56f837c6..f26a441e0 100644 --- a/docs/docs/melonjs/Stage.html +++ b/docs/docs/melonjs/Stage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXHexagonalRenderer.html b/docs/docs/melonjs/TMXHexagonalRenderer.html index 3c35f1661..e2896dbd5 100644 --- a/docs/docs/melonjs/TMXHexagonalRenderer.html +++ b/docs/docs/melonjs/TMXHexagonalRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXIsometricRenderer.html b/docs/docs/melonjs/TMXIsometricRenderer.html index 30c629ea0..70e4dbbf8 100644 --- a/docs/docs/melonjs/TMXIsometricRenderer.html +++ b/docs/docs/melonjs/TMXIsometricRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXLayer.html b/docs/docs/melonjs/TMXLayer.html index 3017cfa24..13d85b153 100644 --- a/docs/docs/melonjs/TMXLayer.html +++ b/docs/docs/melonjs/TMXLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXOrthogonalRenderer.html b/docs/docs/melonjs/TMXOrthogonalRenderer.html index 858bac244..28028a87c 100644 --- a/docs/docs/melonjs/TMXOrthogonalRenderer.html +++ b/docs/docs/melonjs/TMXOrthogonalRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXRenderer.html b/docs/docs/melonjs/TMXRenderer.html index 7558df352..ca4630e5d 100644 --- a/docs/docs/melonjs/TMXRenderer.html +++ b/docs/docs/melonjs/TMXRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXStaggeredRenderer.html b/docs/docs/melonjs/TMXStaggeredRenderer.html index 203a68683..9bf903c7b 100644 --- a/docs/docs/melonjs/TMXStaggeredRenderer.html +++ b/docs/docs/melonjs/TMXStaggeredRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTileMap.html b/docs/docs/melonjs/TMXTileMap.html index ef7df8ebc..a3acfc184 100644 --- a/docs/docs/melonjs/TMXTileMap.html +++ b/docs/docs/melonjs/TMXTileMap.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTileset.html b/docs/docs/melonjs/TMXTileset.html index cd131e5b7..1c56c9a66 100644 --- a/docs/docs/melonjs/TMXTileset.html +++ b/docs/docs/melonjs/TMXTileset.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTilesetGroup.html b/docs/docs/melonjs/TMXTilesetGroup.html index ca8a773ab..492326ab0 100644 --- a/docs/docs/melonjs/TMXTilesetGroup.html +++ b/docs/docs/melonjs/TMXTilesetGroup.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils.html b/docs/docs/melonjs/TMXUtils.html index 6ce510423..3e673c4c6 100644 --- a/docs/docs/melonjs/TMXUtils.html +++ b/docs/docs/melonjs/TMXUtils.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/applyTMXProperties.html b/docs/docs/melonjs/TMXUtils/applyTMXProperties.html index 7cae5ac74..e9134c346 100644 --- a/docs/docs/melonjs/TMXUtils/applyTMXProperties.html +++ b/docs/docs/melonjs/TMXUtils/applyTMXProperties.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decode.html b/docs/docs/melonjs/TMXUtils/decode.html index 0278a9db2..857ab6574 100644 --- a/docs/docs/melonjs/TMXUtils/decode.html +++ b/docs/docs/melonjs/TMXUtils/decode.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html b/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html index 4fd987125..efe96cabe 100644 --- a/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html +++ b/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decodeCSV.html b/docs/docs/melonjs/TMXUtils/decodeCSV.html index 87b76b7aa..501d4043b 100644 --- a/docs/docs/melonjs/TMXUtils/decodeCSV.html +++ b/docs/docs/melonjs/TMXUtils/decodeCSV.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decompress.html b/docs/docs/melonjs/TMXUtils/decompress.html index 6fb9afda0..6e0075a02 100644 --- a/docs/docs/melonjs/TMXUtils/decompress.html +++ b/docs/docs/melonjs/TMXUtils/decompress.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/parse.html b/docs/docs/melonjs/TMXUtils/parse.html index 3ca456777..6b2122c16 100644 --- a/docs/docs/melonjs/TMXUtils/parse.html +++ b/docs/docs/melonjs/TMXUtils/parse.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/setInflateFunction.html b/docs/docs/melonjs/TMXUtils/setInflateFunction.html index fbd43b4a1..8d899dbec 100644 --- a/docs/docs/melonjs/TMXUtils/setInflateFunction.html +++ b/docs/docs/melonjs/TMXUtils/setInflateFunction.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Text.html b/docs/docs/melonjs/Text.html index 318743b20..a77ed05ec 100644 --- a/docs/docs/melonjs/Text.html +++ b/docs/docs/melonjs/Text.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TextMetrics.html b/docs/docs/melonjs/TextMetrics.html index d82c7d701..d2a1a1ebc 100644 --- a/docs/docs/melonjs/TextMetrics.html +++ b/docs/docs/melonjs/TextMetrics.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TextureAtlas.html b/docs/docs/melonjs/TextureAtlas.html index 1ba75861b..d9c63b60f 100644 --- a/docs/docs/melonjs/TextureAtlas.html +++ b/docs/docs/melonjs/TextureAtlas.html @@ -1,5 +1,5 @@ - + @@ -461,7 +461,7 @@

    Public Methods

    - atlas.js:227 + atlas.js:236 @@ -614,7 +614,7 @@

    Public Methods

    - atlas.js:304 + atlas.js:313 @@ -755,7 +755,7 @@

    Public Methods

    - atlas.js:374 + atlas.js:383 @@ -903,7 +903,7 @@

    Public Methods

    - atlas.js:334 + atlas.js:343 @@ -1070,7 +1070,7 @@

    Public Methods

    - atlas.js:193 + atlas.js:201 @@ -1176,7 +1176,7 @@

    Public Methods

    - atlas.js:206 + atlas.js:214 @@ -1249,7 +1249,7 @@

    Public Methods

    - atlas.js:260 + atlas.js:269 @@ -1371,7 +1371,7 @@

    Public Methods

    - atlas.js:214 + atlas.js:222 @@ -1477,7 +1477,7 @@

    Public Methods

    - atlas.js:283 + atlas.js:292 diff --git a/docs/docs/melonjs/Tile.html b/docs/docs/melonjs/Tile.html index 294398d88..7ed3c043d 100644 --- a/docs/docs/melonjs/Tile.html +++ b/docs/docs/melonjs/Tile.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Timer_.html b/docs/docs/melonjs/Timer_.html index 19859312f..2e463522f 100644 --- a/docs/docs/melonjs/Timer_.html +++ b/docs/docs/melonjs/Timer_.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Trigger.html b/docs/docs/melonjs/Trigger.html index 75b25d456..5b80e2813 100644 --- a/docs/docs/melonjs/Trigger.html +++ b/docs/docs/melonjs/Trigger.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween.html b/docs/docs/melonjs/Tween.html index d9b5458a9..49e76769e 100644 --- a/docs/docs/melonjs/Tween.html +++ b/docs/docs/melonjs/Tween.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween/Easing.html b/docs/docs/melonjs/Tween/Easing.html index 31f844e16..819260230 100644 --- a/docs/docs/melonjs/Tween/Easing.html +++ b/docs/docs/melonjs/Tween/Easing.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween/Interpolation.html b/docs/docs/melonjs/Tween/Interpolation.html index 81169c8f5..b7752eb1d 100644 --- a/docs/docs/melonjs/Tween/Interpolation.html +++ b/docs/docs/melonjs/Tween/Interpolation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UIBaseElement.html b/docs/docs/melonjs/UIBaseElement.html index bfa77f4c5..b86c5e18c 100644 --- a/docs/docs/melonjs/UIBaseElement.html +++ b/docs/docs/melonjs/UIBaseElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UISpriteElement.html b/docs/docs/melonjs/UISpriteElement.html index 202f7d3b7..91a96ebc5 100644 --- a/docs/docs/melonjs/UISpriteElement.html +++ b/docs/docs/melonjs/UISpriteElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UITextButton.html b/docs/docs/melonjs/UITextButton.html index da7b1bf3b..2a8f4b1e6 100644 --- a/docs/docs/melonjs/UITextButton.html +++ b/docs/docs/melonjs/UITextButton.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Vector2d.html b/docs/docs/melonjs/Vector2d.html index 950379d5c..dc1ae940a 100644 --- a/docs/docs/melonjs/Vector2d.html +++ b/docs/docs/melonjs/Vector2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Vector3d.html b/docs/docs/melonjs/Vector3d.html index cd5450305..cd2c5c65c 100644 --- a/docs/docs/melonjs/Vector3d.html +++ b/docs/docs/melonjs/Vector3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/WebGLRenderer.html b/docs/docs/melonjs/WebGLRenderer.html index cefe014ae..df198b0b5 100644 --- a/docs/docs/melonjs/WebGLRenderer.html +++ b/docs/docs/melonjs/WebGLRenderer.html @@ -1,5 +1,5 @@ - + @@ -89,7 +89,7 @@

    -

    a WebGL renderer object

    +

    a WebGL renderer draw

    @@ -104,10 +104,10 @@

    Constructor

    -
    +
    -
    new WebGLRenderer(options: Application.Settings) → {}
    +
    new WebGLRenderer(options: ApplicationSettings) → {}
    @@ -140,7 +140,7 @@

    Constructor

    options
    - Application.Settings + ApplicationSettings

    <optional>

    @@ -301,6 +301,22 @@

    Properties from WebGLRenderer

    + + number + + +
    + lineWidth = 1 +
    +
    + +
    +
    @@ -925,20 +941,6 @@

    Methods from WebGLRenderer

    - - -
    - setLineWidth(width: number) -
    -
    - -
    -
    @@ -1406,6 +1408,20 @@

    Methods inherited from Renderer

    + + +
    + getHeight() +
    +
    + +
    +
    @@ -1615,7 +1631,7 @@

    Public Properties

    - webgl_renderer.js:103 + webgl_renderer.js:111 @@ -1664,7 +1680,7 @@

    Public Properties

    - webgl_renderer.js:91 + webgl_renderer.js:99 @@ -1713,7 +1729,7 @@

    Public Properties

    - webgl_renderer.js:97 + webgl_renderer.js:105 @@ -1762,7 +1778,7 @@

    Public Properties

    - webgl_renderer.js:85 + webgl_renderer.js:93 @@ -1937,6 +1953,63 @@

    Public Properties

    + + + + +
    + +
    + + + + + lineWidth + + + + + + webgl_renderer.js:52 + + + +
    + + +
    lineWidth: number = 1
    +
    +number
    + +
    + +
    + +
    +
    +

    sets or returns the thickness of lines for shape drawing (limited to strokeLine)

    +
    + + + + + + + + + + +
    + See: + + WebGLRenderer#strokeLine + +
    +
    @@ -1958,7 +2031,7 @@

    Public Properties

    - webgl_renderer.js:58 + webgl_renderer.js:66 @@ -2007,7 +2080,7 @@

    Public Properties

    - webgl_renderer.js:52 + webgl_renderer.js:60 @@ -2056,7 +2129,7 @@

    Public Properties

    - webgl_renderer.js:180 + webgl_renderer.js:188 @@ -2114,7 +2187,7 @@

    Public Methods

    - webgl_renderer.js:273 + webgl_renderer.js:281 @@ -2235,7 +2308,7 @@

    Public Methods

    - webgl_renderer.js:511 + webgl_renderer.js:520 @@ -2297,7 +2370,7 @@

    Public Methods

    - webgl_renderer.js:392 + webgl_renderer.js:400 @@ -2344,7 +2417,7 @@

    Public Methods

    - webgl_renderer.js:405 + webgl_renderer.js:414 @@ -2447,7 +2520,7 @@

    Public Methods

    - webgl_renderer.js:1153 + webgl_renderer.js:1178 @@ -2502,7 +2575,7 @@

    Public Methods

    - webgl_renderer.js:428 + webgl_renderer.js:437 @@ -2617,7 +2690,7 @@

    Public Methods

    - webgl_renderer.js:1062 + webgl_renderer.js:1087 @@ -2736,7 +2809,7 @@

    Public Methods

    - webgl_renderer.js:597 + webgl_renderer.js:606 @@ -2783,7 +2856,7 @@

    Public Methods

    - webgl_renderer.js:333 + webgl_renderer.js:341 @@ -2915,7 +2988,7 @@

    Public Methods

    - webgl_renderer.js:442 + webgl_renderer.js:451 @@ -3099,7 +3172,7 @@

    Public Methods

    - webgl_renderer.js:495 + webgl_renderer.js:504 @@ -3234,7 +3307,7 @@

    Public Methods

    - webgl_renderer.js:589 + webgl_renderer.js:598 @@ -3317,7 +3390,7 @@

    Public Methods

    - webgl_renderer.js:816 + webgl_renderer.js:817 @@ -3492,7 +3565,7 @@

    Public Methods

    - webgl_renderer.js:848 + webgl_renderer.js:849 @@ -3607,7 +3680,7 @@

    Public Methods

    - webgl_renderer.js:875 + webgl_renderer.js:900 @@ -3722,7 +3795,7 @@

    Public Methods

    - webgl_renderer.js:997 + webgl_renderer.js:1022 @@ -3813,7 +3886,7 @@

    Public Methods

    - webgl_renderer.js:918 + webgl_renderer.js:943 @@ -3892,7 +3965,7 @@

    Public Methods

    - webgl_renderer.js:945 + webgl_renderer.js:970 @@ -4007,7 +4080,7 @@

    Public Methods

    - webgl_renderer.js:976 + webgl_renderer.js:1001 @@ -4134,7 +4207,7 @@

    Public Methods

    - webgl_renderer.js:365 + webgl_renderer.js:373 @@ -4181,7 +4254,7 @@

    Public Methods

    - webgl_renderer.js:604 + webgl_renderer.js:613 @@ -4255,7 +4328,7 @@

    Public Methods

    - webgl_renderer.js:768 + webgl_renderer.js:777 @@ -4328,7 +4401,7 @@

    Public Methods

    - webgl_renderer.js:190 + webgl_renderer.js:198 @@ -4398,7 +4471,7 @@

    Public Methods

    - webgl_renderer.js:210 + webgl_renderer.js:218 @@ -4498,7 +4571,7 @@

    Public Methods

    - webgl_renderer.js:540 + webgl_renderer.js:549 @@ -4585,7 +4658,7 @@

    Public Methods

    - webgl_renderer.js:531 + webgl_renderer.js:540 @@ -4676,7 +4749,7 @@

    Public Methods

    - webgl_renderer.js:547 + webgl_renderer.js:556 @@ -4791,7 +4864,7 @@

    Public Methods

    - webgl_renderer.js:227 + webgl_renderer.js:235 @@ -4838,7 +4911,7 @@

    Public Methods

    - webgl_renderer.js:326 + webgl_renderer.js:334 @@ -4885,7 +4958,7 @@

    Public Methods

    - webgl_renderer.js:657 + webgl_renderer.js:666 @@ -4944,7 +5017,7 @@

    Public Methods

    - webgl_renderer.js:726 + webgl_renderer.js:735 @@ -5033,7 +5106,7 @@

    Public Methods

    - webgl_renderer.js:558 + webgl_renderer.js:567 @@ -5160,7 +5233,7 @@

    Public Methods

    - webgl_renderer.js:701 + webgl_renderer.js:710 @@ -5219,7 +5292,7 @@

    Public Methods

    - webgl_renderer.js:742 + webgl_renderer.js:751 @@ -5310,7 +5383,7 @@

    Public Methods

    - webgl_renderer.js:613 + webgl_renderer.js:622 @@ -5432,7 +5505,7 @@

    Public Methods

    - webgl_renderer.js:776 + webgl_renderer.js:785 @@ -5512,7 +5585,7 @@

    Public Methods

    - webgl_renderer.js:294 + webgl_renderer.js:302 @@ -5641,7 +5714,7 @@

    Public Methods

    - webgl_renderer.js:760 + webgl_renderer.js:769 @@ -5699,85 +5772,6 @@

    Public Methods

    - - - - -
    - -
    - - - - - setLineWidth - - - - - - webgl_renderer.js:787 - - - -
    - - -
    setLineWidth(width: number) → {}
    - -
    - -
    - -
    -
    -

    Set the line width

    -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - -
    Parameters:
    NameTypeDescription
    - width - - number - -

    Line width

    -
    -
    - - - - -
    @@ -5799,7 +5793,7 @@

    Public Methods

    - webgl_renderer.js:1109 + webgl_renderer.js:1134 @@ -5912,7 +5906,7 @@

    Public Methods

    - webgl_renderer.js:372 + webgl_renderer.js:380 @@ -5991,7 +5985,7 @@

    Public Methods

    - webgl_renderer.js:1006 + webgl_renderer.js:1031 @@ -6131,7 +6125,7 @@

    Public Methods

    - webgl_renderer.js:381 + webgl_renderer.js:389 @@ -6270,7 +6264,7 @@

    Public Methods

    - webgl_renderer.js:570 + webgl_renderer.js:579 @@ -6373,7 +6367,7 @@

    Public Methods

    - webgl_renderer.js:795 + webgl_renderer.js:796 @@ -6566,7 +6560,7 @@

    Public Methods

    - webgl_renderer.js:829 + webgl_renderer.js:830 @@ -6723,7 +6717,7 @@

    Public Methods

    - webgl_renderer.js:859 + webgl_renderer.js:860 @@ -6838,7 +6832,7 @@

    Public Methods

    - webgl_renderer.js:988 + webgl_renderer.js:1013 @@ -6929,7 +6923,7 @@

    Public Methods

    - webgl_renderer.js:886 + webgl_renderer.js:911 @@ -7032,7 +7026,7 @@

    Public Methods

    - webgl_renderer.js:926 + webgl_renderer.js:951 @@ -7189,7 +7183,7 @@

    Public Methods

    - webgl_renderer.js:956 + webgl_renderer.js:981 @@ -7364,7 +7358,7 @@

    Public Methods

    - webgl_renderer.js:1021 + webgl_renderer.js:1046 @@ -7511,7 +7505,7 @@

    Public Methods

    - webgl_renderer.js:1046 + webgl_renderer.js:1071 @@ -7638,6 +7632,10 @@

    Public Methods

    GPUVendor +
  • + lineWidth +
  • +
  • maxTextures
  • @@ -7812,10 +7810,6 @@

    Public Methods

    setGlobalAlpha -
  • - setLineWidth -
  • -
  • setMask
  • diff --git a/docs/docs/melonjs/World.html b/docs/docs/melonjs/World.html index 74c8a7d03..8060bdbf1 100644 --- a/docs/docs/melonjs/World.html +++ b/docs/docs/melonjs/World.html @@ -1,5 +1,5 @@ - + @@ -2658,7 +2658,7 @@

    Public Properties

    See: - Application.Settings.physic + ApplicationSettings.physic
    diff --git a/docs/docs/melonjs/audio.html b/docs/docs/melonjs/audio.html index 395bf5092..de129fc2f 100644 --- a/docs/docs/melonjs/audio.html +++ b/docs/docs/melonjs/audio.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/disable.html b/docs/docs/melonjs/audio/disable.html index 07ea25c0f..3cfd9eaab 100644 --- a/docs/docs/melonjs/audio/disable.html +++ b/docs/docs/melonjs/audio/disable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/enable.html b/docs/docs/melonjs/audio/enable.html index 47fd4ae2e..f66b1e835 100644 --- a/docs/docs/melonjs/audio/enable.html +++ b/docs/docs/melonjs/audio/enable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/fade.html b/docs/docs/melonjs/audio/fade.html index 9defcc79a..3c7a40fb5 100644 --- a/docs/docs/melonjs/audio/fade.html +++ b/docs/docs/melonjs/audio/fade.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/getCurrentTrack.html b/docs/docs/melonjs/audio/getCurrentTrack.html index 7450f6237..f9db3e92f 100644 --- a/docs/docs/melonjs/audio/getCurrentTrack.html +++ b/docs/docs/melonjs/audio/getCurrentTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/getVolume.html b/docs/docs/melonjs/audio/getVolume.html index 61c70f9cf..29ae69220 100644 --- a/docs/docs/melonjs/audio/getVolume.html +++ b/docs/docs/melonjs/audio/getVolume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/hasAudio.html b/docs/docs/melonjs/audio/hasAudio.html index 4190d1b07..1f6fcfc1e 100644 --- a/docs/docs/melonjs/audio/hasAudio.html +++ b/docs/docs/melonjs/audio/hasAudio.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/hasFormat.html b/docs/docs/melonjs/audio/hasFormat.html index 830d04664..67feffea3 100644 --- a/docs/docs/melonjs/audio/hasFormat.html +++ b/docs/docs/melonjs/audio/hasFormat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/init.html b/docs/docs/melonjs/audio/init.html index 985f7ed5e..0924a344a 100644 --- a/docs/docs/melonjs/audio/init.html +++ b/docs/docs/melonjs/audio/init.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/load.html b/docs/docs/melonjs/audio/load.html index b52c274d3..45f1db3a6 100644 --- a/docs/docs/melonjs/audio/load.html +++ b/docs/docs/melonjs/audio/load.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/mute.html b/docs/docs/melonjs/audio/mute.html index 01422b192..8c108f8a1 100644 --- a/docs/docs/melonjs/audio/mute.html +++ b/docs/docs/melonjs/audio/mute.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/muteAll.html b/docs/docs/melonjs/audio/muteAll.html index eb316c8ec..acf150288 100644 --- a/docs/docs/melonjs/audio/muteAll.html +++ b/docs/docs/melonjs/audio/muteAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/muted.html b/docs/docs/melonjs/audio/muted.html index 857b09e16..c5dc9ece4 100644 --- a/docs/docs/melonjs/audio/muted.html +++ b/docs/docs/melonjs/audio/muted.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/orientation.html b/docs/docs/melonjs/audio/orientation.html index 70875e463..2aea3d8b3 100644 --- a/docs/docs/melonjs/audio/orientation.html +++ b/docs/docs/melonjs/audio/orientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/panner.html b/docs/docs/melonjs/audio/panner.html index 33f8ed660..083da4cc1 100644 --- a/docs/docs/melonjs/audio/panner.html +++ b/docs/docs/melonjs/audio/panner.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/pause.html b/docs/docs/melonjs/audio/pause.html index 05d39ac92..8ed449340 100644 --- a/docs/docs/melonjs/audio/pause.html +++ b/docs/docs/melonjs/audio/pause.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/pauseTrack.html b/docs/docs/melonjs/audio/pauseTrack.html index 1a54e61fb..2b192557d 100644 --- a/docs/docs/melonjs/audio/pauseTrack.html +++ b/docs/docs/melonjs/audio/pauseTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/play.html b/docs/docs/melonjs/audio/play.html index 1e859eea9..d8027033a 100644 --- a/docs/docs/melonjs/audio/play.html +++ b/docs/docs/melonjs/audio/play.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/playTrack.html b/docs/docs/melonjs/audio/playTrack.html index 846c92a33..6a7d14e5f 100644 --- a/docs/docs/melonjs/audio/playTrack.html +++ b/docs/docs/melonjs/audio/playTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/position.html b/docs/docs/melonjs/audio/position.html index 9f7fded85..2194979e7 100644 --- a/docs/docs/melonjs/audio/position.html +++ b/docs/docs/melonjs/audio/position.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/rate.html b/docs/docs/melonjs/audio/rate.html index b84f581f4..52de8a33e 100644 --- a/docs/docs/melonjs/audio/rate.html +++ b/docs/docs/melonjs/audio/rate.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/resume.html b/docs/docs/melonjs/audio/resume.html index f29dc3048..b11696d21 100644 --- a/docs/docs/melonjs/audio/resume.html +++ b/docs/docs/melonjs/audio/resume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/resumeTrack.html b/docs/docs/melonjs/audio/resumeTrack.html index 16bbe51a4..2c60dc54c 100644 --- a/docs/docs/melonjs/audio/resumeTrack.html +++ b/docs/docs/melonjs/audio/resumeTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/seek.html b/docs/docs/melonjs/audio/seek.html index d9b9eb54d..726804c9a 100644 --- a/docs/docs/melonjs/audio/seek.html +++ b/docs/docs/melonjs/audio/seek.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/setVolume.html b/docs/docs/melonjs/audio/setVolume.html index 8a8330571..49d198a10 100644 --- a/docs/docs/melonjs/audio/setVolume.html +++ b/docs/docs/melonjs/audio/setVolume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/stereo.html b/docs/docs/melonjs/audio/stereo.html index dc8c0beaa..146896245 100644 --- a/docs/docs/melonjs/audio/stereo.html +++ b/docs/docs/melonjs/audio/stereo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/stop.html b/docs/docs/melonjs/audio/stop.html index 9f8f8e3b7..977b9d782 100644 --- a/docs/docs/melonjs/audio/stop.html +++ b/docs/docs/melonjs/audio/stop.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/stopTrack.html b/docs/docs/melonjs/audio/stopTrack.html index 9d26ab789..0cae0f2fe 100644 --- a/docs/docs/melonjs/audio/stopTrack.html +++ b/docs/docs/melonjs/audio/stopTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unload.html b/docs/docs/melonjs/audio/unload.html index 1dcbbb5a3..34d252608 100644 --- a/docs/docs/melonjs/audio/unload.html +++ b/docs/docs/melonjs/audio/unload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unloadAll.html b/docs/docs/melonjs/audio/unloadAll.html index ab0e936de..1da138f54 100644 --- a/docs/docs/melonjs/audio/unloadAll.html +++ b/docs/docs/melonjs/audio/unloadAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unmute.html b/docs/docs/melonjs/audio/unmute.html index 0809bfd29..ae7536ab7 100644 --- a/docs/docs/melonjs/audio/unmute.html +++ b/docs/docs/melonjs/audio/unmute.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unmuteAll.html b/docs/docs/melonjs/audio/unmuteAll.html index ffcd10b39..c46b51165 100644 --- a/docs/docs/melonjs/audio/unmuteAll.html +++ b/docs/docs/melonjs/audio/unmuteAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/boot.html b/docs/docs/melonjs/boot.html index 0454c12d1..d7a4f56a2 100644 --- a/docs/docs/melonjs/boot.html +++ b/docs/docs/melonjs/boot.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/collision.html b/docs/docs/melonjs/collision.html index 3664d63e7..c7e0a4676 100644 --- a/docs/docs/melonjs/collision.html +++ b/docs/docs/melonjs/collision.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/collision/types.html b/docs/docs/melonjs/collision/types.html index 3a8d0927c..f7076c9c6 100644 --- a/docs/docs/melonjs/collision/types.html +++ b/docs/docs/melonjs/collision/types.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/consoleHeader.html b/docs/docs/melonjs/consoleHeader.html index 35f26c8d1..86f4a912c 100644 --- a/docs/docs/melonjs/consoleHeader.html +++ b/docs/docs/melonjs/consoleHeader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device.html b/docs/docs/melonjs/device.html index 91ca9fb70..22208a762 100644 --- a/docs/docs/melonjs/device.html +++ b/docs/docs/melonjs/device.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/enableSwipe.html b/docs/docs/melonjs/device/enableSwipe.html index 6176b6205..ac02fff66 100644 --- a/docs/docs/melonjs/device/enableSwipe.html +++ b/docs/docs/melonjs/device/enableSwipe.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/exitFullscreen.html b/docs/docs/melonjs/device/exitFullscreen.html index feb0c5742..54e33c6db 100644 --- a/docs/docs/melonjs/device/exitFullscreen.html +++ b/docs/docs/melonjs/device/exitFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/focus.html b/docs/docs/melonjs/device/focus.html index 801442e07..a212f62f7 100644 --- a/docs/docs/melonjs/device/focus.html +++ b/docs/docs/melonjs/device/focus.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getElement.html b/docs/docs/melonjs/device/getElement.html index e1c2ae2ce..cd1a87a5c 100644 --- a/docs/docs/melonjs/device/getElement.html +++ b/docs/docs/melonjs/device/getElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getElementBounds.html b/docs/docs/melonjs/device/getElementBounds.html index 6700038e4..c6a0b0732 100644 --- a/docs/docs/melonjs/device/getElementBounds.html +++ b/docs/docs/melonjs/device/getElementBounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getParentBounds.html b/docs/docs/melonjs/device/getParentBounds.html index 01e6c528b..1717fc7c4 100644 --- a/docs/docs/melonjs/device/getParentBounds.html +++ b/docs/docs/melonjs/device/getParentBounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getParentElement.html b/docs/docs/melonjs/device/getParentElement.html index 77b89a88f..b3fdc681f 100644 --- a/docs/docs/melonjs/device/getParentElement.html +++ b/docs/docs/melonjs/device/getParentElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getScreenOrientation.html b/docs/docs/melonjs/device/getScreenOrientation.html index 6dd06f100..fbf2894d6 100644 --- a/docs/docs/melonjs/device/getScreenOrientation.html +++ b/docs/docs/melonjs/device/getScreenOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getStorage.html b/docs/docs/melonjs/device/getStorage.html index 55b2a13b3..1313d8f75 100644 --- a/docs/docs/melonjs/device/getStorage.html +++ b/docs/docs/melonjs/device/getStorage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/hasVideoFormat.html b/docs/docs/melonjs/device/hasVideoFormat.html index cbc7530f3..a5936d477 100644 --- a/docs/docs/melonjs/device/hasVideoFormat.html +++ b/docs/docs/melonjs/device/hasVideoFormat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isFullscreen.html b/docs/docs/melonjs/device/isFullscreen.html index 424a785a5..9ab226537 100644 --- a/docs/docs/melonjs/device/isFullscreen.html +++ b/docs/docs/melonjs/device/isFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isLandscape.html b/docs/docs/melonjs/device/isLandscape.html index 1b68e4c1a..f9bb92386 100644 --- a/docs/docs/melonjs/device/isLandscape.html +++ b/docs/docs/melonjs/device/isLandscape.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isPortrait.html b/docs/docs/melonjs/device/isPortrait.html index 266297d51..6301de9b6 100644 --- a/docs/docs/melonjs/device/isPortrait.html +++ b/docs/docs/melonjs/device/isPortrait.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isWebGLSupported.html b/docs/docs/melonjs/device/isWebGLSupported.html index 815c4b70e..794f426d7 100644 --- a/docs/docs/melonjs/device/isWebGLSupported.html +++ b/docs/docs/melonjs/device/isWebGLSupported.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/lockOrientation.html b/docs/docs/melonjs/device/lockOrientation.html index 16edf754f..796990457 100644 --- a/docs/docs/melonjs/device/lockOrientation.html +++ b/docs/docs/melonjs/device/lockOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/onReady.html b/docs/docs/melonjs/device/onReady.html index 449d789fa..748626293 100644 --- a/docs/docs/melonjs/device/onReady.html +++ b/docs/docs/melonjs/device/onReady.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/platform.html b/docs/docs/melonjs/device/platform.html index fd5d59590..41f0de81f 100644 --- a/docs/docs/melonjs/device/platform.html +++ b/docs/docs/melonjs/device/platform.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/requestFullscreen.html b/docs/docs/melonjs/device/requestFullscreen.html index 03eed2598..46e82a8d8 100644 --- a/docs/docs/melonjs/device/requestFullscreen.html +++ b/docs/docs/melonjs/device/requestFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unlockOrientation.html b/docs/docs/melonjs/device/unlockOrientation.html index d7420fe5d..fd7f0ab6d 100644 --- a/docs/docs/melonjs/device/unlockOrientation.html +++ b/docs/docs/melonjs/device/unlockOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unwatchAccelerometer.html b/docs/docs/melonjs/device/unwatchAccelerometer.html index 9e8f45086..89c46dbbb 100644 --- a/docs/docs/melonjs/device/unwatchAccelerometer.html +++ b/docs/docs/melonjs/device/unwatchAccelerometer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unwatchDeviceOrientation.html b/docs/docs/melonjs/device/unwatchDeviceOrientation.html index 76929c476..f8c6726ff 100644 --- a/docs/docs/melonjs/device/unwatchDeviceOrientation.html +++ b/docs/docs/melonjs/device/unwatchDeviceOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/vibrate.html b/docs/docs/melonjs/device/vibrate.html index b0111108d..5c8e1a28a 100644 --- a/docs/docs/melonjs/device/vibrate.html +++ b/docs/docs/melonjs/device/vibrate.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/watchAccelerometer.html b/docs/docs/melonjs/device/watchAccelerometer.html index c7aae084c..7e5499672 100644 --- a/docs/docs/melonjs/device/watchAccelerometer.html +++ b/docs/docs/melonjs/device/watchAccelerometer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/watchDeviceOrientation.html b/docs/docs/melonjs/device/watchDeviceOrientation.html index 67177e783..042f4469b 100644 --- a/docs/docs/melonjs/device/watchDeviceOrientation.html +++ b/docs/docs/melonjs/device/watchDeviceOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event.html b/docs/docs/melonjs/event.html index bfb6c62bb..c22616fbf 100644 --- a/docs/docs/melonjs/event.html +++ b/docs/docs/melonjs/event.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/emit.html b/docs/docs/melonjs/event/emit.html index c7c4ceab3..896313f46 100644 --- a/docs/docs/melonjs/event/emit.html +++ b/docs/docs/melonjs/event/emit.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/off.html b/docs/docs/melonjs/event/off.html index bfef099a1..e45b4ca9e 100644 --- a/docs/docs/melonjs/event/off.html +++ b/docs/docs/melonjs/event/off.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/on.html b/docs/docs/melonjs/event/on.html index dcdde8320..3b6c8775e 100644 --- a/docs/docs/melonjs/event/on.html +++ b/docs/docs/melonjs/event/on.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/once.html b/docs/docs/melonjs/event/once.html index c28b53704..fb8cc9c17 100644 --- a/docs/docs/melonjs/event/once.html +++ b/docs/docs/melonjs/event/once.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/game.html b/docs/docs/melonjs/game.html index f15f15112..daa2bf5ee 100644 --- a/docs/docs/melonjs/game.html +++ b/docs/docs/melonjs/game.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input.html b/docs/docs/melonjs/input.html index 57e5527a5..c03eaa3b9 100644 --- a/docs/docs/melonjs/input.html +++ b/docs/docs/melonjs/input.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD.html b/docs/docs/melonjs/input/GAMEPAD.html index f19d2175f..80b9e8e86 100644 --- a/docs/docs/melonjs/input/GAMEPAD.html +++ b/docs/docs/melonjs/input/GAMEPAD.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD/AXES.html b/docs/docs/melonjs/input/GAMEPAD/AXES.html index 3c42d59d1..054b51aac 100644 --- a/docs/docs/melonjs/input/GAMEPAD/AXES.html +++ b/docs/docs/melonjs/input/GAMEPAD/AXES.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html b/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html index d972f39af..815c2bde6 100644 --- a/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html +++ b/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/KEY.html b/docs/docs/melonjs/input/KEY.html index 20431d869..f28757501 100644 --- a/docs/docs/melonjs/input/KEY.html +++ b/docs/docs/melonjs/input/KEY.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindGamepad.html b/docs/docs/melonjs/input/bindGamepad.html index 27418ceef..ad8f05b96 100644 --- a/docs/docs/melonjs/input/bindGamepad.html +++ b/docs/docs/melonjs/input/bindGamepad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindKey.html b/docs/docs/melonjs/input/bindKey.html index 4b90fa055..7e4c0362d 100644 --- a/docs/docs/melonjs/input/bindKey.html +++ b/docs/docs/melonjs/input/bindKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindPointer.html b/docs/docs/melonjs/input/bindPointer.html index bb05b7ef7..d6ae00252 100644 --- a/docs/docs/melonjs/input/bindPointer.html +++ b/docs/docs/melonjs/input/bindPointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/exitPointerLock.html b/docs/docs/melonjs/input/exitPointerLock.html index 5d4b43a3a..1dde8ef70 100644 --- a/docs/docs/melonjs/input/exitPointerLock.html +++ b/docs/docs/melonjs/input/exitPointerLock.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/getBindingKey.html b/docs/docs/melonjs/input/getBindingKey.html index 3ec5c913a..8a6fd94b4 100644 --- a/docs/docs/melonjs/input/getBindingKey.html +++ b/docs/docs/melonjs/input/getBindingKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/globalToLocal.html b/docs/docs/melonjs/input/globalToLocal.html index 6ff381c0e..abed65cec 100644 --- a/docs/docs/melonjs/input/globalToLocal.html +++ b/docs/docs/melonjs/input/globalToLocal.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/hasActiveEvents.html b/docs/docs/melonjs/input/hasActiveEvents.html index 819972f8f..1f54e510e 100644 --- a/docs/docs/melonjs/input/hasActiveEvents.html +++ b/docs/docs/melonjs/input/hasActiveEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/hasRegisteredEvents.html b/docs/docs/melonjs/input/hasRegisteredEvents.html index 5746be952..c88001cdc 100644 --- a/docs/docs/melonjs/input/hasRegisteredEvents.html +++ b/docs/docs/melonjs/input/hasRegisteredEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/isKeyPressed.html b/docs/docs/melonjs/input/isKeyPressed.html index c7dad4265..cc5ac863d 100644 --- a/docs/docs/melonjs/input/isKeyPressed.html +++ b/docs/docs/melonjs/input/isKeyPressed.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/keyStatus.html b/docs/docs/melonjs/input/keyStatus.html index bb8b0b6af..bf3c1bb60 100644 --- a/docs/docs/melonjs/input/keyStatus.html +++ b/docs/docs/melonjs/input/keyStatus.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/registerPointerEvent.html b/docs/docs/melonjs/input/registerPointerEvent.html index 6acbaf4d6..66083d2ff 100644 --- a/docs/docs/melonjs/input/registerPointerEvent.html +++ b/docs/docs/melonjs/input/registerPointerEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/releaseAllPointerEvents.html b/docs/docs/melonjs/input/releaseAllPointerEvents.html index b10e1d5b4..9de2fbd55 100644 --- a/docs/docs/melonjs/input/releaseAllPointerEvents.html +++ b/docs/docs/melonjs/input/releaseAllPointerEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/releasePointerEvent.html b/docs/docs/melonjs/input/releasePointerEvent.html index 888593856..ed50c07d0 100644 --- a/docs/docs/melonjs/input/releasePointerEvent.html +++ b/docs/docs/melonjs/input/releasePointerEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/requestPointerLock.html b/docs/docs/melonjs/input/requestPointerLock.html index 491414f9d..4241e75ea 100644 --- a/docs/docs/melonjs/input/requestPointerLock.html +++ b/docs/docs/melonjs/input/requestPointerLock.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/setGamepadDeadzone.html b/docs/docs/melonjs/input/setGamepadDeadzone.html index 5dcbf76f2..0a9964b38 100644 --- a/docs/docs/melonjs/input/setGamepadDeadzone.html +++ b/docs/docs/melonjs/input/setGamepadDeadzone.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/setTouchAction.html b/docs/docs/melonjs/input/setTouchAction.html index 4dda01c42..8f6d94aa6 100644 --- a/docs/docs/melonjs/input/setTouchAction.html +++ b/docs/docs/melonjs/input/setTouchAction.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/triggerKeyEvent.html b/docs/docs/melonjs/input/triggerKeyEvent.html index 7e4a8b43a..62aa99c52 100644 --- a/docs/docs/melonjs/input/triggerKeyEvent.html +++ b/docs/docs/melonjs/input/triggerKeyEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindGamepad.html b/docs/docs/melonjs/input/unbindGamepad.html index e539e5783..06bc8bed2 100644 --- a/docs/docs/melonjs/input/unbindGamepad.html +++ b/docs/docs/melonjs/input/unbindGamepad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindKey.html b/docs/docs/melonjs/input/unbindKey.html index 19c21ea69..1a99dd112 100644 --- a/docs/docs/melonjs/input/unbindKey.html +++ b/docs/docs/melonjs/input/unbindKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindPointer.html b/docs/docs/melonjs/input/unbindPointer.html index 570c9624a..f65fc8d74 100644 --- a/docs/docs/melonjs/input/unbindPointer.html +++ b/docs/docs/melonjs/input/unbindPointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unlockKey.html b/docs/docs/melonjs/input/unlockKey.html index d39198045..64afb4bbb 100644 --- a/docs/docs/melonjs/input/unlockKey.html +++ b/docs/docs/melonjs/input/unlockKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/level.html b/docs/docs/melonjs/level.html index 61a3710fa..c8cc5aec6 100644 --- a/docs/docs/melonjs/level.html +++ b/docs/docs/melonjs/level.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader.html b/docs/docs/melonjs/loader.html index 3c846cbea..3dc92d1c8 100644 --- a/docs/docs/melonjs/loader.html +++ b/docs/docs/melonjs/loader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/Asset.html b/docs/docs/melonjs/loader/Asset.html index 5ece1da56..4f9cbc7a9 100644 --- a/docs/docs/melonjs/loader/Asset.html +++ b/docs/docs/melonjs/loader/Asset.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getBinary.html b/docs/docs/melonjs/loader/getBinary.html index 2d958fb4b..f0a07fd18 100644 --- a/docs/docs/melonjs/loader/getBinary.html +++ b/docs/docs/melonjs/loader/getBinary.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getFont.html b/docs/docs/melonjs/loader/getFont.html index 6deea0bba..85758465c 100644 --- a/docs/docs/melonjs/loader/getFont.html +++ b/docs/docs/melonjs/loader/getFont.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getImage.html b/docs/docs/melonjs/loader/getImage.html index 9ae45e948..44439370a 100644 --- a/docs/docs/melonjs/loader/getImage.html +++ b/docs/docs/melonjs/loader/getImage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getJSON.html b/docs/docs/melonjs/loader/getJSON.html index c9a0f4fa4..c8b48cb13 100644 --- a/docs/docs/melonjs/loader/getJSON.html +++ b/docs/docs/melonjs/loader/getJSON.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getTMX.html b/docs/docs/melonjs/loader/getTMX.html index 0cb37c839..e64faa5f3 100644 --- a/docs/docs/melonjs/loader/getTMX.html +++ b/docs/docs/melonjs/loader/getTMX.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getVideo.html b/docs/docs/melonjs/loader/getVideo.html index 4f1cf66a2..7921a3ab3 100644 --- a/docs/docs/melonjs/loader/getVideo.html +++ b/docs/docs/melonjs/loader/getVideo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/load.html b/docs/docs/melonjs/loader/load.html index 39c2189a5..b9ff38552 100644 --- a/docs/docs/melonjs/loader/load.html +++ b/docs/docs/melonjs/loader/load.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/preload.html b/docs/docs/melonjs/loader/preload.html index ea1a11ee3..f4c32de93 100644 --- a/docs/docs/melonjs/loader/preload.html +++ b/docs/docs/melonjs/loader/preload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/reload.html b/docs/docs/melonjs/loader/reload.html index cfd2272f6..d9dbac82d 100644 --- a/docs/docs/melonjs/loader/reload.html +++ b/docs/docs/melonjs/loader/reload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/setBaseURL.html b/docs/docs/melonjs/loader/setBaseURL.html index 25d89e194..7e4d45112 100644 --- a/docs/docs/melonjs/loader/setBaseURL.html +++ b/docs/docs/melonjs/loader/setBaseURL.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/setOptions.html b/docs/docs/melonjs/loader/setOptions.html index 2d4a9d893..634acfa2f 100644 --- a/docs/docs/melonjs/loader/setOptions.html +++ b/docs/docs/melonjs/loader/setOptions.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/setParser.html b/docs/docs/melonjs/loader/setParser.html index f3f891450..79e79c3a6 100644 --- a/docs/docs/melonjs/loader/setParser.html +++ b/docs/docs/melonjs/loader/setParser.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/unload.html b/docs/docs/melonjs/loader/unload.html index c08165ce9..65450162c 100644 --- a/docs/docs/melonjs/loader/unload.html +++ b/docs/docs/melonjs/loader/unload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/unloadAll.html b/docs/docs/melonjs/loader/unloadAll.html index cb8f89dc3..ebb50a150 100644 --- a/docs/docs/melonjs/loader/unloadAll.html +++ b/docs/docs/melonjs/loader/unloadAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/onresize.html b/docs/docs/melonjs/onresize.html index d77c6e5b6..2475714ef 100644 --- a/docs/docs/melonjs/onresize.html +++ b/docs/docs/melonjs/onresize.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin.html b/docs/docs/melonjs/plugin.html index d178320e3..832e0e3aa 100644 --- a/docs/docs/melonjs/plugin.html +++ b/docs/docs/melonjs/plugin.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/Base.html b/docs/docs/melonjs/plugin/Base.html index 7dfb78d87..f6f18c06d 100644 --- a/docs/docs/melonjs/plugin/Base.html +++ b/docs/docs/melonjs/plugin/Base.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/BasePlugin.html b/docs/docs/melonjs/plugin/BasePlugin.html index 0c6ed5146..8906c53ca 100644 --- a/docs/docs/melonjs/plugin/BasePlugin.html +++ b/docs/docs/melonjs/plugin/BasePlugin.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/get.html b/docs/docs/melonjs/plugin/get.html index 729e2d514..b6a57c88a 100644 --- a/docs/docs/melonjs/plugin/get.html +++ b/docs/docs/melonjs/plugin/get.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/patch.html b/docs/docs/melonjs/plugin/patch.html index c7e2c6efc..65c96021d 100644 --- a/docs/docs/melonjs/plugin/patch.html +++ b/docs/docs/melonjs/plugin/patch.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/register.html b/docs/docs/melonjs/plugin/register.html index 53667694f..614da9333 100644 --- a/docs/docs/melonjs/plugin/register.html +++ b/docs/docs/melonjs/plugin/register.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/pool.html b/docs/docs/melonjs/pool.html index b8b9dade3..4b6921b1f 100644 --- a/docs/docs/melonjs/pool.html +++ b/docs/docs/melonjs/pool.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/save.html b/docs/docs/melonjs/save.html index a1d68074d..e04cd7f06 100644 --- a/docs/docs/melonjs/save.html +++ b/docs/docs/melonjs/save.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/scale.html b/docs/docs/melonjs/scale.html index 4b87146dd..8529e1562 100644 --- a/docs/docs/melonjs/scale.html +++ b/docs/docs/melonjs/scale.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/application.js.html b/docs/docs/melonjs/src/application/application.js.html index ec9c0b2f1..c93e2a5af 100644 --- a/docs/docs/melonjs/src/application/application.js.html +++ b/docs/docs/melonjs/src/application/application.js.html @@ -1,5 +1,5 @@ - + @@ -1802,7 +1802,7 @@ import state from "./../state/state.js"; import World from "./../physics/world.js"; import { onresize } from "./resize.js"; -import { defaultSettings } from "./settings.js"; +import { ApplicationSettings } from "./settings.js"; import { consoleHeader } from "./header.js"; import { CANVAS, WEBGL, AUTO } from "../const.js"; @@ -1815,7 +1815,7 @@ /** * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer * @throws Will throw an exception if it fails to instantiate a renderer */ constructor(width, height, options) { @@ -1871,7 +1871,7 @@ /** * the given settings used when creating this application - * @type {Application.settings} + * @type {ApplicationSettings} */ this.settings = undefined; @@ -1932,11 +1932,11 @@ * init the game instance (create a physic world, update starting time, etc..) * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport - * @param {Application.Settings} [options] - The optional parameters for the application and default renderer + * @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer */ init(width, height, options) { - this.settings = Object.assign(defaultSettings, options || {}); + this.settings = Object.assign(ApplicationSettings, options || {}); // sanitize potential given parameters this.settings.width = width; diff --git a/docs/docs/melonjs/src/application/header.js.html b/docs/docs/melonjs/src/application/header.js.html index d1fc9f787..196824f78 100644 --- a/docs/docs/melonjs/src/application/header.js.html +++ b/docs/docs/melonjs/src/application/header.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/resize.js.html b/docs/docs/melonjs/src/application/resize.js.html index f48fb0ae9..1ebd298f1 100644 --- a/docs/docs/melonjs/src/application/resize.js.html +++ b/docs/docs/melonjs/src/application/resize.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/settings.js.html b/docs/docs/melonjs/src/application/settings.js.html index 71aa17a81..25d061089 100644 --- a/docs/docs/melonjs/src/application/settings.js.html +++ b/docs/docs/melonjs/src/application/settings.js.html @@ -1,5 +1,5 @@ - + @@ -300,45 +300,10 @@ 57 -
  • - 58 -
  • - -
  • - 59 -
  • - -
  • - 60 -
  • - -
    // default settings
    -export const defaultSettings = {
    -    parent : undefined,
    -    renderer : 2, // AUTO
    -    autoScale : false,
    -    scale : 1.0,
    -    scaleMethod : "manual",
    -    scaleTarget : undefined,
    -    transparent : false,
    -    premultipliedAlpha: true,
    -    blendMode : "normal",
    -    physic : "builtin",
    -    antiAlias : false,
    -    failIfMajorPerformanceCaveat : true,
    -    subPixel : false,
    -    preferWebGL1 : false,
    -    powerPreference : "default",
    -    verbose : false,
    -    consoleHeader : true,
    -    legacy : false,
    -    canvas : undefined
    -};
    -
    -/**
    +      
    /**
      * Application & Renderer Settings definition.
    - * @typedef {object} Settings
    + * @typedef {Object} ApplicationSettings
      * @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file
      * @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters)
      * @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class
    @@ -365,13 +330,33 @@
      * @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen).
      * @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation
      * @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console
    - * @param {number} [options.zoomX=width] - The actual width of the canvas with scaling applied
    - * @param {number} [options.zoomY=height] - The actual height of the canvas with scaling applied
    - * @param {Compositor} [options.compositor] - a custom compositor class (WebGL only)
    - * @param {string} [option.physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
    - * @see Application
    - * @memberof Application
    + * @property {number} [zoomX=width] - The actual width of the canvas with scaling applied
    + * @property {number} [zoomY=height] - The actual height of the canvas with scaling applied
    + * @property {Compositor} [compositor] - a custom compositor class (WebGL only)
    + * @property {string} [physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
      */
    +export const ApplicationSettings = {
    +    parent : undefined,
    +    canvas : undefined,
    +    renderer : 2, // AUTO
    +    autoScale : false,
    +    scale : 1.0,
    +    scaleMethod : "manual",
    +    scaleTarget : undefined,
    +    preferWebGL1 : false,
    +    depthTest: "sorting",
    +    powerPreference : "default",
    +    transparent : false,
    +    antiAlias : false,
    +    consoleHeader : true,
    +    premultipliedAlpha: true,
    +    blendMode : "normal",
    +    physic : "builtin",
    +    failIfMajorPerformanceCaveat : true,
    +    subPixel : false,
    +    verbose : false,
    +    legacy : false
    +};
     
    diff --git a/docs/docs/melonjs/src/audio/audio.js.html b/docs/docs/melonjs/src/audio/audio.js.html index fd0dd5c5b..ef78deae2 100644 --- a/docs/docs/melonjs/src/audio/audio.js.html +++ b/docs/docs/melonjs/src/audio/audio.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/camera/camera2d.js.html b/docs/docs/melonjs/src/camera/camera2d.js.html index 9e3317338..1fca518d3 100644 --- a/docs/docs/melonjs/src/camera/camera2d.js.html +++ b/docs/docs/melonjs/src/camera/camera2d.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/const.js.html b/docs/docs/melonjs/src/const.js.html index 400a97993..31a51bc98 100644 --- a/docs/docs/melonjs/src/const.js.html +++ b/docs/docs/melonjs/src/const.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/ellipse.js.html b/docs/docs/melonjs/src/geometries/ellipse.js.html index 93d8fd749..968cba422 100644 --- a/docs/docs/melonjs/src/geometries/ellipse.js.html +++ b/docs/docs/melonjs/src/geometries/ellipse.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/line.js.html b/docs/docs/melonjs/src/geometries/line.js.html index ec7ce7fba..26e5c2d0a 100644 --- a/docs/docs/melonjs/src/geometries/line.js.html +++ b/docs/docs/melonjs/src/geometries/line.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/path2d.js.html b/docs/docs/melonjs/src/geometries/path2d.js.html index 058ca951b..1f302cd82 100644 --- a/docs/docs/melonjs/src/geometries/path2d.js.html +++ b/docs/docs/melonjs/src/geometries/path2d.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/point.js.html b/docs/docs/melonjs/src/geometries/point.js.html index 2441902e9..61f13f590 100644 --- a/docs/docs/melonjs/src/geometries/point.js.html +++ b/docs/docs/melonjs/src/geometries/point.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/poly.js.html b/docs/docs/melonjs/src/geometries/poly.js.html index f71233e1c..c35269fca 100644 --- a/docs/docs/melonjs/src/geometries/poly.js.html +++ b/docs/docs/melonjs/src/geometries/poly.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/rectangle.js.html b/docs/docs/melonjs/src/geometries/rectangle.js.html index 56a03f3bc..2cb62cea7 100644 --- a/docs/docs/melonjs/src/geometries/rectangle.js.html +++ b/docs/docs/melonjs/src/geometries/rectangle.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/roundrect.js.html b/docs/docs/melonjs/src/geometries/roundrect.js.html index 7689ac17c..2f31b3e76 100644 --- a/docs/docs/melonjs/src/geometries/roundrect.js.html +++ b/docs/docs/melonjs/src/geometries/roundrect.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/toarccanvas.js.html b/docs/docs/melonjs/src/geometries/toarccanvas.js.html index 3496407a0..5d67f094b 100644 --- a/docs/docs/melonjs/src/geometries/toarccanvas.js.html +++ b/docs/docs/melonjs/src/geometries/toarccanvas.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/index.js.html b/docs/docs/melonjs/src/index.js.html index d5e0ecb70..c174839d8 100644 --- a/docs/docs/melonjs/src/index.js.html +++ b/docs/docs/melonjs/src/index.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/gamepad.js.html b/docs/docs/melonjs/src/input/gamepad.js.html index dd1286c3f..ac65935e4 100644 --- a/docs/docs/melonjs/src/input/gamepad.js.html +++ b/docs/docs/melonjs/src/input/gamepad.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/input.js.html b/docs/docs/melonjs/src/input/input.js.html index d47b771bf..e46aaeff7 100644 --- a/docs/docs/melonjs/src/input/input.js.html +++ b/docs/docs/melonjs/src/input/input.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/keyboard.js.html b/docs/docs/melonjs/src/input/keyboard.js.html index 591ee6db2..e9adb31bb 100644 --- a/docs/docs/melonjs/src/input/keyboard.js.html +++ b/docs/docs/melonjs/src/input/keyboard.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/pointer.js.html b/docs/docs/melonjs/src/input/pointer.js.html index a99503d75..060f5dfe1 100644 --- a/docs/docs/melonjs/src/input/pointer.js.html +++ b/docs/docs/melonjs/src/input/pointer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/pointerevent.js.html b/docs/docs/melonjs/src/input/pointerevent.js.html index a00d99b3d..e2dbfaf6b 100644 --- a/docs/docs/melonjs/src/input/pointerevent.js.html +++ b/docs/docs/melonjs/src/input/pointerevent.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/lang/console.js.html b/docs/docs/melonjs/src/lang/console.js.html index 639228ee6..cf08a0701 100644 --- a/docs/docs/melonjs/src/lang/console.js.html +++ b/docs/docs/melonjs/src/lang/console.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/lang/deprecated.js.html b/docs/docs/melonjs/src/lang/deprecated.js.html index a4885585f..9871e19e3 100644 --- a/docs/docs/melonjs/src/lang/deprecated.js.html +++ b/docs/docs/melonjs/src/lang/deprecated.js.html @@ -1,5 +1,5 @@ - + @@ -736,6 +736,114 @@ 166 +
  • + 167 +
  • + +
  • + 168 +
  • + +
  • + 169 +
  • + +
  • + 170 +
  • + +
  • + 171 +
  • + +
  • + 172 +
  • + +
  • + 173 +
  • + +
  • + 174 +
  • + +
  • + 175 +
  • + +
  • + 176 +
  • + +
  • + 177 +
  • + +
  • + 178 +
  • + +
  • + 179 +
  • + +
  • + 180 +
  • + +
  • + 181 +
  • + +
  • + 182 +
  • + +
  • + 183 +
  • + +
  • + 184 +
  • + +
  • + 185 +
  • + +
  • + 186 +
  • + +
  • + 187 +
  • + +
  • + 188 +
  • + +
  • + 189 +
  • + +
  • + 190 +
  • + +
  • + 191 +
  • + +
  • + 192 +
  • + +
  • + 193 +
  • +
    import { TextureAtlas } from "./../video/texture/atlas.js";
     import Renderer from "./../video/renderer.js";
    @@ -744,6 +852,8 @@
     import UISpriteElement from "./../renderable/ui/uispriteelement.js";
     import { warning } from "./console.js";
     import CanvasRenderTarget from "../video/rendertarget/canvasrendertarget.js";
    +import CanvasRenderer from "../video/canvas/canvas_renderer.js";
    +import WebGLRenderer from "../video/webgl/webgl_renderer.js";
     
     /*
      * placeholder for all deprecated classes and corresponding alias for backward compatibility
    @@ -871,7 +981,6 @@
      * return the height of the system Canvas
      * @public
      * @name getHeight
    - * @class
      * @memberof Renderer#
      * @deprecated since 15.12.0
      * @see height
    @@ -902,6 +1011,32 @@
         }
     }
     
    +/**
    + * return the height of the system Canvas
    + * @public
    + * @name setLineWidth
    + * @memberof CanvasRenderer#
    + * @deprecated since 17.3.0
    + * @see lineWidth
    + */
    +CanvasRenderer.prototype.setLineWidth = function(width)  {
    +    warning("setLineWidth", "lineWidth", "17.3.0");
    +    this.lineWidth = width;
    +};
    +
    +/**
    + * return the height of the system Canvas
    + * @public
    + * @name setLineWidth
    + * @memberof WebGLRenderer#
    + * @deprecated since 17.3.0
    + * @see lineWidth
    + */
    +WebGLRenderer.prototype.setLineWidth = function(width)  {
    +    warning("setLineWidth", "lineWidth", "17.3.0");
    +    this.lineWidth = width;
    +};
    +
     
    diff --git a/docs/docs/melonjs/src/level/level.js.html b/docs/docs/melonjs/src/level/level.js.html index 04b3fcd18..a7617d05e 100644 --- a/docs/docs/melonjs/src/level/level.js.html +++ b/docs/docs/melonjs/src/level/level.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html b/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html index 1dc0764e3..a241197ea 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html b/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html index c92853bc0..b8493cf5c 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXObject.js.html b/docs/docs/melonjs/src/level/tiled/TMXObject.js.html index add3b0673..0fd17cffe 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXObject.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXObject.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTile.js.html b/docs/docs/melonjs/src/level/tiled/TMXTile.js.html index c5898cbc5..0b9f6359c 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTile.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTile.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html b/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html index f7352547f..f861a069e 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html b/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html index 0c9bdd168..46a5ddd42 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html b/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html index 9add9b53f..0c4b328f7 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html b/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html index 2b0880855..fd2ce5a30 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/constants.js.html b/docs/docs/melonjs/src/level/tiled/constants.js.html index 1a026a452..ddb928478 100644 --- a/docs/docs/melonjs/src/level/tiled/constants.js.html +++ b/docs/docs/melonjs/src/level/tiled/constants.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html index f033f684c..d0e413536 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html index e4a916a7e..243316d8e 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html index b04878953..a27a21373 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html index ee8edc010..8a21796b8 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html index 723eb2106..55ffc8c3c 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html b/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html index c2789d4bc..4e066e220 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/cache.js.html b/docs/docs/melonjs/src/loader/cache.js.html index 922875232..029cf570f 100644 --- a/docs/docs/melonjs/src/loader/cache.js.html +++ b/docs/docs/melonjs/src/loader/cache.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/loader.js.html b/docs/docs/melonjs/src/loader/loader.js.html index e79629bcf..16aaf44de 100644 --- a/docs/docs/melonjs/src/loader/loader.js.html +++ b/docs/docs/melonjs/src/loader/loader.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/loadingscreen.js.html b/docs/docs/melonjs/src/loader/loadingscreen.js.html index e2aa9ca37..a829192c9 100644 --- a/docs/docs/melonjs/src/loader/loadingscreen.js.html +++ b/docs/docs/melonjs/src/loader/loadingscreen.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/binary.js.html b/docs/docs/melonjs/src/loader/parsers/binary.js.html index a070a3f45..96752a4ec 100644 --- a/docs/docs/melonjs/src/loader/parsers/binary.js.html +++ b/docs/docs/melonjs/src/loader/parsers/binary.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/compressed_image.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/compressed_image.js.html index ee43e0ad4..39d49825b 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/compressed_image.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/compressed_image.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseDDS.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseDDS.js.html index b095c0473..e2118ff8e 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseDDS.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseDDS.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX.js.html index fb5d800a7..f2c7d88a4 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX2.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX2.js.html index ab2065742..02c842064 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX2.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parseKTX2.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePKM.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePKM.js.html index d69ec28dd..73e0e9164 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePKM.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePKM.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePVR.js.html b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePVR.js.html index 6ba5f0503..dc26b2f88 100644 --- a/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePVR.js.html +++ b/docs/docs/melonjs/src/loader/parsers/compressed_textures/parsePVR.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html b/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html index 3f9492d11..0e89121cc 100644 --- a/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html +++ b/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/fontface.js.html b/docs/docs/melonjs/src/loader/parsers/fontface.js.html index ed7b46c59..cd2c2b09c 100644 --- a/docs/docs/melonjs/src/loader/parsers/fontface.js.html +++ b/docs/docs/melonjs/src/loader/parsers/fontface.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/image.js.html b/docs/docs/melonjs/src/loader/parsers/image.js.html index c254cf216..5279226ee 100644 --- a/docs/docs/melonjs/src/loader/parsers/image.js.html +++ b/docs/docs/melonjs/src/loader/parsers/image.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/json.js.html b/docs/docs/melonjs/src/loader/parsers/json.js.html index 140488ee3..d7d6ec25a 100644 --- a/docs/docs/melonjs/src/loader/parsers/json.js.html +++ b/docs/docs/melonjs/src/loader/parsers/json.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/script.js.html b/docs/docs/melonjs/src/loader/parsers/script.js.html index 5cd81554c..e515a0bee 100644 --- a/docs/docs/melonjs/src/loader/parsers/script.js.html +++ b/docs/docs/melonjs/src/loader/parsers/script.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/tmx.js.html b/docs/docs/melonjs/src/loader/parsers/tmx.js.html index 67663617f..9241d92d8 100644 --- a/docs/docs/melonjs/src/loader/parsers/tmx.js.html +++ b/docs/docs/melonjs/src/loader/parsers/tmx.js.html @@ -1,5 +1,5 @@ - + @@ -456,34 +456,6 @@ 96 -
  • - 97 -
  • - -
  • - 98 -
  • - -
  • - 99 -
  • - -
  • - 100 -
  • - -
  • - 101 -
  • - -
  • - 102 -
  • - -
  • - 103 -
  • -
    import * as fileUtil from "../../utils/file.js";
     import level from "../../level/level.js";
    @@ -553,15 +525,8 @@
                         const xmlDoc = parser.parseFromString(response, "text/xml");
                         const data = TMXUtils.parse(xmlDoc);
     
    -                    switch (fileUtil.getExtension(tmxData.src)) {
    -                        case "tmx":
    -                            result = data.map;
    -                            break;
    +                    result = data.map || data.tilesets[0] || data;
     
    -                        case "tsx":
    -                            result = data.tilesets[0];
    -                            break;
    -                    }
                         break;
                     }
                     case "json":
    diff --git a/docs/docs/melonjs/src/loader/parsers/video.js.html b/docs/docs/melonjs/src/loader/parsers/video.js.html
    index 6146e6374..5c949ac42 100644
    --- a/docs/docs/melonjs/src/loader/parsers/video.js.html
    +++ b/docs/docs/melonjs/src/loader/parsers/video.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/color.js.html b/docs/docs/melonjs/src/math/color.js.html
    index 8999991c6..4e0281ada 100644
    --- a/docs/docs/melonjs/src/math/color.js.html
    +++ b/docs/docs/melonjs/src/math/color.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/math.js.html b/docs/docs/melonjs/src/math/math.js.html
    index 9ac3f643e..61dc7aa14 100644
    --- a/docs/docs/melonjs/src/math/math.js.html
    +++ b/docs/docs/melonjs/src/math/math.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/matrix2.js.html b/docs/docs/melonjs/src/math/matrix2.js.html
    index 43ae0bce5..e82bc6850 100644
    --- a/docs/docs/melonjs/src/math/matrix2.js.html
    +++ b/docs/docs/melonjs/src/math/matrix2.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/matrix3.js.html b/docs/docs/melonjs/src/math/matrix3.js.html
    index 383c20c1f..7a6f78ceb 100644
    --- a/docs/docs/melonjs/src/math/matrix3.js.html
    +++ b/docs/docs/melonjs/src/math/matrix3.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/observable_vector2.js.html b/docs/docs/melonjs/src/math/observable_vector2.js.html
    index b2b879cd8..0e200a12e 100644
    --- a/docs/docs/melonjs/src/math/observable_vector2.js.html
    +++ b/docs/docs/melonjs/src/math/observable_vector2.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/observable_vector3.js.html b/docs/docs/melonjs/src/math/observable_vector3.js.html
    index b5b1400ea..0f605d4f6 100644
    --- a/docs/docs/melonjs/src/math/observable_vector3.js.html
    +++ b/docs/docs/melonjs/src/math/observable_vector3.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/vector2.js.html b/docs/docs/melonjs/src/math/vector2.js.html
    index df764335c..02d561777 100644
    --- a/docs/docs/melonjs/src/math/vector2.js.html
    +++ b/docs/docs/melonjs/src/math/vector2.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/math/vector3.js.html b/docs/docs/melonjs/src/math/vector3.js.html
    index 7f3aa3513..4ade8339e 100644
    --- a/docs/docs/melonjs/src/math/vector3.js.html
    +++ b/docs/docs/melonjs/src/math/vector3.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/particles/emitter.js.html b/docs/docs/melonjs/src/particles/emitter.js.html
    index 6fbbd454c..645d51ad1 100644
    --- a/docs/docs/melonjs/src/particles/emitter.js.html
    +++ b/docs/docs/melonjs/src/particles/emitter.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/particles/particle.js.html b/docs/docs/melonjs/src/particles/particle.js.html
    index 9d1406397..eb8b973ac 100644
    --- a/docs/docs/melonjs/src/particles/particle.js.html
    +++ b/docs/docs/melonjs/src/particles/particle.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/particles/settings.js.html b/docs/docs/melonjs/src/particles/settings.js.html
    index eed11328f..6778b9a42 100644
    --- a/docs/docs/melonjs/src/particles/settings.js.html
    +++ b/docs/docs/melonjs/src/particles/settings.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/body.js.html b/docs/docs/melonjs/src/physics/body.js.html
    index fdd113ccb..c6b2323f5 100644
    --- a/docs/docs/melonjs/src/physics/body.js.html
    +++ b/docs/docs/melonjs/src/physics/body.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/bounds.js.html b/docs/docs/melonjs/src/physics/bounds.js.html
    index d1facea4d..2da8b1643 100644
    --- a/docs/docs/melonjs/src/physics/bounds.js.html
    +++ b/docs/docs/melonjs/src/physics/bounds.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/collision.js.html b/docs/docs/melonjs/src/physics/collision.js.html
    index 16667488e..9c493bb4d 100644
    --- a/docs/docs/melonjs/src/physics/collision.js.html
    +++ b/docs/docs/melonjs/src/physics/collision.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/detector.js.html b/docs/docs/melonjs/src/physics/detector.js.html
    index ed0031edb..0be284ed4 100644
    --- a/docs/docs/melonjs/src/physics/detector.js.html
    +++ b/docs/docs/melonjs/src/physics/detector.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/quadtree.js.html b/docs/docs/melonjs/src/physics/quadtree.js.html
    index 53ee571ae..f16722a2b 100644
    --- a/docs/docs/melonjs/src/physics/quadtree.js.html
    +++ b/docs/docs/melonjs/src/physics/quadtree.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/response.js.html b/docs/docs/melonjs/src/physics/response.js.html
    index 3222a868d..8fd1d097e 100644
    --- a/docs/docs/melonjs/src/physics/response.js.html
    +++ b/docs/docs/melonjs/src/physics/response.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/sat.js.html b/docs/docs/melonjs/src/physics/sat.js.html
    index 93b23ea84..6d886053a 100644
    --- a/docs/docs/melonjs/src/physics/sat.js.html
    +++ b/docs/docs/melonjs/src/physics/sat.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/physics/world.js.html b/docs/docs/melonjs/src/physics/world.js.html
    index d5d958ed4..5f1ee9dfd 100644
    --- a/docs/docs/melonjs/src/physics/world.js.html
    +++ b/docs/docs/melonjs/src/physics/world.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -980,7 +980,7 @@
     
             /**
              * the physic engine used by melonJS
    -         * @see Application.Settings.physic
    +         * @see ApplicationSettings.physic
              * @type {string}
              * @default "builtin"
              * @example
    diff --git a/docs/docs/melonjs/src/plugin/plugin.js.html b/docs/docs/melonjs/src/plugin/plugin.js.html
    index 68a0973db..b61422487 100644
    --- a/docs/docs/melonjs/src/plugin/plugin.js.html
    +++ b/docs/docs/melonjs/src/plugin/plugin.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/polyfill/console.js.html b/docs/docs/melonjs/src/polyfill/console.js.html
    index 6b4eb118d..c0e7594d3 100644
    --- a/docs/docs/melonjs/src/polyfill/console.js.html
    +++ b/docs/docs/melonjs/src/polyfill/console.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/polyfill/index.js.html b/docs/docs/melonjs/src/polyfill/index.js.html
    index e47bfdcc2..5bbc7748f 100644
    --- a/docs/docs/melonjs/src/polyfill/index.js.html
    +++ b/docs/docs/melonjs/src/polyfill/index.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/polyfill/roundrect.js.html b/docs/docs/melonjs/src/polyfill/roundrect.js.html
    index 96e41b97c..4643e13dd 100644
    --- a/docs/docs/melonjs/src/polyfill/roundrect.js.html
    +++ b/docs/docs/melonjs/src/polyfill/roundrect.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/collectable.js.html b/docs/docs/melonjs/src/renderable/collectable.js.html
    index 76a06365d..17d1a3c58 100644
    --- a/docs/docs/melonjs/src/renderable/collectable.js.html
    +++ b/docs/docs/melonjs/src/renderable/collectable.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/colorlayer.js.html b/docs/docs/melonjs/src/renderable/colorlayer.js.html
    index 4d9877443..9252968f5 100644
    --- a/docs/docs/melonjs/src/renderable/colorlayer.js.html
    +++ b/docs/docs/melonjs/src/renderable/colorlayer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/container.js.html b/docs/docs/melonjs/src/renderable/container.js.html
    index 3c321de4f..8c34166ed 100644
    --- a/docs/docs/melonjs/src/renderable/container.js.html
    +++ b/docs/docs/melonjs/src/renderable/container.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/draggable.js.html b/docs/docs/melonjs/src/renderable/draggable.js.html
    index 7ca94ad23..2134b5950 100644
    --- a/docs/docs/melonjs/src/renderable/draggable.js.html
    +++ b/docs/docs/melonjs/src/renderable/draggable.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/dragndrop.js.html b/docs/docs/melonjs/src/renderable/dragndrop.js.html
    index 75650407b..8aa21e04c 100644
    --- a/docs/docs/melonjs/src/renderable/dragndrop.js.html
    +++ b/docs/docs/melonjs/src/renderable/dragndrop.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/entity/entity.js.html b/docs/docs/melonjs/src/renderable/entity/entity.js.html
    index 5e1dd3637..9da7cbdb6 100644
    --- a/docs/docs/melonjs/src/renderable/entity/entity.js.html
    +++ b/docs/docs/melonjs/src/renderable/entity/entity.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/imagelayer.js.html b/docs/docs/melonjs/src/renderable/imagelayer.js.html
    index 7cf6ddde6..219c5925e 100644
    --- a/docs/docs/melonjs/src/renderable/imagelayer.js.html
    +++ b/docs/docs/melonjs/src/renderable/imagelayer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/light2d.js.html b/docs/docs/melonjs/src/renderable/light2d.js.html
    index 12481a84e..c6d82b55c 100644
    --- a/docs/docs/melonjs/src/renderable/light2d.js.html
    +++ b/docs/docs/melonjs/src/renderable/light2d.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
    index ce9cc1a18..0418ca084 100644
    --- a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
    +++ b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/renderable.js.html b/docs/docs/melonjs/src/renderable/renderable.js.html
    index fba3d85de..46ce20e28 100644
    --- a/docs/docs/melonjs/src/renderable/renderable.js.html
    +++ b/docs/docs/melonjs/src/renderable/renderable.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/sprite.js.html b/docs/docs/melonjs/src/renderable/sprite.js.html
    index 79426f37b..e3ba8bfd3 100644
    --- a/docs/docs/melonjs/src/renderable/sprite.js.html
    +++ b/docs/docs/melonjs/src/renderable/sprite.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html b/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
    index 3f3e3004c..e89b0e4f1 100644
    --- a/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html b/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
    index f2fb9ad86..021e9530b 100644
    --- a/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/glyph.js.html b/docs/docs/melonjs/src/renderable/text/glyph.js.html
    index 866eb6674..7606c0056 100644
    --- a/docs/docs/melonjs/src/renderable/text/glyph.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/glyph.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/text.js.html b/docs/docs/melonjs/src/renderable/text/text.js.html
    index e28f7bb44..1687bf2b7 100644
    --- a/docs/docs/melonjs/src/renderable/text/text.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/text.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/textmetrics.js.html b/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
    index 64826fd8e..7628eb92a 100644
    --- a/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/text/textstyle.js.html b/docs/docs/melonjs/src/renderable/text/textstyle.js.html
    index e8f1f83a9..78e276ca4 100644
    --- a/docs/docs/melonjs/src/renderable/text/textstyle.js.html
    +++ b/docs/docs/melonjs/src/renderable/text/textstyle.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/trigger.js.html b/docs/docs/melonjs/src/renderable/trigger.js.html
    index a631b25ea..d53af96e7 100644
    --- a/docs/docs/melonjs/src/renderable/trigger.js.html
    +++ b/docs/docs/melonjs/src/renderable/trigger.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html b/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
    index d13d155f1..73956baa5 100644
    --- a/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
    +++ b/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html b/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
    index 713db4822..c031847f4 100644
    --- a/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
    +++ b/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html b/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
    index 6a7fae2fc..b7aeb299d 100644
    --- a/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
    +++ b/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/state/stage.js.html b/docs/docs/melonjs/src/state/stage.js.html
    index 2a0d6da4a..525e532c9 100644
    --- a/docs/docs/melonjs/src/state/stage.js.html
    +++ b/docs/docs/melonjs/src/state/stage.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/state/state.js.html b/docs/docs/melonjs/src/state/state.js.html
    index 9e267cc39..1537a221f 100644
    --- a/docs/docs/melonjs/src/state/state.js.html
    +++ b/docs/docs/melonjs/src/state/state.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/device.js.html b/docs/docs/melonjs/src/system/device.js.html
    index eaa28b7ba..c476f388b 100644
    --- a/docs/docs/melonjs/src/system/device.js.html
    +++ b/docs/docs/melonjs/src/system/device.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/dom.js.html b/docs/docs/melonjs/src/system/dom.js.html
    index 7cc9ab47d..7a401ba69 100644
    --- a/docs/docs/melonjs/src/system/dom.js.html
    +++ b/docs/docs/melonjs/src/system/dom.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/event.js.html b/docs/docs/melonjs/src/system/event.js.html
    index f17bc2a4c..b1c8b7f02 100644
    --- a/docs/docs/melonjs/src/system/event.js.html
    +++ b/docs/docs/melonjs/src/system/event.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/platform.js.html b/docs/docs/melonjs/src/system/platform.js.html
    index 9ae6f76b3..abd155f63 100644
    --- a/docs/docs/melonjs/src/system/platform.js.html
    +++ b/docs/docs/melonjs/src/system/platform.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/pooling.js.html b/docs/docs/melonjs/src/system/pooling.js.html
    index 216a2b628..dfc52a45d 100644
    --- a/docs/docs/melonjs/src/system/pooling.js.html
    +++ b/docs/docs/melonjs/src/system/pooling.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/save.js.html b/docs/docs/melonjs/src/system/save.js.html
    index 31da3193f..d3f977de3 100644
    --- a/docs/docs/melonjs/src/system/save.js.html
    +++ b/docs/docs/melonjs/src/system/save.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/system/timer.js.html b/docs/docs/melonjs/src/system/timer.js.html
    index b221d6aa0..01b158cce 100644
    --- a/docs/docs/melonjs/src/system/timer.js.html
    +++ b/docs/docs/melonjs/src/system/timer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/tweens/easing.js.html b/docs/docs/melonjs/src/tweens/easing.js.html
    index 4f485c531..0b8325911 100644
    --- a/docs/docs/melonjs/src/tweens/easing.js.html
    +++ b/docs/docs/melonjs/src/tweens/easing.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/tweens/interpolation.js.html b/docs/docs/melonjs/src/tweens/interpolation.js.html
    index 45f2c8748..812ccc899 100644
    --- a/docs/docs/melonjs/src/tweens/interpolation.js.html
    +++ b/docs/docs/melonjs/src/tweens/interpolation.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/tweens/tween.js.html b/docs/docs/melonjs/src/tweens/tween.js.html
    index a6359db05..c0e6fabfb 100644
    --- a/docs/docs/melonjs/src/tweens/tween.js.html
    +++ b/docs/docs/melonjs/src/tweens/tween.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/agent.js.html b/docs/docs/melonjs/src/utils/agent.js.html
    index 63fbebbc6..7d19cbb65 100644
    --- a/docs/docs/melonjs/src/utils/agent.js.html
    +++ b/docs/docs/melonjs/src/utils/agent.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/array.js.html b/docs/docs/melonjs/src/utils/array.js.html
    index 69e2bccf6..1c75f772a 100644
    --- a/docs/docs/melonjs/src/utils/array.js.html
    +++ b/docs/docs/melonjs/src/utils/array.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/file.js.html b/docs/docs/melonjs/src/utils/file.js.html
    index 060c06e4a..e896b4add 100644
    --- a/docs/docs/melonjs/src/utils/file.js.html
    +++ b/docs/docs/melonjs/src/utils/file.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/function.js.html b/docs/docs/melonjs/src/utils/function.js.html
    index d6a9547a2..337bde904 100644
    --- a/docs/docs/melonjs/src/utils/function.js.html
    +++ b/docs/docs/melonjs/src/utils/function.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/string.js.html b/docs/docs/melonjs/src/utils/string.js.html
    index d52f943e4..14cf494e6 100644
    --- a/docs/docs/melonjs/src/utils/string.js.html
    +++ b/docs/docs/melonjs/src/utils/string.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/utils/utils.js.html b/docs/docs/melonjs/src/utils/utils.js.html
    index 15b6e1616..995093bfb 100644
    --- a/docs/docs/melonjs/src/utils/utils.js.html
    +++ b/docs/docs/melonjs/src/utils/utils.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html b/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
    index bbe62c96a..3c163c900 100644
    --- a/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
    +++ b/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -3544,6 +3544,34 @@
                 868
               
             
    +          
  • + 869 +
  • + +
  • + 870 +
  • + +
  • + 871 +
  • + +
  • + 872 +
  • + +
  • + 873 +
  • + +
  • + 874 +
  • + +
  • + 875 +
  • +
    import Color from "./../../math/color.js";
     import Renderer from "./../renderer.js";
    @@ -3557,7 +3585,7 @@
      */
     export default class CanvasRenderer extends Renderer {
         /**
    -     * @param {Application.Settings} [options] - optional parameters for the renderer
    +     * @param {ApplicationSettings} [options] - optional parameters for the renderer
          */
         constructor(options) {
             // parent constructor
    @@ -4217,11 +4245,18 @@
         }
     
         /**
    -     * Set the line width on the context
    -     * @param {number} width - Line width
    +     * sets or returns the thickness of lines for shape drawing
    +     */
    +    get lineWidth() {
    +        return this.getContext().lineWidth;
    +    }
    +
    +    /**
    +     * @ignore
          */
    -    setLineWidth(width) {
    -        this.getContext().lineWidth = width;
    +    set lineWidth(value) {
    +        this.getContext().lineWidth = value;
    +        return value;
         }
     
         /**
    diff --git a/docs/docs/melonjs/src/video/renderer.js.html b/docs/docs/melonjs/src/video/renderer.js.html
    index cec3b91bd..00ed7f426 100644
    --- a/docs/docs/melonjs/src/video/renderer.js.html
    +++ b/docs/docs/melonjs/src/video/renderer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -1626,7 +1626,7 @@
      */
     export default class Renderer {
         /**
    -     * @param {Application.Settings} [options] - optional parameters for the renderer
    +     * @param {ApplicationSettings} [options] - optional parameters for the renderer
          */
         constructor(options) {
     
    diff --git a/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html b/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html
    index be73b13f4..df7215f07 100644
    --- a/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html
    +++ b/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/texture/atlas.js.html b/docs/docs/melonjs/src/video/texture/atlas.js.html
    index 8b3f6fe9f..5e81529d8 100644
    --- a/docs/docs/melonjs/src/video/texture/atlas.js.html
    +++ b/docs/docs/melonjs/src/video/texture/atlas.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -1844,6 +1844,42 @@
                 443
               
             
    +          
  • + 444 +
  • + +
  • + 445 +
  • + +
  • + 446 +
  • + +
  • + 447 +
  • + +
  • + 448 +
  • + +
  • + 449 +
  • + +
  • + 450 +
  • + +
  • + 451 +
  • + +
  • + 452 +
  • +
    import Vector2d from "./../../math/vector2.js";
     import Sprite from "./../../renderable/sprite.js";
    @@ -1952,6 +1988,14 @@
              */
             this.atlases = new Map();
     
    +        /**
    +         * the default "active" atlas (used for multiAtlas)
    +         * @type {Map}
    +         * @ignore
    +         */
    +        this.activeAtlas = undefined;
    +
    +
             // parse given atlas(es) paremeters
             if (typeof (atlases) !== "undefined") {
                 // normalize to array to keep the following code generic
    @@ -2018,10 +2062,10 @@
                             // initialize the atlas
                             this.atlases.set("default", parseSpriteSheet(atlas, this));
                             this.sources.set("default", atlas.image);
    -
                         }
                     }
                 } // end forEach
    +            this.activeAtlas = this.atlases.keys().next().value;
             }
     
             // if format not recognized
    @@ -2046,7 +2090,7 @@
             if (typeof name === "string") {
                 return this.atlases.get(name);
             } else {
    -            return this.atlases.values().next().value;
    +            return this.atlases.get(this.activeAtlas);
             }
         }
     
    @@ -2067,7 +2111,8 @@
             if ((typeof region === "object") && (typeof region.texture === "string")) {
                 return this.sources.get(region.texture);
             } else {
    -            return this.sources.values().next().value;
    +            return this.sources.get(this.activeAtlas);
    +
             }
         }
     
    diff --git a/docs/docs/melonjs/src/video/texture/cache.js.html b/docs/docs/melonjs/src/video/texture/cache.js.html
    index db5ce6593..229d84e5e 100644
    --- a/docs/docs/melonjs/src/video/texture/cache.js.html
    +++ b/docs/docs/melonjs/src/video/texture/cache.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -712,6 +712,82 @@
                 160
               
             
    +          
  • + 161 +
  • + +
  • + 162 +
  • + +
  • + 163 +
  • + +
  • + 164 +
  • + +
  • + 165 +
  • + +
  • + 166 +
  • + +
  • + 167 +
  • + +
  • + 168 +
  • + +
  • + 169 +
  • + +
  • + 170 +
  • + +
  • + 171 +
  • + +
  • + 172 +
  • + +
  • + 173 +
  • + +
  • + 174 +
  • + +
  • + 175 +
  • + +
  • + 176 +
  • + +
  • + 177 +
  • + +
  • + 178 +
  • + +
  • + 179 +
  • +
    import { renderer } from "./../video.js";
     import * as fileUtil from "./../../utils/file.js";
    @@ -775,26 +851,55 @@
          * @ignore
          */
         freeTextureUnit(texture) {
    -        let unit = this.units.get(texture);
    +        let source = texture.sources.get(texture.activeAtlas);
    +        let unit = this.units.get(source);
             // was a texture unit allocated ?
             if (typeof unit !== "undefined") {
    -            this.usedUnits.delete(unit);
    -            this.units.delete(texture);
    +            this.usedUnits.delete(source);
    +            this.units.delete(source);
    +        }
    +    }
    +
    +    /**
    +     * @ignore
    +     */
    +    getUnit(texture) {
    +        let source = texture.sources.get(texture.activeAtlas);
    +        if (!this.units.has(source)) {
    +            this.units.set(source, this.allocateTextureUnit());
             }
    +        return this.units.get(source);
         }
     
         /**
          * @ignore
    +     * cache the textureAltas for the given image
    +     */
    +    set(image, textureAtlas) {
    +        let width = image.width || image.videoWidth;
    +        let height = image.height || image.videoHeight;
    +
    +        // warn if a non POT texture is added to the cache when using WebGL1
    +        if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) {
    +            let src = typeof image.src !== "undefined" ? image.src : image;
    +            console.warn(
    +                "[Texture] " + src + " is not a POT texture " +
    +                "(" + width + "x" + height + ")"
    +            );
    +        }
    +        return this.cache.put(image, textureAtlas);
    +    }
    +
    +    /**
    +     * @ignore
    +     * return the textureAltas for the given image
          */
         get(image, atlas) {
    -        let entry;
    +        let entry = this.cache.get(image)[0];
     
    -        if (typeof atlas === "undefined") {
    -            entry = this.cache.get(image)[0];
    -        } else {
    -            // manage cases where a specific atlas is specified
    +        if (typeof entry !== "undefined" && typeof atlas !== "undefined") {
                 this.cache.forEach((value, key) => {
    -                let _atlas = value.getAtlas()[0];
    +                let _atlas = value.getAtlas();
                     if (key === image && _atlas.width === atlas.framewidth && _atlas.height === atlas.frameheight) {
                         entry = value;
                     }
    @@ -802,13 +907,30 @@
             }
     
             if (typeof entry === "undefined") {
    +            console.log("cache miss");
                 if (!atlas) {
    -                atlas = createAtlas(image.width || image.videoWidth, image.videoHeight, image.src ? fileUtil.getBasename(image.src) : undefined);
    +                atlas = createAtlas(image.width || image.videoWidth, image.height || image.videoHeight, image.src ? fileUtil.getBasename(image.src) : undefined);
                 }
                 entry = new TextureAtlas(atlas, image, false);
                 this.set(image, entry);
             }
     
    +        // "activate" the corresponding sources (in case of multi texture atlas)
    +        if (typeof entry.sources !== "undefined" && entry.sources.size > 1) {
    +            console.log(entry);
    +            // manage cases where a specific atlas is specified
    +            for (const [key, value] of entry.sources.entries()) {
    +                // Check if the imageData matches the provided image
    +                if (value === image) {
    +                    console.log("cache hit");
    +                    // If a match is found, return the corresponding entry from cache.atlases
    +                    console.log(key);
    +                    //return entry.atlases.get(key);
    +                    entry.activeAtlas = key;
    +                }
    +            }
    +        }
    +
             return entry;
         }
     
    @@ -843,33 +965,6 @@
             return image_cache.get(color);
         }
     
    -    /**
    -     * @ignore
    -     */
    -    set(image, texture) {
    -        let width = image.width || image.videoWidth;
    -        let height = image.height || image.videoHeight;
    -
    -        // warn if a non POT texture is added to the cache when using WebGL1
    -        if (renderer.WebGLVersion === 1 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) {
    -            let src = typeof image.src !== "undefined" ? image.src : image;
    -            console.warn(
    -                "[Texture] " + src + " is not a POT texture " +
    -                "(" + width + "x" + height + ")"
    -            );
    -        }
    -        return this.cache.put(image, texture);
    -    }
    -
    -    /**
    -     * @ignore
    -     */
    -    getUnit(texture) {
    -        if (!this.units.has(texture)) {
    -            this.units.set(texture, this.allocateTextureUnit());
    -        }
    -        return this.units.get(texture);
    -    }
     }
     export default TextureCache;
     
    diff --git a/docs/docs/melonjs/src/video/texture/parser/aseprite.js.html b/docs/docs/melonjs/src/video/texture/parser/aseprite.js.html index 4dafc8778..20c47254d 100644 --- a/docs/docs/melonjs/src/video/texture/parser/aseprite.js.html +++ b/docs/docs/melonjs/src/video/texture/parser/aseprite.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/video/texture/parser/spritesheet.js.html b/docs/docs/melonjs/src/video/texture/parser/spritesheet.js.html index dd2d68190..890a861a9 100644 --- a/docs/docs/melonjs/src/video/texture/parser/spritesheet.js.html +++ b/docs/docs/melonjs/src/video/texture/parser/spritesheet.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/video/texture/parser/texturepacker.js.html b/docs/docs/melonjs/src/video/texture/parser/texturepacker.js.html index c15a14841..8de401eb9 100644 --- a/docs/docs/melonjs/src/video/texture/parser/texturepacker.js.html +++ b/docs/docs/melonjs/src/video/texture/parser/texturepacker.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/video/utils/autodetect.js.html b/docs/docs/melonjs/src/video/utils/autodetect.js.html index 7bd3ca557..c84609d0c 100644 --- a/docs/docs/melonjs/src/video/utils/autodetect.js.html +++ b/docs/docs/melonjs/src/video/utils/autodetect.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/video/video.js.html b/docs/docs/melonjs/src/video/video.js.html index 8a9d2ba48..c115c3b11 100644 --- a/docs/docs/melonjs/src/video/video.js.html +++ b/docs/docs/melonjs/src/video/video.js.html @@ -1,5 +1,5 @@ - + @@ -712,11 +712,16 @@ 160 +
  • + 161 +
  • +
    import * as event from "./../system/event.js";
     import { initialized, game } from "./../index.js";
     import * as device from "./../system/device.js";
     import { throttle } from "../utils/function.js";
    +import { ApplicationSettings } from "../application/settings.js";
     
     /**
      * @namespace video
    @@ -758,7 +763,7 @@
      * @memberof video
      * @param {number} width - The width of the canvas viewport
      * @param {number} height - The height of the canvas viewport
    - * @param {Application.Settings} [options] - optional parameters for the renderer
    + * @param {ApplicationSettings} [options] - optional parameters for the renderer
      * @returns {boolean} false if initialization failed (canvas not supported)
      * @example
      * // init the video with a 640x480 canvas
    @@ -777,7 +782,7 @@
     
         try {
             // initialize the default game Application with the given options
    -        game.init(width, height, options);
    +        game.init(width, height, Object.assign(ApplicationSettings, options || {}));
         } catch (e) {
             console.log(e.message);
             // me.video.init() historically returns false if failing at creating/using a HTML5 canvas
    diff --git a/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html b/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
    index 7b7c4c69b..818a83f4b 100644
    --- a/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
    index 0028b6bb0..4f36d267c 100644
    --- a/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
    index dcada3859..561215e79 100644
    --- a/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
    index 540a78105..fecd92c45 100644
    --- a/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/glshader.js.html b/docs/docs/melonjs/src/video/webgl/glshader.js.html
    index d1c3aae0a..3a409d894 100644
    --- a/docs/docs/melonjs/src/video/webgl/glshader.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/glshader.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html b/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
    index 91e797a9a..46d777341 100644
    --- a/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/utils/precision.js.html b/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
    index 92d71eac2..0ca0519e3 100644
    --- a/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/utils/program.js.html b/docs/docs/melonjs/src/video/webgl/utils/program.js.html
    index a0fdc7909..5342eff0c 100644
    --- a/docs/docs/melonjs/src/video/webgl/utils/program.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/utils/program.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/utils/string.js.html b/docs/docs/melonjs/src/video/webgl/utils/string.js.html
    index ec27a5106..74fac01f4 100644
    --- a/docs/docs/melonjs/src/video/webgl/utils/string.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/utils/string.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html b/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
    index 89b9fb2f3..cb5eda486 100644
    --- a/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html b/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
    index 32d1c64b6..354745a4a 100644
    --- a/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
    +++ b/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -4736,6 +4736,106 @@
                 1166
               
             
    +          
  • + 1167 +
  • + +
  • + 1168 +
  • + +
  • + 1169 +
  • + +
  • + 1170 +
  • + +
  • + 1171 +
  • + +
  • + 1172 +
  • + +
  • + 1173 +
  • + +
  • + 1174 +
  • + +
  • + 1175 +
  • + +
  • + 1176 +
  • + +
  • + 1177 +
  • + +
  • + 1178 +
  • + +
  • + 1179 +
  • + +
  • + 1180 +
  • + +
  • + 1181 +
  • + +
  • + 1182 +
  • + +
  • + 1183 +
  • + +
  • + 1184 +
  • + +
  • + 1185 +
  • + +
  • + 1186 +
  • + +
  • + 1187 +
  • + +
  • + 1188 +
  • + +
  • + 1189 +
  • + +
  • + 1190 +
  • + +
  • + 1191 +
  • +
    import Color from "./../../math/color.js";
     import Matrix2d from "./../../math/matrix2.js";
    @@ -4754,12 +4854,12 @@
     
     /**
      * @classdesc
    - * a WebGL renderer object
    + * a WebGL renderer draw
      * @augments Renderer
      */
     export default class WebGLRenderer extends Renderer {
         /**
    -     * @param {Application.Settings} [options] - optional parameters for the renderer
    +     * @param {ApplicationSettings} [options] - optional parameters for the renderer
          */
         constructor(options) {
             // parent contructor
    @@ -4788,6 +4888,14 @@
              */
             this.gl = this.renderTarget.context;
     
    +        /**
    +         * sets or returns the thickness of lines for shape drawing (limited to strokeLine)
    +         * @type {number}
    +         * @default 1
    +         * @see WebGLRenderer#strokeLine
    +         */
    +        this.lineWidth = 1;
    +
             /**
              * the vertex buffer used by this WebGL Renderer
              * @type {WebGLBuffer}
    @@ -5134,6 +5242,7 @@
         clear() {
             let gl = this.gl;
             gl.clearColor(0, 0, 0, this.settings.transparent ? 0.0 : 1.0);
    +        this.lineWidth = 1;
             if (this.depthTest === "z-buffer") {
                 gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT | gl.STENCIL_BUFFER_BIT);
             } else {
    @@ -5523,14 +5632,6 @@
             this.currentColor.alpha *= alpha;
         }
     
    -    /**
    -     * Set the line width
    -     * @param {number} width - Line width
    -     */
    -    setLineWidth(width) {
    -        this.getContext().lineWidth(width);
    -    }
    -
         /**
          * Stroke an arc at the specified coordinates with given radius, start and end points
          * @param {number} x - arc center point x-axis
    @@ -5604,10 +5705,34 @@
          */
         strokeLine(startX, startY, endX, endY) {
             this.setCompositor("primitive");
    -        this.path2D.beginPath();
    -        this.path2D.moveTo(startX, startY);
    -        this.path2D.lineTo(endX, endY);
    -        this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points);
    +        if (this.lineWidth === 1) {
    +            this.path2D.beginPath();
    +            this.path2D.moveTo(startX, startY);
    +            this.path2D.lineTo(endX, endY);
    +            this.currentCompositor.drawVertices(this.gl.LINES, this.path2D.points);
    +        } else if (this.lineWidth > 1) {
    +            const halfWidth = this.lineWidth / 2;
    +            const angle = Math.atan2(endY - startY, endX - startX);
    +            const dx = Math.sin(angle) * halfWidth;
    +            const dy = Math.cos(angle) * halfWidth;
    +            const x1 = startX - dx;
    +            const y1 = startY + dy;
    +            const x2 = startX + dx;
    +            const y2 = startY - dy;
    +            const x3 = endX + dx;
    +            const y3 = endY - dy;
    +            const x4 = endX - dx;
    +            const y4 = endY + dy;
    +
    +            this.path2D.beginPath();
    +            this.path2D.moveTo(x1, y1);
    +            this.path2D.lineTo(x2, y2);
    +            this.path2D.lineTo(x3, y3);
    +            this.path2D.lineTo(x4, y4);
    +            this.path2D.closePath();
    +            // draw all triangles
    +            this.currentCompositor.drawVertices(this.gl.TRIANGLES, this.path2D.triangulatePath());
    +        }
         }
     
     
    diff --git a/docs/docs/melonjs/state.html b/docs/docs/melonjs/state.html
    index 96d815684..3da65ca2d 100644
    --- a/docs/docs/melonjs/state.html
    +++ b/docs/docs/melonjs/state.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/timer.html b/docs/docs/melonjs/timer.html
    index 7bfe9b7e7..b61da020c 100644
    --- a/docs/docs/melonjs/timer.html
    +++ b/docs/docs/melonjs/timer.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils.html b/docs/docs/melonjs/utils.html
    index d881a693a..231b43f26 100644
    --- a/docs/docs/melonjs/utils.html
    +++ b/docs/docs/melonjs/utils.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/agent.html b/docs/docs/melonjs/utils/agent.html
    index 3930f81a2..ee8677a33 100644
    --- a/docs/docs/melonjs/utils/agent.html
    +++ b/docs/docs/melonjs/utils/agent.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/agent/prefixed.html b/docs/docs/melonjs/utils/agent/prefixed.html
    index 8bd46f304..b28a95c84 100644
    --- a/docs/docs/melonjs/utils/agent/prefixed.html
    +++ b/docs/docs/melonjs/utils/agent/prefixed.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/agent/setPrefixed.html b/docs/docs/melonjs/utils/agent/setPrefixed.html
    index 1a4f3b46a..ce4c95769 100644
    --- a/docs/docs/melonjs/utils/agent/setPrefixed.html
    +++ b/docs/docs/melonjs/utils/agent/setPrefixed.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/array.html b/docs/docs/melonjs/utils/array.html
    index 7be5777b3..db18c87e6 100644
    --- a/docs/docs/melonjs/utils/array.html
    +++ b/docs/docs/melonjs/utils/array.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/array/random.html b/docs/docs/melonjs/utils/array/random.html
    index 826af8dd4..76da037f5 100644
    --- a/docs/docs/melonjs/utils/array/random.html
    +++ b/docs/docs/melonjs/utils/array/random.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/array/remove.html b/docs/docs/melonjs/utils/array/remove.html
    index 918d61019..eef555815 100644
    --- a/docs/docs/melonjs/utils/array/remove.html
    +++ b/docs/docs/melonjs/utils/array/remove.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/array/weightedRandom.html b/docs/docs/melonjs/utils/array/weightedRandom.html
    index d7aad9ac9..02270cd36 100644
    --- a/docs/docs/melonjs/utils/array/weightedRandom.html
    +++ b/docs/docs/melonjs/utils/array/weightedRandom.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/checkVersion.html b/docs/docs/melonjs/utils/checkVersion.html
    index 3eb380f72..57cee63df 100644
    --- a/docs/docs/melonjs/utils/checkVersion.html
    +++ b/docs/docs/melonjs/utils/checkVersion.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/file.html b/docs/docs/melonjs/utils/file.html
    index d80e15689..9efeaad17 100644
    --- a/docs/docs/melonjs/utils/file.html
    +++ b/docs/docs/melonjs/utils/file.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/file/getBasename.html b/docs/docs/melonjs/utils/file/getBasename.html
    index 25d6293fb..f4af7a62d 100644
    --- a/docs/docs/melonjs/utils/file/getBasename.html
    +++ b/docs/docs/melonjs/utils/file/getBasename.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/file/getExtension.html b/docs/docs/melonjs/utils/file/getExtension.html
    index 65f670899..3593838c5 100644
    --- a/docs/docs/melonjs/utils/file/getExtension.html
    +++ b/docs/docs/melonjs/utils/file/getExtension.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/file/getPath.html b/docs/docs/melonjs/utils/file/getPath.html
    index 052fab9d9..4db36152d 100644
    --- a/docs/docs/melonjs/utils/file/getPath.html
    +++ b/docs/docs/melonjs/utils/file/getPath.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/function.html b/docs/docs/melonjs/utils/function.html
    index a0ad50a87..24ac85b70 100644
    --- a/docs/docs/melonjs/utils/function.html
    +++ b/docs/docs/melonjs/utils/function.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/function/defer.html b/docs/docs/melonjs/utils/function/defer.html
    index ddc4f51dc..cfc2c67bd 100644
    --- a/docs/docs/melonjs/utils/function/defer.html
    +++ b/docs/docs/melonjs/utils/function/defer.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/function/throttle.html b/docs/docs/melonjs/utils/function/throttle.html
    index 64f070ff4..8b6631b1a 100644
    --- a/docs/docs/melonjs/utils/function/throttle.html
    +++ b/docs/docs/melonjs/utils/function/throttle.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/getUriFragment.html b/docs/docs/melonjs/utils/getUriFragment.html
    index 528a816d5..bf23cdf64 100644
    --- a/docs/docs/melonjs/utils/getUriFragment.html
    +++ b/docs/docs/melonjs/utils/getUriFragment.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string.html b/docs/docs/melonjs/utils/string.html
    index 61f1413db..fe97362c5 100644
    --- a/docs/docs/melonjs/utils/string.html
    +++ b/docs/docs/melonjs/utils/string.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string/capitalize.html b/docs/docs/melonjs/utils/string/capitalize.html
    index 13d8921ba..c6c718c37 100644
    --- a/docs/docs/melonjs/utils/string/capitalize.html
    +++ b/docs/docs/melonjs/utils/string/capitalize.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string/isBoolean.html b/docs/docs/melonjs/utils/string/isBoolean.html
    index b8786f206..a465120b7 100644
    --- a/docs/docs/melonjs/utils/string/isBoolean.html
    +++ b/docs/docs/melonjs/utils/string/isBoolean.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string/isDataUrl.html b/docs/docs/melonjs/utils/string/isDataUrl.html
    index 9edb74374..9d0517576 100644
    --- a/docs/docs/melonjs/utils/string/isDataUrl.html
    +++ b/docs/docs/melonjs/utils/string/isDataUrl.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string/isNumeric.html b/docs/docs/melonjs/utils/string/isNumeric.html
    index 598730c40..0a0d482a0 100644
    --- a/docs/docs/melonjs/utils/string/isNumeric.html
    +++ b/docs/docs/melonjs/utils/string/isNumeric.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/utils/string/toHex.html b/docs/docs/melonjs/utils/string/toHex.html
    index a4ddc0062..82b821097 100644
    --- a/docs/docs/melonjs/utils/string/toHex.html
    +++ b/docs/docs/melonjs/utils/string/toHex.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    diff --git a/docs/docs/melonjs/video.html b/docs/docs/melonjs/video.html
    index 0707ec4b7..6c6211e8f 100644
    --- a/docs/docs/melonjs/video.html
    +++ b/docs/docs/melonjs/video.html
    @@ -1,5 +1,5 @@
     
    -
    +
     
     
       
    @@ -190,7 +190,7 @@ 

    Public Properties

    - video.js:34 + video.js:35 @@ -248,7 +248,7 @@

    Public Methods

    - video.js:120 + video.js:121 @@ -395,7 +395,7 @@

    Public Methods

    - video.js:152 + video.js:153 @@ -468,14 +468,14 @@

    Public Methods

    - video.js:41 + video.js:42 -
    init(width: number, height: number, options: Application.Settings) → {boolean}
    +
    init(width: number, height: number, options: ApplicationSettings) → {boolean}
    @@ -552,7 +552,7 @@

    Public Methods

    options
    - Application.Settings + ApplicationSettings

    <optional>

    diff --git a/docs/docs/melonjs/video/createCanvas.html b/docs/docs/melonjs/video/createCanvas.html index 2ce4a8db9..0b934794d 100644 --- a/docs/docs/melonjs/video/createCanvas.html +++ b/docs/docs/melonjs/video/createCanvas.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/video/getParent.html b/docs/docs/melonjs/video/getParent.html index 25ab3882c..c18e4af1b 100644 --- a/docs/docs/melonjs/video/getParent.html +++ b/docs/docs/melonjs/video/getParent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/video/init.html b/docs/docs/melonjs/video/init.html index 59dc907c3..08fd5787d 100644 --- a/docs/docs/melonjs/video/init.html +++ b/docs/docs/melonjs/video/init.html @@ -1,5 +1,5 @@ - + @@ -87,7 +87,7 @@

    -
    init(width: number, height: number, options: Application.Settings) → {boolean}
    +
    init(width: number, height: number, options: ApplicationSettings) → {boolean}
    @@ -161,7 +161,7 @@

    options

    - Application.Settings + ApplicationSettings

    <optional>

    diff --git a/docs/docs/melonjs/warning.html b/docs/docs/melonjs/warning.html index dca2d773e..40fa57e34 100644 --- a/docs/docs/melonjs/warning.html +++ b/docs/docs/melonjs/warning.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/settings.html b/docs/docs/settings.html index 3efc91228..e20c13565 100644 --- a/docs/docs/settings.html +++ b/docs/docs/settings.html @@ -1,5 +1,5 @@ - +